javascript - jQuery ajax callback load content displayed twice -


After making the following ajax call, the "load" function reloads the updated content, but before the AJAX call If the content is still visible then, you will be able to "pre-ajex content" & amp; "Post Ajax content" in one page:

  & lt; Script & gt; Function myUnPause {var table = $ ('# realtime'). Datable (); Var Extension = $ (LM) .clostest ("tr"). ('Td.extension') search. Text (); Var Agent = $ (Lm) .clostest ("tr"). ('Td.name') search Text (); Alert (extension. Trim () + 'will be canceled and put back in the queue); $ .jax ("/ cura / pages / realtime / realtime2.php", {type: "GET", data: {action: 'agent', 'pauselocation: (extension.trim ()), queue:' testq ' Paused: 'false'}, success: function (msg) {$ ("# myunpause"). Load ('/ cura / include / realtime.inc.php');}}); } & Lt; / Script & gt;  

The PHP script that displays this content is referenced from the /cura/pages/realtime/realtime2.php page:

  & lt? Php contains '../../includes/realtime.inc.php'; ? & Gt;  

Does it create the old content to live on the same page?

How can any ideas change so that only the updated content is displayed?


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Messages from .properties file do not display UTF-8 characters -

javascript - amcharts makechart not working -