Hello all, I''m using the prototype.js in my application and i have an error: Error: element has no properties Source File: http://www/application/js/prototype.js Line: 3844 function getEventID(element) { if (element._eventID) return element._eventID; arguments.callee.id = arguments.callee.id || 1; return element._eventID = ++arguments.callee.id; } Am I doing something wrong or is this a known bug? P.S.:Sorry for my poor english ok?! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
You''re obviously setting an observer on an element before it exists in the DOM. Make sure you use document.observe(''dom:loaded'', callback) to access elements in the DOM from a file contained in the header. Best, Tobie On Dec 4, 1:18 pm, "or...-MOpmq3yHVPUJGwgDXS7ZQA@public.gmane.org" <or...-MOpmq3yHVPUJGwgDXS7ZQA@public.gmane.org> wrote:> Hello all, > > I''m using the prototype.js in my application and i have an error: > > Error: element has no properties > Source File:http://www/application/js/prototype.js > Line: 3844 > > function getEventID(element) { > if (element._eventID) return element._eventID; > arguments.callee.id = arguments.callee.id || 1; > return element._eventID = ++arguments.callee.id; > > } > > Am I doing something wrong or is this a known bug? > > P.S.:Sorry for my poor english ok?!--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Im using http://prototypejs.org/assets/2007/10/16/prototype.js and the firebug show me: getEventID(null)prototype.js (line 3812) createWrapper(null, "keypress", function())prototype.js (line 3832) observe(null, "keypress", function())prototype.js (line 3876) setupOneElementMask(null)masks.js (line 99) if (element._eventID) return element._eventID; Regards, Tobie Langel wrote:> You''re obviously setting an observer on an element before it exists in > the DOM. > > Make sure you use document.observe(''dom:loaded'', callback) to access > elements in the DOM from a file contained in the header. > > Best, > > Tobie > > On Dec 4, 1:18 pm, "or...-MOpmq3yHVPUJGwgDXS7ZQA@public.gmane.org" <or...-MOpmq3yHVPUJGwgDXS7ZQA@public.gmane.org> wrote: > >> Hello all, >> >> I''m using the prototype.js in my application and i have an error: >> >> Error: element has no properties >> Source File:http://www/application/js/prototype.js >> Line: 3844 >> >> function getEventID(element) { >> if (element._eventID) return element._eventID; >> arguments.callee.id = arguments.callee.id || 1; >> return element._eventID = ++arguments.callee.id; >> >> } >> >> Am I doing something wrong or is this a known bug? >> >> P.S.:Sorry for my poor english ok?! >> > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Im using http://prototypejs.org/assets/2007/10/16/prototype.js and the firebug show me: getEventID(null)prototype.js (line 3812) createWrapper(null, "keypress", function())prototype.js (line 3832) observe(null, "keypress", function())prototype.js (line 3876) setupOneElementMask(null)masks.js (line 99) if (element._eventID) return element._eventID; Regards, Tobie Langel wrote:> You''re obviously setting an observer on an element before it exists in > the DOM. > > Make sure you use document.observe(''dom:loaded'', callback) to access > elements in the DOM from a file contained in the header. > > Best, > > Tobie > > On Dec 4, 1:18 pm, "or...-MOpmq3yHVPUJGwgDXS7ZQA@public.gmane.org" <or...-MOpmq3yHVPUJGwgDXS7ZQA@public.gmane.org> wrote: > >> Hello all, >> >> I''m using the prototype.js in my application and i have an error: >> >> Error: element has no properties >> Source File:http://www/application/js/prototype.js >> Line: 3844 >> >> function getEventID(element) { >> if (element._eventID) return element._eventID; >> arguments.callee.id = arguments.callee.id || 1; >> return element._eventID = ++arguments.callee.id; >> >> } >> >> Am I doing something wrong or is this a known bug? >> >> P.S.:Sorry for my poor english ok?! >> > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Im using http://prototypejs.org/assets/2007/10/16/prototype.js and the firebug show me: getEventID(null)prototype.js (line 3812) createWrapper(null, "keypress", function())prototype.js (line 3832) observe(null, "keypress", function())prototype.js (line 3876) setupOneElementMask(null)masks.js (line 99) if (element._eventID) return element._eventID; Thanks Tobie Langel wrote:> You''re obviously setting an observer on an element before it exists in > the DOM. > > Make sure you use document.observe(''dom:loaded'', callback) to access > elements in the DOM from a file contained in the header. > > Best, > > Tobie > > On Dec 4, 1:18 pm, "or...-MOpmq3yHVPUJGwgDXS7ZQA@public.gmane.org" <or...-MOpmq3yHVPUJGwgDXS7ZQA@public.gmane.org> wrote: > >> Hello all, >> >> I''m using the prototype.js in my application and i have an error: >> >> Error: element has no properties >> Source File:http://www/application/js/prototype.js >> Line: 3844 >> >> function getEventID(element) { >> if (element._eventID) return element._eventID; >> arguments.callee.id = arguments.callee.id || 1; >> return element._eventID = ++arguments.callee.id; >> >> } >> >> Am I doing something wrong or is this a known bug? >> >> P.S.:Sorry for my poor english ok?! >> > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---