Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>First and foremost - to track GET/POST headers and values you should start using <strong><a href="http://getfirebug.com/" rel="nofollow noreferrer">Firebug</a></strong> (an extension for Firefox). Really makes your life easy to terms of debugging ajax calls and responses.</p> <p>Next (somewhat on the lines of what alimango mentioned)... the most likely cause is that the message list is being loaded AFTER your main page's DOM has already loaded. jQuery won't automatically bind the click event to elements added later. Your click binding routine has to be called AFTER the message list has been added to the DOM. Now this isn't always possible... as your list is being fetched / altered dynamically.</p> <p>One solution is to use the <strong><a href="http://docs.jquery.com/Events/live#typefn" rel="nofollow noreferrer">live()</a></strong> bind event function that has been introduced since <strong>jQuery 1.3</strong>. This helps binds a handler to an event (like click) for <strong>all current - and future</strong> - matched element. Can also bind custom events. Fore more information, see <a href="http://docs.jquery.com/Events/live#typefn" rel="nofollow noreferrer">http://docs.jquery.com/Events/live#typefn</a></p> <p>Second solution is to use, <strong><a href="http://plugins.jquery.com/project/livequery" rel="nofollow noreferrer">LiveQuery</a></strong> - a jQuery plugin which "utilizes the power of jQuery selectors by binding events or firing callbacks for matched elements auto-magically, even after the page has been loaded and the DOM updated." You can grab it from <a href="http://plugins.jquery.com/project/livequery" rel="nofollow noreferrer">http://plugins.jquery.com/project/livequery</a></p> <p>Cheers, miCRoSCoPiC^eaRthLinG</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload