HI there how do i make a Ajax refresh as i am not good at Ajax i want a page to reload like in a <div> or some thing thank you.
HI there how do i make a Ajax refresh as i am not good at Ajax i want a page to reload like in a <div> or some thing thank you.
hay i found this on the prototype website
Hope this helps ya, im trying to do the same thing too, so hopefully i could help you. By the way for that to work u need to download the prototype script (its javascript) Download.Automate requests with the Ajax.PeriodicalUpdater
You find the Ajax.Updater cool, but want to run it in periodical intervals to repeatedly fetch content from the server? Prototype framework has that, too - it's called Ajax.PeriodicalUpdater, and basically it's running Ajax.Updater at regular intervals.
new Ajax.PeriodicalUpdater('products', '/some_url',
{
method: 'get',
insertion: Insertion.Top,
frequency: 1,
decay: 2
});
Anyway Good luck
Want to hide these adverts? Register an account for free!