How do I dynamically update an admin page using ajax
-
I know the basics of jQuery and Ajax and am now wanting to make a data import utility in my child theme admin page.
Expanding on the information here http://codex.wordpress.org/AJAX_in_Plugins , (which I pretty much know how to use), I would like to display a dynamic log/activity file on the admin page as things happen in my data import php functions. I expect I should be able to use something like jQuery(‘#response-area’).append(newestTextline) to show my results.
Can anyone here tell me how I can send line-by-line of text back to the client side as they happen and not all at once when the import finishes? I also know how to update an external log text file but if it is easy to just show the dynamic log on my admin page, that is preferable. Any ideas or examples?
Thanks, Ron
- The topic ‘How do I dynamically update an admin page using ajax’ is closed to new replies.