Quantcast
Channel: prosoxi.com » JavaScript – Ajax
Viewing all articles
Browse latest Browse all 19

Ajax – dynamic content with link history

$
0
0
Use this script to update content dynamicaly. Original source from http://www.unfocus.com/projects/historykeeper/ <script type="text/javascript" src="Scripts/history.js"></script> <script type="text/javascript"> function PromptMe() { this.historyListener = function(historyHash) { stateVar = historyHash; document.title = Title"; if (historyHash!= "" ){ new Ajax.Updater('id','url', {method:'get', parameters:{variable:historyHash}, onCreate: function(){$('preloader').setStyle({display: 'BLOCK'});},//preloader=an image being displayed onSuccess: function(){$('preloader').setStyle({display: 'NONE'});}//or not });   //end of ajax updater };  //function(historyHash) }//end [...]

Viewing all articles
Browse latest Browse all 19

Trending Articles