mercredi 7 novembre 2018

AJAX result is gone when print the page

when I try to print the page, some data are gone as you can see from the below examples.

All data that are missing is retrieved by AJAX method.

I believe this is because web browser calls the page again when window.print() method is called and render earlier than ajax is called.

Because every now and then the data shows, but not always.

How can I make sure that print preview is rendered after every ajax method in DOM is called?

Result on Webpage Result when print preview]




Aucun commentaire:

Enregistrer un commentaire