Results 1 to 3 of 3

Thread: clearInterval() : iframe & window communication problem

  1. #1
    Join Date
    May 2010

    clearInterval() : iframe & window communication problem

    Dear all,
    I have given snippet of code in that it is cgi file in which i am using iframe , source of iframe is calling another cgi file.
    JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
          this is ABC.cgi file
          <script type="text/javascript">
          function interval_setting(){ _clear = 5; _clear = setInterval("xmlhttpPost11('index.cgi','tracker_shower','Latest_frame','Tracker_loader',_clear,'','','')",20000);}
       <body bgcolor="#FFFFFF"onLoad='interval_setting();'>
          <td bgcolor="#ffffff" height="75">
              <div id = "Tracker_loader" align = 'center' style = "display:none"><img src='/images/ajax-loader.gif'></div>
             <iframe id= "Latest_frame" src="bidsupdate.cgi?TYPE=$type" scrolling="no" frameborder="0" height=100% width=100%>
    now setInterval function calling xmlhttpPost11() that function is actually a ajax function which is Reloading this iframe(Latest_frame).
    now in bidsupdate.cgi i met a condition where i need to stop this setInterval()
    but how i can do that ....
    can i write some code in bidsupdate.cgi file to clearInterval But how ....

    waiting for reply
    thanks in advance

  2. #2
    Join Date
    Jun 2007
    parent.clearInterval( parent._clear );

  3. #3
    Join Date
    May 2010
    Ya ... thanks for reply ...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center

Recent Articles