Author: psharples
Date: Wed Oct 5 11:40:12 2011
New Revision: 1179173
URL: http://svn.apache.org/viewvc?rev=1179173&view=rev
Log:
Added an icon next to each widget instance which allows the user to load the
widget instance into a new browser window. (we have no windowing mechanism
(max, min, etc) so sometimes this is useful for widget with larger content.)
Modified:
incubator/wookie/trunk/WebContent/webmenu/demoWidget.jsp
Modified: incubator/wookie/trunk/WebContent/webmenu/demoWidget.jsp
URL:
http://svn.apache.org/viewvc/incubator/wookie/trunk/WebContent/webmenu/demoWidget.jsp?rev=1179173&r1=1179172&r2=1179173&view=diff
==============================================================================
--- incubator/wookie/trunk/WebContent/webmenu/demoWidget.jsp (original)
+++ incubator/wookie/trunk/WebContent/webmenu/demoWidget.jsp Wed Oct 5
11:40:12 2011
@@ -62,12 +62,12 @@
<table>
<tr>
<td>
- <h2>Widget for first test user</h2>
+ <div><a href="#" onclick="window.open('<%=
request.getAttribute("firstWidgetURL") %>?idkey=<%=
request.getParameter("idkey")
%>&proxy=<%=request.getAttribute("proxy")%>')"><img
src="../shared/images/view_1.gif" alt="open in new window"></a><h2
style="display: inline;">Widget for first test user</h2></div><br>
<iframe width="<%= request.getAttribute("widgetWidth") %>"
height="<%= request.getAttribute("widgetHeight") %>" src="<%=
request.getAttribute("firstWidgetURL") %>?idkey=<%=
request.getParameter("idkey") %>&proxy=<%=request.getAttribute("proxy")%>">
</iframe>
</td>
<td>
- <h2>Widget for second test user</h2>
+ <div><a href="#" onclick="window.open('<%=
request.getAttribute("secondWidgetURL") %>?idkey=<%=
request.getParameter("idkey")
%>&proxy=<%=request.getAttribute("proxy")%>')"><img
src="../shared/images/view_1.gif" alt="open in new window"></a><h2
style="display: inline;">Widget for second test user</h2></div><br>
<iframe width="<%= request.getAttribute("widgetWidth") %>"
height="<%= request.getAttribute("widgetHeight") %>" src="<%=
request.getAttribute("secondWidgetURL") %>?idkey=<%=
request.getParameter("idkey") %>&proxy=<%=request.getAttribute("proxy")%>">
</iframe>
</td>