0

I'm writing a web application in GWT and always worked in Dev Mode. I wanted to check some things in other browsers so I compiled the whole app and opened it in all major browsers. The application shows in Firefox and IE, but not in Chrome and Safari. Chrome and Safari just give me a blank page. When I press ctrl + u to view the source, the code is there, but it doesn't to anything.

I already checked the html host page for errors with the W3C validator but there were none. Any other suggestions?

tim_a
  • 940
  • 1
  • 7
  • 20

2 Answers2

0

You might have a JavaScript error, did you try debugging the JS?

Google Chrome Javascript Debugger and Content Scripts

Community
  • 1
  • 1
SavoryBytes
  • 35,571
  • 4
  • 52
  • 61
  • I'm using GWT as a plugin in Eclipse so if there is an error in the java code resulting in a error in the javascript code eclipse will let me know, or not? – tim_a Apr 02 '11 at 16:34
  • I believe that in modern GWT/Eclipse (since Out Of Process Hosted Mode) a log of runtime errors can be seen in the View->Google->Development Mode console. – Jim Blackler Apr 02 '11 at 16:39
  • I haven't used GWT yet so I don't know what the work flow is like, but I know you write in Java and end up with JavaScript. You didn't give us example to work with in your question, so I'd start by defining the issue so you know for sure what to fix. – SavoryBytes Apr 02 '11 at 16:39
  • In dev mode there is no problem. No errors in the log screen. It's just a problem when I compile everything. What do you mean with giving an example? I can't give you a specific line of code or something like that... – tim_a Apr 02 '11 at 17:07
0

Ok I got it working the following way. When I compile everything and just open the file In chrome or safari it doesn't work and I get following error in the console:

Unsafe JavaScript attempt to access frame with URL file:///H:/xampp/htdocs/bibliotheek/BibPhp.html from frame with URL file:///H:/xampp/htdocs/bibliotheek/bibphp/66B91B7CC29032C1F497FD7DE63723A5.cache.html. Domains, protocols and ports must match.

But when I transfer everything to my web server it works fine. It has to do something with cross server accessing frames. Here is more about the issue: http://code.google.com/p/chromium/issues/detail?id=31068

tim_a
  • 940
  • 1
  • 7
  • 20