Spawning Prism windows

1 view
Skip to first unread message

temporos

unread,
Dec 14, 2009, 8:10:23 PM12/14/09
to mozilla-labs-prism
I'm trying to write a simple web app that combines all my e-mail
services into one Prism app. The idea is that I have a "home" page
that gives a list of the available e-mail accounts. By clicking on
one of the links, I want a second Prism window to pop up with the
appropriate URL. I've tried doing this using the JavaScript method
window.open(), but this causes a new tab to open in the Firefox
browser (or opens a new instance of Firefox if one wasn't already
open).

How can I tell the host window to open new windows in the same Prism
web app? Here's my code, if that helps.

[code]
<HTML>

<HEAD>
<TITLE>E-mail Launcher</TITLE>
<LINK ref="webapp" href="EmailLauncher.webapp" title="Email">
<SCRIPT Language="JavaScript">
function popOnClick(mailserver) {
window.open
(mailserver,'MailWindow','toolbar=0,location=0,directories=0,status=0,menubar=0,width=600');
}
</SCRIPT>
</HEAD>

<BODY bgcolor="#FFFFFF">
<TABLE align="center" valign="center" border="0">
<TR>
<TD width="300" height="300" align="center" valign="center"><IMG
SRC="Gmail_Icon.png" OnClick="JavaScript: popOnClick('http://
gmail.com')"></TD>
<TD width="300" height="300" align="center" valign="center"><IMG
SRC="Windows_Live_Icon.jpg" OnClick="JavaScript: popOnClick('http://
mail.live.com')"></TD>
</TR>
<TR>
<TD width="300" height="300" align="center" valign="center"><IMG
SRC="Yahoo_Icon.png" OnClick="JavaScript: popOnClick('http://
mail.yahoo.com')"></TD>
<TD width="300" height="300" align="center" valign="center"><IMG
SRC="CRR_Logo.jpg" OnClick="JavaScript: popOnClick('http://
www.recycleroofs.com/webmail')"></TD>
</TR>

</TABLE>
</BODY>

</HTML>
[/code]

Matthew Gertner

unread,
Dec 15, 2009, 11:43:38 AM12/15/09
to mozilla-l...@googlegroups.com
Add an "include" parameter to your webapp.ini with a list of domains
to open in the Prism app, separated by commas (see
https://developer.mozilla.org/en/Prism/Configuration).
> --
>
> You received this message because you are subscribed to the Google Groups "mozilla-labs-prism" group.
> To post to this group, send email to mozilla-l...@googlegroups.com.
> To unsubscribe from this group, send email to mozilla-labs-pr...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mozilla-labs-prism?hl=en.
>
>
>

Jonathan

unread,
Dec 15, 2009, 4:59:57 PM12/15/09
to mozilla-labs-prism
The "include" line is in my webapp.ini file, but the Prism plugin for
Firefox doesn't use it when I create the app from the browser. It
completely ignores the [name].webapp zipped file, and the webapp.ini
and webapp.js files within it.

On Dec 15, 11:43 am, Matthew Gertner <matthew.gert...@gmail.com>
wrote:
> Add an "include" parameter to your webapp.ini with a list of domains

Matthew Gertner

unread,
Jan 15, 2010, 8:08:38 AM1/15/10
to mozilla-l...@googlegroups.com
Can you describe the exact procedure you are using to create your app?
I'm not sure I'm following.
Reply all
Reply to author
Forward
0 new messages