Can anyone recommend any reading material for properly dealing with JavaScript includes and scope details? For example. My index page includes Prototype.js. I then fire an AJAX.Updater call to populate a DIV but Prototype.js is invisible to the content returned to that DIV. So if I want to take advantage of a Prototype function, $F(divName) for example; no such luck. And, if I include Prototype.js on the page with the content I''m fetching with AJAX.Updater; it still doesn''t function (despite evalScripts being true). I think I''m needing more of a crash course in JavaScript than using Prototype (along with a few other frameworks such as Dojo and RIco and such). Can anyone point me towards any good resources aimed towards building sites built around the AJAX capabilities of Prototype? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Well, the first problem is that $F() is an alias for Form.Element.getValue(). It does not work on divs. If you are looking for what is inside the div, you''re probably wanting: $(yourDiv).innerHTML -E On 2/5/07, Matthew Williams <matthew.d.williams-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Can anyone recommend any reading material for properly dealing with > JavaScript includes and scope details? > > For example. > > My index page includes Prototype.js. I then fire an AJAX.Updater call > to populate a DIV but Prototype.js is invisible to the content > returned to that DIV. So if I want to take advantage of a Prototype > function, $F(divName) for example; no such luck. And, if I include > Prototype.js on the page with the content I''m fetching with > AJAX.Updater; it still doesn''t function (despite evalScripts being > true). > > I think I''m needing more of a crash course in JavaScript than using > Prototype (along with a few other frameworks such as Dojo and RIco and > such). Can anyone point me towards any good resources aimed towards > building sites built around the AJAX capabilities of Prototype? > > > > >-- Eric Ryan Harrison --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Oh, and a good Prototype.js specific resource is: http://beta.bigmedium.com/bm~doc/prototype-api.pdf -E On 2/5/07, Eric Harrison <blister-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Well, the first problem is that $F() is an alias for > Form.Element.getValue(). It does not work on divs. If you are looking > for what is inside the div, you''re probably wanting: > > $(yourDiv).innerHTML > > -E > > On 2/5/07, Matthew Williams <matthew.d.williams-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > Can anyone recommend any reading material for properly dealing with > > JavaScript includes and scope details? > > > > For example. > > > > My index page includes Prototype.js. I then fire an AJAX.Updater call > > to populate a DIV but Prototype.js is invisible to the content > > returned to that DIV. So if I want to take advantage of a Prototype > > function, $F(divName) for example; no such luck. And, if I include > > Prototype.js on the page with the content I''m fetching with > > AJAX.Updater; it still doesn''t function (despite evalScripts being > > true). > > > > I think I''m needing more of a crash course in JavaScript than using > > Prototype (along with a few other frameworks such as Dojo and RIco and > > such). Can anyone point me towards any good resources aimed towards > > building sites built around the AJAX capabilities of Prototype? > > > > > > > > > > > > > -- > Eric Ryan Harrison >-- Eric Ryan Harrison --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---