Refresh em url via jquery e ajax

0 respostas
L

Como faço pra dar um refresh nessa url dentro da função success do ajax .

Tentei fazer mas não esta funcionando .
`$( document ).ready(function() {

$(".teste").on('click',function(){

                        $.ajax({
                          url: "http://localhost/php/files/postgresql.pdf",
                          context: document.body,
                          type: GET,
                          
                          success: function(){
                              
                            window.open('http://localhost/php/files/postgresql.pdf');
                            window.location.reload(true);
                         }
                    });
                    });

});

`

Criado 6 de fevereiro de 2016
Respostas 0
Participantes 1