|
|||||||
| JavaScript JavaScript (not Java) Discussion and technical support, including AJAX and frameworks (JQuery, MooTools, Prototype...) |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
How to Stop Ajax.PeriodicalUpdater in prototype.js
Does anyone know how to stop the exection of PeriodicalUpdater in the prototype.js library? Did they even include the ability to do so? I'm debating wether I have to go to another framework...
|
|
#2
|
||||
|
||||
|
__________________
Tech Author [Ajax In Action, javascript: Visual Blueprint] | twitter | linkedin | http://www.pascarello.com |
|
#3
|
||||
|
||||
|
Cause' I'm a Newbie...
Eric, thanks for the link. My issue is that I am new to Javascript. Yeah, I know, taking on prototype.js when I know nothing of Javascript is quite an undertaking. Could you maybe lead me in the right direction. Here is my existing code which calls the Update and PeriodicalUpdater functions.
<script type="text/javascript" language="JavaScript"> function fetch(url,pars,tag,methtype) { var myAjax = new Ajax.Updater(tag,url,{method: methtype,parameters: pars,asynchronous: true,evalScripts: true}); } function fetchupdate(url,pars,tag,methtype,interval) { var myAjax = new Ajax.PeriodicalUpdater(tag,url,{method: methtype,parameters: pars,asynchronous: true,frequency: interval}); } </script> and I load these with (as an example): fetchupdate('/includes/header_embed.php','','header_embed','post',2.0); How would i create the equivalent of the above but have the function stop the current dive from updating? You help is immensely apprecaited. |
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|