How to reload a page after running a function

0

Good afternoon !!! I would like some help if possible. I'm developing an app like college work. I would like to do that, with the user click on the save and delete buttons, executing their php referencing functions, it would be redirected to the page of presentation of the html entries, already updated with due changes or deletions. I tried to use some functions, where it is informed the url of the html page that I would like to present, however all saddles return me the page I want without formatting, or application of styles. can anybody help me? The last option I tried was the one below:

$$(document).on('page:init', '.page[data-name="cadastro"]', function (e) {
    retornaPessoa(idPessoa);
            $('#salvar').click(function(){
            atualizaPessoa(idPessoa);
            app.dialog.alert("Atualizado com sucesso!!!")
            setTimeout("document.location = './transportadores.html'",1000);
             });
    
asked by anonymous 01.10.2018 / 18:08

0 answers