Re: GWT-generated Webpage fails to display on IE
I tried both solutions, with no result. I'm testing it on both IE7 and IE8. Thought it fails to run on both. GREP -rn undefined grep -rn undefined * verenweb/B4235FD66736D1D8EBE34C5FC05A7C85.cache.html:1770: wnd.__gwt_initWindowCloseHandler = undefined; FUNCTION _ = ElementMapperImpl.prototype = new Object_0(); _.getClass$ = getClass_22; _.typeId$ = 0; function $getWindowCloseHandlerMethodString(){ return function(beforeunload, unload){ var wnd = window, oldOnBeforeUnload = wnd.onbeforeunload, oldOnUnload = wnd.onunload; wnd.onbeforeunload = function(evt){ var ret, oldRet; try { ret = beforeunload(); } finally { oldRet = oldOnBeforeUnload oldOnBeforeUnload(evt); } if (ret != null) { return ret; } if (oldRet != null) { return oldRet; } } ; wnd.onunload = function(evt){ try { unload(); } finally { oldOnUnload oldOnUnload(evt); wnd.onresize = null; wnd.onscroll = null; wnd.onbeforeunload = null; wnd.onunload = null; } } ; wnd.__gwt_initWindowCloseHandler = undefined; } .toString(); } DocoMain.gwt.xml html head meta http-equiv=content-type content=text/html; charset=UTF-8 meta http-equiv=X-UA-Compatible content=IE=EmulateIE7 !--meta http-equiv=X-UA-Compatible content=IE=7-- On Jul 1, 12:11 am, Thomas Broyer t.bro...@gmail.com wrote: On 30 juin, 12:24, snikrot ctenhoo...@gmail.com wrote: Hi all, Since a few days I've been developing a GWT-Web application (so I'm still pretty much a newbie). This application only (for now) runs only client sided. After compiling and running under Firefox Opera my application just runs fine. When running under Internet Explorer I'm getting an error though. I'm wondering if anyone knows the solution to get rid of this error? Are you using IE8? If so, until 1.6.5 is released and you make the switch, you have to set IE8 in compat mode; e.g. by including the following in your HTML: meta http-equiv=X-UA-Compatible content=IE=EmulateIE7 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT-generated Webpage fails to display on IE
By now it's returning the error on: Line: 39 Char: 7 -Line - frameWnd.gwtOnLoad(onLoadErrorFunc, 'verenweb', base); function maybeStartModule(){ if (scriptsDone loadDone) { var iframe = $doc_0.getElementById('verenweb'); var frameWnd = iframe.contentWindow; if (isHostedMode()) { frameWnd.__gwt_getProperty = function(name_0){ return computePropValue(name_0); } ; } verenweb = null; frameWnd.gwtOnLoad(onLoadErrorFunc, 'verenweb', base); $stats $stats({moduleName:'verenweb', subSystem:'startup', evtGroup:'moduleStartup', millis:(new Date()).getTime(), type:'end'}); } } onLoadErrorFunc function processMetas(){ var metas = document.getElementsByTagName('meta'); for (var i = 0, n = metas.length; i n; ++i) { var meta = metas[i], name_0 = meta.getAttribute('name'), content; if (name_0) { if (name_0 == 'gwt:property') { content = meta.getAttribute('content'); if (content) { var value, eq = content.indexOf('='); if (eq = 0) { name_0 = content.substring(0, eq); value = content.substring(eq + 1); } else { name_0 = content; value = ''; } metaProps[name_0] = value; } } else if (name_0 == 'gwt:onPropertyErrorFn') { content = meta.getAttribute('content'); if (content) { try { propertyErrorFunc = eval(content); } catch (e) { alert('Bad handler ' + content + ' for gwt:onPropertyErrorFn'); } } } else if (name_0 == 'gwt:onLoadErrorFn') { content = meta.getAttribute('content'); if (content) { try { onLoadErrorFunc = eval(content); } catch (e) { alert('Bad handler ' + content + ' for gwt:onLoadErrorFn'); } } } } } } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
GWT-generated Webpage fails to display on IE
Hi all, Since a few days I've been developing a GWT-Web application (so I'm still pretty much a newbie). This application only (for now) runs only client sided. After compiling and running under Firefox Opera my application just runs fine. When running under Internet Explorer I'm getting an error though. I'm wondering if anyone knows the solution to get rid of this error? Thanks in advance. Error Line: 3 Char: 143 Error: 'Undefined' is null or not an object Code: 0 When searching with grep -r undefined *, I get this result (check the last line): Cause war/verenweb/59DC383528440B72ACE9B58545B6AA9A.cache.html: _=DF.prototype=new b$();_.gC=eG;_.tI=0;function jG(){return function (d,g){var h=window,e=h.onbeforeunload,f=h.onunload;h.onbeforeunload=function(a) {var c,b;try{c=d()}finally{b=ee(a)}if(c!=null){return c}if(b!=null) {return b}};h.onunload=function(a){try{g()}finally{ff (a);h.onresize=null;h.onscroll=null;h.onbeforeunload=null;h.onunload=null}};h.__gwt_initWindowCloseHandler=undefined}.toString ()} Which shows undefined (textual) is used only once in all my files and appears to be autogenerated. My main-class (Entry-Point) is specified by: Entry-Point @Override public void onModuleLoad() { // TODO Auto-generated method stub RootPanel.get(VerenWeb).add(mainPanel); } DocoPanel mainPanel = new DocoPanel(); DocoPanel is an AbsolutePanel, which contains other AbsolutePanels, ListBoxes, TextBoxes and Labels. I tried using a windowCloseHandler, but this failed as it did not update h.__gwt_initWindowCloseHandler=undefined My XML and WebPage are specified by: VerenWeb.html !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN !-- The HTML 4.01 Transitional DOCTYPE declaration-- !-- above set at the top of the file will set -- !-- the browser's rendering engine into -- !-- Quirks Mode. Replacing this declaration -- !-- with a Standards Mode doctype is supported, -- !-- but may lead to some differences in layout. -- html head meta http-equiv=content-type content=text/html; charset=UTF-8 !-- -- !-- Consider inlining CSS to reduce the number of requested files -- !-- -- link type=text/css rel=stylesheet href=VerenWeb.css titleDoco Web Project/title !-- -- !-- This script loads your compiled module. -- !-- If you add any GWT meta tags, they must -- !-- be added before this line.-- !-- -- script type=text/javascript language=javascript src=verenweb/ verenweb.nocache.js/script /head !-- -- !-- The body can have arbitrary html, or -- !-- you can leave the body empty if you want -- !-- to create a completely dynamic UI.-- !-- -- body !-- OPTIONAL: include this if you want history support -- iframe src=javascript:'' id=__gwt_historyFrame tabIndex='-1' style=position:absolute;width:0;height:0;border:0/iframe h1Doco Web Project/h1 div id=VerenWeb/div /body /html DocoMain.gwt.xml ?xml version=1.0 encoding=UTF-8? !DOCTYPE module PUBLIC -//Google Inc.//DTD Google Web Toolkit 1.6.4// EN http://google-web-toolkit.googlecode.com/svn/tags/1.6.4/distro- source/core/src/gwt-module.dtd module rename-to='verenweb' !-- Inherit the core Web Toolkit stuff.-- inherits name='com.google.gwt.user.User'/ inherits name='snikrot.standard.debug'/ inherits name='snikrot.standard.core.debug'/ inherits name='snikrot.standard.core.observer'/ inherits name='snikrot.standard.core.stdObjectCalculations'/ inherits name='snikrot.standard.gwt.stdGUI'/ !-- Inherit the default GWT style sheet. You can change -- !-- the theme of your GWT application by uncommenting -- !-- any one of the following lines.-- inherits name='com.google.gwt.user.theme.standard.Standard'/ !-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/ -- !-- inherits name='com.google.gwt.user.theme.dark.Dark'/ -- !-- Other module inherits -- !-- Specify the app entry point class. -- entry-point class='veren.web.client.docoMain.DocoMain'/ /module --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to