Re: Réf. : Re: How to pass parameters to a javascript popup
When you use a relative url (without "/" as first char) browser request the ressource from it's current location: For example, let's say the current URL is : http://server/context/news/consult.do if you add a RELATIVE link to "list.do", browser will send a request for "http://server/context/news/list.do"; if you add an ABSOLUTE link to "/list.do", browser will send a request for "http://server/news/list.do"; tag is used to create absolute URI, adding webapp context at runtime : will generate "/context/foo", regardless current URL is "/context/subdir/another_subdir/action.do" Nico. Nicolas, it works! thank you very much. Can you explain me the magic of html rewrite tag. Meissa "Nicolas De Loof" <[EMAIL PROTECTED]> 04/07/2003 09:03 Veuillez répondre à "Struts Users Mailing List" Pour : "Struts Users Mailing List" <[EMAIL PROTECTED]> cc : Objet : Re: How to pass parameters to a javascript popup Perhaps you should try this : ?task=doThis');return false;">Help - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Réf. : Re: How to pass parameters to a javascript popup
Ah! That would be it then :-) Got the openWindow from google+popup+javascript... some random site Sorry :-) Thanks for all the help Brian -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: 03 July 2003 16:11 To: Struts Users Mailing List Subject: Re: Réf. : Re: How to pass parameters to a javascript popup 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. > > 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;" > > > strangely, onclick=openWindow isn't working. > > Hth, > Brian > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > 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 : > > onclick="openWindow('myaction.do?task=doThis');return false;">Help > > 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 <[EMAIL PROTECTED]> > 03/07/2003 16:24 > Veuillez répondre à "Struts Users Mailing List" > > > > Pour : Struts Users Mailing List > <[EMAIL PROTECTED]> > cc : > > Objet : Re: How to pass parameters to a javascript popup > > > Brian McSweeney wrote: > >>> > > >>onClick="openWindow('poppedup.jsp','popup','scrollbars=yes,width=1000, >>height=500,left=10,top=100')"> >> >> > > > Try > > > onclick="openWindow('poppedup.jsp?helpMsg=helpMsg1');return > > false;">Help > > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Réf. : Re: How to pass parameters to a javascript popup
Dude openWindow is your java script function name.. -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Thursday, July 03, 2003 10:11 AM To: Struts Users Mailing List Subject: Re: Réf. : Re: How to pass parameters to a javascript popup 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. > > 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;" > > > strangely, onclick=openWindow isn't working. > > Hth, > Brian > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > 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 : > > onclick="openWindow('myaction.do?task=doThis');return false;">Help > > 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 <[EMAIL PROTECTED]> > 03/07/2003 16:24 > Veuillez répondre à "Struts Users Mailing List" > > > > Pour : Struts Users Mailing List > <[EMAIL PROTECTED]> > cc : > > Objet : Re: How to pass parameters to a javascript popup > > > Brian McSweeney wrote: > >>> > > >>onClick="openWindow('poppedup.jsp','popup','scrollbars=yes,width=1000, >>height=500,left=10,top=100')"> >> >> > > > Try > > > onclick="openWindow('poppedup.jsp?helpMsg=helpMsg1');return > > false;">Help > > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Réf. : Re: How to pass parameters to a javascript popup
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. strangely, onclick=openWindow isn't working. Hth, Brian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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 : onclick="openWindow('myaction.do?task=doThis');return false;">Help 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 <[EMAIL PROTECTED]> 03/07/2003 16:24 Veuillez répondre à "Struts Users Mailing List" Pour : Struts Users Mailing List <[EMAIL PROTECTED]> cc : Objet : Re: How to pass parameters to a javascript popup Brian McSweeney wrote: onClick="openWindow('poppedup.jsp','popup','scrollbars=yes,width=1000, height=500,left=10,top=100')"> Try onclick="openWindow('poppedup.jsp?helpMsg=helpMsg1');return false;">Help 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Réf. : Re: How to pass parameters to a javascript popup
Thanks for your help Adam, Meissa, this is working for me. strangely, onclick=openWindow isn't working. Hth, Brian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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 : Help 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 <[EMAIL PROTECTED]> 03/07/2003 16:24 Veuillez répondre à "Struts Users Mailing List" Pour : Struts Users Mailing List <[EMAIL PROTECTED]> cc : Objet : Re: How to pass parameters to a javascript popup Brian McSweeney wrote: > > onClick="openWindow('poppedup.jsp','popup','scrollbars=yes,width=1000, > height=500,left=10,top=100')"> > > Try Help 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Réf. : Re: How to pass parameters to a javascript popup
Also, popup windows can reference their parent window via JavaScript. Therefore if the data you need in your popup is on the original page then you can access it using a DOM reference. From within the popup window you would do something along the lines of: var myVar = window.opener.document[theNameOfTheHtmlForm].formelement.value; -= J > -Original Message- > From: Adam Hardy [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 03, 2003 9:53 AM > To: Struts Users Mailing List > Subject: Re: Réf. : Re: How to pass parameters to a javascript popup > > that was only a very rough version for sake of an example. Does the > javascript work? I mean, does the new window pop up? if so, > then do you > see the correct URL in the new browser window? > > [EMAIL PROTECTED] wrote: > > Adam, > > have you tried this with an action url on parameter. > Something like : > > > onclick="openWindow('myaction.do?task=doThis');return > false;">Help > > > > 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 <[EMAIL PROTECTED]> > > 03/07/2003 16:24 > > Veuillez répondre à "Struts Users Mailing List" > > > > > > Pour : Struts Users Mailing List > <[EMAIL PROTECTED]> > > cc : > > Objet : Re: How to pass parameters to a javascript popup > > > > > > Brian McSweeney wrote: > > > >> >> > >>onClick="openWindow('poppedup.jsp','popup','scrollbars=yes,w > idth=1000, > >>height=500,left=10,top=100')"> > >> > >> > > > > Try > > > > > onclick="openWindow('poppedup.jsp?helpMsg=helpMsg1');return > > false;">Help > > > > 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Réf. : Re: How to pass parameters to a javascript popup
that was only a very rough version for sake of an example. Does the javascript work? I mean, does the new window pop up? if so, then do you see the correct URL in the new browser window? [EMAIL PROTECTED] wrote: Adam, have you tried this with an action url on parameter. Something like : Help 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 <[EMAIL PROTECTED]> 03/07/2003 16:24 Veuillez répondre à "Struts Users Mailing List" Pour : Struts Users Mailing List <[EMAIL PROTECTED]> cc : Objet : Re: How to pass parameters to a javascript popup Brian McSweeney wrote: onClick="openWindow('poppedup.jsp','popup','scrollbars=yes,width=1000, height=500,left=10,top=100')"> Try Help 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]