javascript - One Modal, Ajax, and constantly updating data

Solution:

I'd suggest you to look at the load method this should be enough for what you're trying to do.

Answer

Solution:

If you want a live update of your modal you have two ways to go about this:

  1. Implement polling in AJAX. Send an AJAX request every X seconds to the server and have it update the <div>'s in your modal.
  2. Use WebSockets. This is far more complex, and solution 1. is probably good enough.

This Stack Overflow post should help get you started: jQuery, simple polling example

Source