Part of the EllisLab Network
   
 
Ajax.PeriodicalUpdater won’t return string (Solved)
Posted: 14 March 2008 05:52 PM   [ Ignore ]  
Summer Student
Total Posts:  13
Joined  09-17-2007

Hello and sorry if someone have asked this before, but i couldn’t find anything.

I just have a div that i want to update every 2 seconds.
I downloaded the Prototype library and included it with my app.
<\script type=“text/javascript” src=”/src/prototype.js” > // the \ is there so the code is being displayed grin
The folder “src” is in the root and has the right owner etc.

Then i do this:

new Ajax.PeriodicalUpdater('artist''/index.php/iTunes/getArtist'{method'get'asynchronous:trueinsertionElement.updatefrequency:2}); 

the /index.php/iTunes/getArtist is returning a value so its nothing wrong there.

But my div on the other hand is not updating at all.

Does anyone now what i am doing wrong?

Thanks;
- Audun

EDIT: In the SVN version of prototype the prototype.js file is missing for the dist folder. I assumed that the prototype.js in the src was the correct one. I have now downloaded the old november file and everything is working perfectly

Profile