•
•
•
•
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
![]() |
•
•
Join Date: Jun 2008
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
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:
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?
http://squarebox.org/sandbox/comment_slide/
on the index.php page, I have this script written:
Javascript Syntax (Toggle Plain Text)
Event.observe(window, 'load', function() { new Ajax.PeriodicalUpdater('comment_slider', 'comment_slider_ajax.php', { method: 'post', frequency: 2, onSuccess: function(){ new Effect.Fade('comment_div', { duration:0.3 }) }, insertion: 'top', }); }); function showComment(divId){ new Effect.SlideDown(divId, { duration:0.3 }); }
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?
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.
Happiness corrupts people.
Failing to value the lives of others cheapens your own.
![]() |
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
age ajax amd asp avatar blue gene business chips database developer development dos economy energy enterprise environment hardware home ibm ibm. news intel ibm internet it linux memory microsoft msdn news office open source openoffice pc ps3 recession red hat remote working sex site software sql sun supercomputer supercomputing technology trends ubuntu vista web working x86
- Help needed working with prototype.js and php (JavaScript / DHTML / AJAX)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Pls help javascript tree view menus problem
- Next Thread: Dynamic web



Linear Mode