taylor      2003/11/04 02:57:11

  Added:       webapp/WEB-INF/templates/jsp/portlets/html
                        delayedContent.jsp
  Log:
  delayed content jsp implementation
  
  Revision  Changes    Path
  1.1                  
jakarta-jetspeed/webapp/WEB-INF/templates/jsp/portlets/html/delayedContent.jsp
  
  Index: delayedContent.jsp
  ===================================================================
  <%@ page import = "org.apache.jetspeed.portal.portlets.GenericMVCPortlet" %>
  
  <%
  String portletId = (String) request.getAttribute(GenericMVCPortlet.PORTLET_ID);
  String docUrl = (String) request.getAttribute(GenericMVCPortlet.DOC_URL);
  String iframeStyle = 
"position:absolute;top:-100;left:-100;height:0px;width:0px;visibility:hidden";
  %>
  <div id="div-<%= portletId %>">
  <br>
  ... loading ...<br>
  <br>
  </div>
  <script type="text/javascript">
  function handleOnLoad(portletId, html)
  {
  //    alert('top.handleOnLoad: portletId=' + portletId + ', html="' + html + '" 
(len=' + html.length + ')');
        var div = document.getElementById('div-' + portletId);
        div.innerHTML = html;
  }
  </script>
  <iframe src="loadDoc.jsp?<%= GenericMVCPortlet.DOC_URL %>=<%= docUrl %>&<%= 
GenericMVCPortlet.PORTLET_ID %>=<%= portletId %>" style="<%= iframeStyle %>"></iframe>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to