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]