Ajax.PeriodicalUpdater (Prototype) not working with IE

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Jun 2008
Posts: 1
Reputation: shthap3ns is an unknown quantity at this point 
Solved Threads: 0
shthap3ns shthap3ns is offline Offline
Newbie Poster

Ajax.PeriodicalUpdater (Prototype) not working with IE

 
0
  #1
Jun 27th, 2008
I'm trying to use Prototype's Ajax.PeriodicalUpdater to scroll through/display an array of items on an interval. So far I've managed to make it display a new item every 2 seconds, but it only works in Firefox. Haven't tested in Safari or Opera yet...but I know it doesn't work in IE6. It can be seen below here:

http://squarebox.org/sandbox/comment_slide/

on the index.php page, I have this script written:

  1. Event.observe(window, 'load', function() {
  2. new Ajax.PeriodicalUpdater('comment_slider', 'comment_slider_ajax.php', {
  3. method: 'post',
  4. frequency: 2,
  5. onSuccess: function(){ new Effect.Fade('comment_div', { duration:0.3 }) },
  6. insertion: 'top',
  7. });
  8. });
  9.  
  10. function showComment(divId){
  11. new Effect.SlideDown(divId, { duration:0.3 });
  12. }

showComment() is called in comment_slider_ajax.php, which displays the "comment_div" and calls the showComment() function.

I've searched through some similar issues -- some people seem to experience it, but others confirm that it's working. I've seen some users say that the object only fires the AJAX request once, then stops working.

Anyone have any ideas?
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 7,652
Reputation: ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of 
Solved Threads: 474
Super Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Failure as a human

Re: Ajax.PeriodicalUpdater (Prototype) not working with IE

 
0
  #2
Jun 28th, 2008
Queries related to Javascript libraries like Prototype are better asked in the specific forums (unless you already haven't asked it there!) since there might be many out there who would have faced a similar problem and hence is one of the fastest way of getting help.
I don't accept change; I don't deserve to live.

Jo Tujhe Jagaaye, Nindein Teri Udaaye Khwaab Hai Sachcha Wahi.
Nindon Mein Jo Aaye Jise To Bhul Jaaye Khawab Woh Sachcha Nahi.
Khwaab Ko Raag De, Nind Ko Aag De
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum


Views: 2054 | Replies: 1
Thread Tools Search this Thread



Tag cloud for JavaScript / DHTML / AJAX
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC