White_Bambie2015-04-12 06:18:07
White_Bambie, 2015-04-12 06:18:07

Ajax doesn't work on load, does F5 work?

There are about 3 pages on the site with their own ajax requests, the data is sent by the POST method via ajax to the handler, everything works, but only after the page is reloaded (F5). When you go to another page, the data is not loaded and you have to update, then we get the data. What could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Rikcon, 2015-04-12

Take a close look at whether your ajax is wrapped in $(document).ready ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question