![]() |
Ajax.PeriodicalUpdater won't return string (Solved) - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Ajax.PeriodicalUpdater won't return string (Solved) (/showthread.php?tid=6864) |
Ajax.PeriodicalUpdater won't return string (Solved) - El Forum - 03-14-2008 [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}); 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 |