I
I
Ivan Petrov2017-06-01 11:42:29
JavaScript
Ivan Petrov, 2017-06-01 11:42:29

How to load data from handler after page load?

Hello. How can the data be loaded from the handler after the page is loaded? Since in the handler, there is an appeal to the api, this process is delayed. From the output agent I receive a variable. As I understand it, it can be implemented using ajax, but it's not entirely clear how . Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nastya Sukharik, 2017-06-01
@nastya_cyxarik

when loading the page, call ajax with the url to the function and return to
the page . $( "#results" ).append( html ); }); });

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question