Welcome Guest, Not a member yet? Register   Sign In
Ajax.PeriodicalUpdater won't return string (Solved)
#1

[eluser]audunfr[/eluser]
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 :-)
The folder "src" is in the root and has the right owner etc.

Then i do this:
Code:
new Ajax.PeriodicalUpdater('artist', '/index.php/iTunes/getArtist', {method: 'get', asynchronous:true, insertion: Element.update, frequency: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




Theme © iAndrew 2016 - Forum software by © MyBB