this.initialize is undefined - prototype.js: Line 48 This error occurs with the following JS: <script src="prototype.js"></script> <script> function loadBrowseMode() { $(''browser'').update("Loading...<br/>"); Ajax.Request(''browse.php'', { method:''get'', parameters: { list: ''author'' } }); } </script> This is strange behavior. Can anyone tell me why it''s happening? Matt --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I neglected to mention that I''m running Firefox 3.0b4, on Mac OS X. Matt On Mar 23, 7:26 pm, applmak <appl...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> this.initialize is undefined - prototype.js: Line 48 > > This error occurs with the following JS: > > <script src="prototype.js"></script> > <script> > function loadBrowseMode() > { > $(''browser'').update("Loading...<br/>"); > Ajax.Request(''browse.php'', { > method:''get'', > parameters: { > list: ''author'' > } > }); > } > </script> > > This is strange behavior. Can anyone tell me why it''s happening? > > Matt--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Matt, Trunk version of prototype "fixes" few issues with FF3, so you might want to give it a try. Also, it''s a good idea to give script tags a type="text/javascript" attribute : ) Best, kangax On Mar 23, 8:28 pm, applmak <appl...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I neglected to mention that I''m running Firefox 3.0b4, on Mac OS X. > > Matt > > On Mar 23, 7:26 pm, applmak <appl...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > this.initialize is undefined - prototype.js: Line 48 > > > This error occurs with the following JS: > > > <script src="prototype.js"></script> > > <script> > > function loadBrowseMode() > > { > > $(''browser'').update("Loading...<br/>"); > > Ajax.Request(''browse.php'', { > > method:''get'', > > parameters: { > > list: ''author'' > > } > > }); > > } > > </script> > > > This is strange behavior. Can anyone tell me why it''s happening? > > > Matt--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Matt, you need a "new" keyword: new Ajax.Request(''browse.php'', { method:''get'', ... Cheers, Andrew On Mar 23, 7:26 pm, applmak <appl...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> this.initialize is undefined - prototype.js: Line 48 > > This error occurs with the following JS: > > <script src="prototype.js"></script> > <script> > function loadBrowseMode() > { > $(''browser'').update("Loading...<br/>"); > Ajax.Request(''browse.php'', { > method:''get'', > parameters: { > list: ''author'' > } > }); > } > </script> > > This is strange behavior. Can anyone tell me why it''s happening? > > Matt--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---