Works in firefox but doesn't load in Internet Explorer 6

23 views
Skip to first unread message

Ranjan

unread,
Mar 4, 2007, 7:18:52 AM3/4/07
to Google Web Toolkit
Does anybody know if we could have bugs in our program such that the
compiled page would load properly in FireFox but wouldn't do so in
Internet Explorer 6.

I tried to load the compiled page without using a webserver (i.e.,
directly opening the index.html file). In which case, the firefox
doesn't complain about anything but Internet Explorer would show up
with run time error (object is null). And would open up a debugger to
debug those messy compiled javascript.

dominik_steiner

unread,
Mar 6, 2007, 3:21:10 AM3/6/07
to Google Web Toolkit
Hi Ranjan,

IE6 is a nightmare. The only thing you can do is to compile your GWT
code with -style DETAILED or -style PRETTY and work your way through
the javascript file to find the reason for the error.

HTH

Dominik

oleber

unread,
Mar 6, 2007, 3:43:40 AM3/6/07
to Google Web Toolkit
Hi

Do the correct thing.

Start removing as much as you can from your application until you
identify the error and post it. Like this the bug can be solved and
all the community will benefit.

Probably the -style DETAILED or -style PRETTY can help

Marcos

On Mar 6, 8:21 am, "dominik_steiner" <Dominik.Stei...@partner.bmw-

Ranjan

unread,
Mar 14, 2007, 3:11:08 AM3/14/07
to Google Web Toolkit
Hi oleber,

Thanks for the advice. I tried it out and it seemed there is some
error while parsing an XML file.

I have an asynchronous request in the program that returns an XML
file. I tried to load the XML file independently. Firefox accepted the
response as a valid XML response whereas internet explorer gave an
error:
Only one top level element is allowed in an XML document. Error
processing resource
The actual XML response is as follow:

<?xml version="1.0"?>
<Response>
<Failure>0</Failure>
<Users Count="1" Page="1" PageSize="1000">
<UserInfo>
<ID>832411C5-A9DC-4988-6C90-E8B6DC6599C2</ID>
<Name>User1</Name>
<Description>Guest User</Description>
<CreatedDate>3/13/2007 6:42:59 PM</CreatedDate>
<Online>false</Online>
<LoggedInTime>12:00:00 AM</LoggedInTime>
</UserInfo>
</Users>
</Response>

I don't see any problem in the XML. Do you have any idea?

Ranjan

unread,
Mar 14, 2007, 7:57:53 AM3/14/07
to Google Web Toolkit
Well finally I found out. I was implementing my own HTTP server and
responding with HTTP 1.0 version which made IE to respond in quite a
different way. I also had a small bug in the program which was easily
tackled by Firefox but IE couldn't. Besides that IE was trying to be
smart and using cache feature. I had to include "Cache-Control" in the
HTTP Response header to work around. Finally everything is going well
now.
Reply all
Reply to author
Forward
0 new messages