www.webdeveloper.com
Recent Articles
  • Finding Slow Running Queries in ASE 15
  • A More Advanced Pie Chart for Analysis Services Data
  • Adobe AIR Programming Unleashed: Working with Windows
  • Performance Testing SQL Server 2008's Change Data Capture Functionality
  • The ABC's of PHP: Introduction to PHP
  • How to Migrate from BasicFiles to SecureFiles Storage
  • Why the Twitter Haters Are Wrong
  • User Personalization with PHP: Beginning the Application
  • Whats in an Oracle Schema?
  • Lighting Enhancement in Photoshop
  •  

    Go Back   WebDeveloper.com > Client-Side Development > JavaScript

    JavaScript JavaScript (not Java) Discussion and technical support, including AJAX and frameworks (JQuery, MooTools, Prototype...)

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1  
    Old 01-31-2006, 09:33 PM
    cluettr's Avatar
    cluettr cluettr is offline
    Developer
     
    Join Date: Jan 2006
    Location: Gloucester, MA
    Posts: 138
    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...
    Reply With Quote
      #2  
    Old 01-31-2006, 11:16 PM
    A1ien51's Avatar
    A1ien51 A1ien51 is offline
    Ajax Author
     
    Join Date: May 2003
    Location: Between Baltimore and DC
    Posts: 3,362
    http://www.sergiopereira.com/article...iodicalUpdater

    Eric
    __________________
    Tech Author [Ajax In Action, javascript: Visual Blueprint] | twitter | linkedin | http://www.pascarello.com
    Reply With Quote
      #3  
    Old 02-01-2006, 01:25 AM
    cluettr's Avatar
    cluettr cluettr is offline
    Developer
     
    Join Date: Jan 2006
    Location: Gloucester, MA
    Posts: 138
    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.
    Reply With Quote
    Reply

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is Off
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 10:23 PM.



    Acceptable Use Policy

    internet.comMediabistrojusttechjobs.comGraphics.com

    WebMediaBrands Corporate Info


    Advertise | Newsletters | Feedback | Submit News

    Legal Notices | Licensing | Permissions | Privacy Policy

    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.