On 9 juil, 22:18, skippy <[email protected]> wrote: > I am trying to replace my GWT page with a logon jsp page when the > session times out. This works great in Fire Fox, but not in IE. It > looks like the HTML is not valid in IE. It is missing the "" in the > tags. > > This code: > > HTML htmlResponse = new HTML(); > htmlResponse.setHTML(response.getText()); > RootPanel.get().clear(); > RootPanel.get().add(htmlResponse); > > In Fire fox the object contains: Note the "" > > <div class="gwt-HTML"> > <form name="targetForm" method="post" action="UserLogon? > bankNumber=9T&subProduct="> > <input name="fieldKey" value="error" type="hidden"> > <input name="messageText" value="Your session has ended. > Please log in to reauthenticate." type="hidden"> > <script language="JavaScript"> > document.targetForm.submit(); > </script> > </form> > </div> > > In IE8 the object contains: Note the lack of "" > > <DIV class=gwt-HTML> > <FORM method=post name=targetForm action=UserLogon? > bankNumber=9T&subProduct=> > <INPUT value=error type=hidden name=fieldKey> > <INPUT value="Your session has ended. Please log in to > reauthenticate." type=hidden name=messageText> > <SCRIPT language=JavaScript> > document.targetForm.submit(); > </SCRIPT> > </FORM></DIV> > > The HTML in IE is not valid.
Yes it is, but it really doesn't matter here. What matters is that, for security reasons, <script>s injected with innerHTML are not executed. -- 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.
