Skip to content

Instantly share code, notes, and snippets.

@joshknutson
Created April 25, 2010 20:09
Show Gist options
  • Save joshknutson/378679 to your computer and use it in GitHub Desktop.
Save joshknutson/378679 to your computer and use it in GitHub Desktop.
if (typeof jQuery == 'function') {
jQuery('#reloadJax').live('click', function(event){
var loadingText = '<span class="CFDdebugLoader">Loading..</span>';
jQuery('#reloadJax').html(loadingText);
$.get("#currentaddress#", function(data){
jQuery('#reloadJax').text('AJAX Reinitialize');
});
event.preventDefault();
});
function addReload(){
var vhtml = '<a id="reloadJax" class="CFDdebugButton ui-state-default ui-corner-all" title="AJAX Reinitialize" href="#currentaddress#">AJAX Reinitialize</a>';
jQuery('#jaxReload').html(vhtml)
};
addLoadEvent(addReload);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment