This is the header of referring html:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
lang="en">
This is the code:
var gotoPanel = new Element(''div'',
{id:"gotoPanel",className:"trackContainer panel"});
This is the error msg in firebug.
Object cannot be created in this context" code: "9
It doesn'' work in IE neither.
Someone pls tell me why?
Thanks.
Jack
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
Tobie Langel
2007-Aug-14 18:43 UTC
Re: new Element returns object cannot be created error?
Are you using the latest release ? i.e. 1.6 from SVN ? The new Element syntax is not part of 1.5.1.1 Regards, Tobie On Aug 14, 9:29 am, Paladin <paladinj...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> This is the header of referring html: > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> > > This is the code: > var gotoPanel = new Element(''div'', > {id:"gotoPanel",className:"trackContainer panel"}); > > This is the error msg in firebug. > Object cannot be created in this context" code: "9 > It doesn'' work in IE neither. > > Someone pls tell me why? > Thanks. > > Jack--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---