struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Hardy <ahardy.str...@cyberspaceroad.com>
Subject Re: Réf. : Re: How to pass parameters to a javascript popup
Date Thu, 03 Jul 2003 15:11:21 GMT
I didn't stop to think about it, but now that I do, where did you get 
"openWindow()" from? Not heard of it before. window.open() is the 
correct javascript.

Brian McSweeney wrote:
> Thanks for your help Adam,
> 
> Meissa, this is working for me.
> 
> <a href="" 
> onclick="hold=window.open('poppedup.jsp?helpMessage=helpMessage2',
> 'popupWindow', 'menubar=no, scrollbars=yes, width=500, height=300,
> screenx=1, screeny=1'); 
> hold.focus(); return false;" ><bean:message key="help_with_this"/></a>
> 
> strangely, onclick=openWindow isn't working.
> 
> Hth,
> Brian
> 
> 
> -----Original Message-----
> From: meissa.Sakho@assetmanagement.natexis.fr
> [mailto:meissa.Sakho@assetmanagement.natexis.fr] 
> Sent: 03 July 2003 15:40
> To: Struts Users Mailing List
> Subject: Réf. : Re: How to pass parameters to a javascript popup
> 
> 
> Adam,
> have you tried this with an action url on parameter. Something like :
> <a href="help"
> 
> onclick="openWindow('myaction.do?task=doThis');return false;">Help</a>
> 
> I'm asking this question because It's not working with me.
> I seems my url action is not recognized with the openWindow call.
> 
> any suggestion ?
> 
> Meissa
> 
> 
> 
> 
> 
> Adam Hardy <ahardy.struts@cyberspaceroad.com>
> 03/07/2003 16:24
> Veuillez répondre à "Struts Users Mailing List"
> 
> 
> 
>         Pour :  Struts Users Mailing List
> <struts-user@jakarta.apache.org>
>         cc :
> 
>         Objet : Re: How to pass parameters to a javascript popup
> 
> 
> Brian McSweeney wrote:
> 
>><html:link href="" paramId="helpMessage" staticvalue="helpMessage1"
>>
> 
> 
>>onClick="openWindow('poppedup.jsp','popup','scrollbars=yes,width=1000,
>>height=500,left=10,top=100')">
>></html:link>
>>
> 
> 
> Try
> 
> <a href="help"
> 
> onclick="openWindow('poppedup.jsp?helpMsg=helpMsg1');return
> 
> false;">Help</a>
> 
> The return false will stop the link doing any redirecting of the current
> 
> window, and the popup will obtain the URL + querystring as defined in
> 
> the javascript.
> 
> Adam
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 
> 
> 
> 
> L'integrite de ce message n'etant pas assuree sur internet, Natexis
> Banques Populaires ne peut etre tenu responsable de
> son contenu. Toute utilisation ou diffusion non autorisee est
> interdite. Si vous n'etes pas destinataire de ce message, merci de le
> detruire et d'avertir l'expediteur.
> 
> The integrity of this message cannot be guaranteed
> on the Internet. Natexis Banques Populaires can not therefore be
> considered responsible for the contents.Any unauthorized use or
> dissemination is prohibited.
> If you are not the intended recipient of this message, then please
> delete it and
> 
> notify the sender.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message