>>>>> "D" == David Sean Taylor <[EMAIL PROTECTED]> writes:
D> $jslink.getPortletById("P_56789_1234")
D> $jslink.getPortletByName("portlet_2")
I have a slightly different need: I want to /pop-up/ a portlet into a
simple window; the portlet configures the parameters to a java jabber
applet displayed in a bare window, so my naive approach was to use
Javascript in the navigation templates to launch it and wrap it in the
control.Print action to strip out the navigation panes, and I thought
commands like the above two would work, but ...
<script language="JavaScript">
<!-- Launch floating Jabber window
var miniwin = "$jslink.getAction("controls.Print","JabberPortlet-1")";
var remote = null;
function jabber() {
var ua = navigator.userAgent.toLowerCase();
if (ua.indexOf("x11") > -1) wd = 'width=200,height=320';
else if (ua.indexOf("mac") > -1) wd = 'width=200,height=320';
else wd = 'width=200,height=320';
remote = window.open(miniwin, 'miniwin', wd+',resizable=yes');
}// -->
document.writeln("<a class='menu' title='launch jabber window'
href='javascript:jabber()'>Launch IM</a>");
</script>
This renders my link as
var miniwin =
"http://maya:8080/sentry/portal/media-type/html/user/staff/page/default.psml/js_peid/JabberPortlet?action=controls.Print";
which is _really_ close /except/ ... the JabberPortlet-1 portlet is
defined under the _role_ template, and is not defined on that specific
user page. What I want to generate is .../html/ROLE/member/...
If I use getPortalById(), my pop-up page contains a blank
version of the user's page, no JabblerPortlet-1
and that's my theory why Jetspeed simply responds with the "not
implemented - PortletElement" (pseid not found??) error
How /should/ I craft the link and portal definition to create a
floating-box portlet? Does anyone have an example they can share of a
working pop-up portlet?
--
Gary Lawrence Murphy - [EMAIL PROTECTED] - TeleDynamics Communications
- blog: http://www.teledyn.com/mt/ - biz: http://teledyn.com/ -
"Computers are useless. They can only give you answers." (Picasso)
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>