You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by ta...@apache.org on 2003/11/04 11:57:11 UTC
cvs commit: jakarta-jetspeed/webapp/WEB-INF/templates/jsp/portlets/html delayedContent.jsp
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: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org