struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Puneet Agarwal" <puneett...@rediffmail.com>
Subject Re: passing value to and from popup window HELP
Date Wed, 29 Jan 2003 20:20:46 GMT
In Remote Scripting, you can send a GET or POST request to some webserver on
occurance of some event on receival of the response particular function of
JavaScript shall be invoked instead of refreshing the whole page.


http://developer.apple.com/internet/javascript/iframe.html

I cannot send you the code due to some mgmt issues...
try to search ..on net you will easily find some example code I guess.

Beware that this is a bad approach as regards to network traffic.

Regards
Puneet
----- Original Message -----
From: "Ashish Kulkarni" <kulkarni_ash1312@yahoo.com>
To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>; "Puneet
Agarwal" <puneettech@rediffmail.com>
Sent: Wednesday, January 29, 2003 7:55 PM
Subject: Re: passing value to and from popup window HELP


> Hi
> Do u have an example of this remote scripting stuff,
> I was able to get the first thing working of setting
> the parameters from popup window to the main window by
> using document.opener
> Also how will i come to know in my main window when
> the popup window is closed and it has passes some
> value to first window so i can do some remote scriting
>
> Ashish
> --- Puneet Agarwal <puneettech@rediffmail.com> wrote:
> > Not Necessarily..Remote Scripting can do this
> > without refreshing the whole
> > page.
> >
> > ----- Original Message -----
> > From: "Jarnot Voytek Contr AU HQ/SC"
> > <Voytek.Jarnot@MAXWELL.AF.MIL>
> > To: "'Struts Users Mailing List'"
> > <struts-user@jakarta.apache.org>
> > Sent: Wednesday, January 29, 2003 6:49 PM
> > Subject: RE: passing value to and from popup window
> > HELP
> >
> >
> > > Your second requirement will require refreshing
> > the first page no matter
> > how
> > > much you are against it.  For your first one, just
> > write a javascript
> > > function on the first page and call it from the
> > popup window as such:
> > > opener.setSomeValue('whatever');
> > >
> > > --
> > > Voytek Jarnot
> > > Quidquid latine dictum sit, altum viditur.
> > >
> > >
> > > > -----Original Message-----
> > > > From: Ashish Kulkarni
> > [mailto:kulkarni_ash1312@yahoo.com]
> > > > Sent: Wednesday, January 29, 2003 12:43 PM
> > > > To: struts-user@jakarta.apache.org
> > > > Subject: passing value to and from popup window
> > HELP
> > > >
> > > >
> > > > Hi,
> > > >
> > > > I have to do the following
> > > > When a user clicks on a link, I want to open a
> > jsp in
> > > > new window , i want to pass some parameters to
> > this
> > > > jsp, which i am doing by using
> > > > <html:link href="_blank"
> > onclick="javascript:popup()">
> > > > Click here </html:link>
> > > > But now i want to get value back from the popup
> > > > window, for e.g when the user clicks on some
> > link on
> > > > this window, get the value of this link
> > > > and display it on the textfield of the first
> > page.
> > > >
> > > > Also there is one more requriement, depending
> > upon the
> > > > value selected by the user on popup window i
> > want to
> > > > get some extra info database, and display it on
> > the
> > > > first page.
> > > > withour submitting the first page ( i was using
> > > > submitting to iframe before)
> > > >
> > > > Ashish
> > > >
> > > > =====
> > > > A$HI$H
> > > >
> > > >
> > __________________________________________________
> > > > Do you Yahoo!?
> > > > Yahoo! Mail Plus - Powerful. Affordable. Sign up
> > now.
> > > > http://mailplus.yahoo.com
> > > >
> > > >
> >
> ---------------------------------------------------------------------
> > > > 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
> > >
> > >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > struts-user-help@jakarta.apache.org
> >
>
>
> =====
> A$HI$H
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>


---------------------------------------------------------------------
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