The problem is the url in the generated Javascript... 1) it shouldn't be an
<a href> tag and 2) the nested quotes are making javascript barf.  So, the
generated javascript:

   newWindow = open("<a
href="/use-it-portal-web/amonDetail.crm"></a>","amonDetailWindow","height=65
0,width=700");

should instead be:

   newWindow =
open("/use-it-portal-web/amonDetail.crm","amonDetailWindow","height=650,widt
h=700");

I think instead of the <html:link> tag you should instead use
<html:rewrite>.

Hope that helps,

chris

> -----Original Message-----
> From: Daniela Gisin [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 10, 2002 2:33 AM
> To: [EMAIL PROTECTED]
> Subject: pop-up window
> Importance: High
> 
> 
> Hi
> 
> I would like to open a new window by calling an action class 
> which calls the
> new jsp.
> 
> my javascript function looks like this:
> ---------------------------------------
> function OpenAmonDetail1(){
>                       newWindow = open("<html:link
> forward='amonDetail'></html:link>","amonDetailWindow","height=
> 650,width=700");
> }
> 
> 
> the entry in struts-config.xml looks like this:
> -----------------------------------------------
> <forward name="amonDetail" path="/amonDetail.crm"/>
> 
> 
> the call of the javascript function looks like this:
> ----------------------------------------------------
> <A href="javascript:OpenAmonDetail1()"><img
> src="<%=request.getContextPath()%>/images/infobutton.gif"  
> border="0" width="14" height="14"/></A>
> 
> unfortunately I keep getting the following javascript-error:
> ------------------------------------------------------------
> 
> missing ) after argument list. 
> 
>                                 newWindow = open("<a
> href="/use-it-portal-web/amonDetail.crm"></a>","amonDetailWind
> ow","height=650,width=700");
> ..............................................................
> ..............................^
> 
> 
> Can you help me? Thanks a lot!
> Daniela
> 
> -- 
> GMX - Die Kommunikationsplattform im Internet.
> http://www.gmx.net
> 
> 
> --
> To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to