Force F5 on page

Asked

Viewed 365 times

1

My problem: I register information through a modal dialog, when I click save, this information does not automatically list in the listing in IE, but in Chrome works normally. In IE I need to give a F5 in the listing to appear the new record. So I used this function and it updates the page but in this process, it’s like he gave the F5 before registering the record, so he gives the F5 but did not register the information.

$(document).on("click", "#btn-cadastra-atividade", function(){
location.reload(true);});

In the image below shows the modal where I register the information and behind the listing where this new information should appear but not using IE, only in Chrome inserir a descrição da imagem aqui

  • Maybe your problem is how you did it to reload information that doesn’t work in IE and you better fix it. How did you do it all?

  • "this information does not automatically list in the IE listing" - can you explain better what’s failing there? it seems better to correct that than to invent other ways..

  • Post the Ajax part, if it exists, is the back-end PHP or other technology? The problem is probably cache. Please read this: https://answall.com/help/mcve

  • @Marcelodiniz, Rgio, Uilherme, I’m using angular, and I found a solution but it doesn’t work in IE, so I’m trying to force in javascript

  • @Isa but it would be more interesting to realize what flaw in IE? you can explain what fails?

  • @Sergio at IE only lists the new record after I give F5 on the page. Already in chhrome it works correctly, so I add a new record it lists without having to give F5, I believe it is a particularity of IE

  • @Isa can put in question the code that generates that list that is failing?

  • 1

    @Isa put the threshing code that we can understand and reproduce, in the way that this will stay in the "I think that’s it, I think that’s it". Create a minimum playable example https://answall.com/help/mcve

  • You can show the function that makes the registration ?

Show 4 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.