User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 423,514 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,618 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 744 | Replies: 1
Reply
Join Date: Jun 2008
Posts: 1
Reputation: shthap3ns is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
shthap3ns shthap3ns is offline Offline
Newbie Poster

Ajax.PeriodicalUpdater (Prototype) not working with IE

  #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. }
  13.  

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?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jun 2006
Location: India
Posts: 6,851
Reputation: ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold 
Rep Power: 23
Solved Threads: 344
Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Lazy, Useless & Apathetic

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

  #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.

Happiness corrupts people.

Failing to value the lives of others cheapens your own.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JavaScript / DHTML / AJAX Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

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

All times are GMT -4. The time now is 4:44 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC