I have an IFrame coming into a jsp page. I'm using this java script to call the correct url. It works in I.E., but in Firefox I get a error messages that says "document is undefined", which as you can see, is true. I tried x=document, but not good enough. Can anyone tell me what I have to include in the scipt to define the doc correctly? Thank you for your help.
and below is all the code from the one of the view jsp's. We are using a blank.html page in the src tag because we are behind a secure protocol. If I put the individual URL feeds coming into the IFrames in src tag, everything is fine, but we have multiple sites sharing the portlet, so we had to define the URL's for the IFrames inside a java class. Please let me know if you have any suggestions.
<%
MarketWatchViewBean viewbean = (MarketWatchViewBean)request.getAttribute("viewbean");
String exIndModuleURL = viewbean.getExchangeIndicesURL();
System.out.println("exIndModuleURL in nviewbean is *** "+exIndModuleURL);
System.out.println("exIndModuleURL in nviewbean is *** "+renderRequest.getWindowState());
/*
* Portal Server seems to be storing the window state of the portlet.
* This is causing problem whenever portlet is rendered in maximized mode and the user
* leaves to another page and come back to the original page. In that situation
* the portal server is rendering the portlet in maximized mode eventhough
* the page has other portlets.
* The following logic is to fix the above problem.
*/
if (renderRequest.getWindowState().equals(WindowState.MAXIMIZED)) {
%>
<script language="javascript">
location.href('<portlet:actionURL windowState="Normal" />');
</script>
<%
} else {
%>
<table class="noborder" align="center">
<tbody>
Bookmarks