Hi folks. So this is my first ajax.periodicalupdater. I THINK I have it right, but FF is barfing. ajax = new Ajax.PeriodalUpdater(''displayChat'', ''updateRef.rbf'', {method: ''get'', frequency: 2, asynchronous:true}); That''s as simple as she gets. I get the error: "Ajax.PeriodicalUpdater is not a contstructor" and shows me that line. The function is getting called, however I can''t seem to get this to make proper requests. Cheers --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Hey, BeeRich a écrit :> "Ajax.PeriodicalUpdater is not a contstructor" and shows me thatThe only way you can get this function is *not* to have prototype.js loaded. Check your <script> tags and make sure: 1) One of them references Prototype 2) The URL is uses to reference it *works* (try it out by hand) 3) Just in case: it is loaded *before* your own script ''HTH -- Christophe Porteneuve a.k.a. TDD "[They] did not know it was impossible, so they did it." --Mark Twain Email: tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
On Jun 30, 5:48 am, Christophe Porteneuve <t...-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org> wrote:> Hey, > > BeeRich a écrit : > > > "Ajax.PeriodicalUpdater is not a contstructor" and shows me that > > The only way you can get this function is *not* to have prototype.js > loaded. Check your <script> tags and make sure: > > 1) One of them references Prototype > 2) The URL is uses to reference it *works* (try it out by hand) > 3) Just in case: it is loaded *before* your own script > > ''HTHSalut Christophe. - On the same page, I have an ajax.updater working. So the prototype.js is loading fine. - The referenced page is the same as the one above, and I''ve inserted a string output, so nothing really to not work here - script includes are right at the top. I have an onFailure calling another function, and that is happening. Just found it...I misspelled periodical. One of those days. Sante. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Double check your syntax, I think you''ve misspelled Periodical, you have Periodal. On Jun 30, 8:17 am, BeeRich <beer...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Jun 30, 5:48 am, Christophe Porteneuve <t...-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org> wrote: > > > Hey, > > > BeeRich a écrit : > > > > "Ajax.PeriodicalUpdater is not a contstructor" and shows me that > > > The only way you can get this function is *not* to have prototype.js > > loaded. Check your <script> tags and make sure: > > > 1) One of them references Prototype > > 2) The URL is uses to reference it *works* (try it out by hand) > > 3) Just in case: it is loaded *before* your own script > > > ''HTH > > Salut Christophe. > > - On the same page, I have an ajax.updater working. So the > prototype.js is loading fine. > - The referenced page is the same as the one above, and I''ve inserted > a string output, so nothing really to not work here > - script includes are right at the top. > > I have an onFailure calling another function, and that is happening. > > Just found it...I misspelled periodical. One of those days. > > Sante.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Lol ya I saw that. Imagine that, it worked when I fixed it. Cheers On 7/1/07, Matt <mattfoster01-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Double check your syntax, > > I think you''ve misspelled Periodical, you have Periodal. > > > > On Jun 30, 8:17 am, BeeRich <beer...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > On Jun 30, 5:48 am, Christophe Porteneuve <t...-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org> wrote: > > > > > Hey, > > > > > BeeRich a écrit : > > > > > > "Ajax.PeriodicalUpdater is not a contstructor" and shows me that > > > > > The only way you can get this function is *not* to have prototype.js > > > loaded. Check your <script> tags and make sure: > > > > > 1) One of them references Prototype > > > 2) The URL is uses to reference it *works* (try it out by hand) > > > 3) Just in case: it is loaded *before* your own script > > > > > ''HTH > > > > Salut Christophe. > > > > - On the same page, I have an ajax.updater working. So the > > prototype.js is loading fine. > > - The referenced page is the same as the one above, and I''ve inserted > > a string output, so nothing really to not work here > > - script includes are right at the top. > > > > I have an onFailure calling another function, and that is happening. > > > > Just found it...I misspelled periodical. One of those days. > > > > Sante. > > > > >-- BeeRich, Toronto --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---