Thanks, Shellum.
It's try that you *should* only have a single element with any given id.
Browser behavior is undefined. A browser may return the first element with
that id, a randomly selected element or raise an error as you saw.

Fred


On Wed, Jul 8, 2009 at 1:31 PM, Shellum <[email protected]> wrote:

>
> Hi,
> I just spend some time finding a possible issue. I didn't see this
> anywhere in my Googling, so...
>
> It is possible to have everything in a GWT project work fine in
> Safari, Firefox, & Chrome, but fail in IE6 or IE7.
> IE will show a Javascript error :
>
> Error: 'undefined' is null or not an object
>
> You can get this error if you happen to give the id attribute in both
> your html and your RootPanel code the same name as your project.
>
> Example:
> Project name: mytest
> File mytest.html: <div id="mytest"></div>
> File MyTest.java: RootPanel.get("mytest").add(myPanel);
>
> This will fail only in IE browsers.
> If you simply change the text string in both places to be different
> than the project name, it will work in all browsers.
>
> I hope this helps.
>
> --Shellum
>
> >
>


-- 
Fred Sauer
[email protected]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to