You are here: CTSPedia>System Web>JQueryPlugin>JQueryLiveQuery (14 Jul 2010, AdminUser?)EditAttach
create new tag
, view all tags, tagging instructions


Author(s): Brandon Aaron
Version: 1.0.3

Live Query 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.



This tab is loaded on page load. The second and third will be reloaded using ajax. livequery will make sure that the jQuery elements inside are initialized correctly as soon as they are added to the DOM tree.


This button has been loaded async-ly 

%BUTTON{"Hello" icon="emoticon_smile" onclick="alert('The callback for this button was properly initialized')"}%

Click on the button to see if it is properly initialized.



<verbatim class="html">
  <h1 style="border-bottom:1px solid #eee">Hello world</h1>

  <strong>If this is coloured, then livequery worked out fine.</strong>
Topic revision: r3 - 14 Jul 2010 - 14:43:52 - AdminUser?
This site is powered by FoswikiCopyright & by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding CTSPedia? Send feedback