|
 |
asp_components thread: opening a window and retreiving info
Message #1 by Christian Cruz <chris_cruz1@y...> on Thu, 14 Sep 2000 11:36:13 -0700 (PDT)
|
|
Thanks Michael and William for the answers, I'll try
what you say.
What I am doing is displaying a list of clients
retrieved from a database, what I am really interested
in retreiving is the ID of the client. Each client on
the list has a hidden value next to it, which has it's
ID number.
So, am I right if I say that I can write from one
hidden value on the new window to another hidden value
on the original window?
I am not sure if a hidden box has a .innerText
property
thanks again
Chris C.
--- William Milne <wmilne01@e...> wrote:
> Chris
> To answer your question, you could use the document
> object model 'opener'
> property with some javascript e.g. at the end of
> your pop-up window have
> <SCRIPT LANGUAGE=javascript>
> /* Now paint the text on the main form and close
> this window */
> opener.document.all.MainFormControl.innerText
> document.all.listControl.value;
> self.close();
> </SCRIPT>
>
> MainFormControl and listControl are element id's
> Hope this helps
>
> William Milne
>
Message #2 by "Michael Angelo Libio" <malibio@h...> on Thu, 14 Sep 2000 19:36:43 -0700
|
|
The problem with innerText is that it's only good for IE not Netscape. If
you don't care about browser compatiblity, then use the Modal Browser
Windows for IE 4. Very usefull feature! Check this link.
http://support.microsoft.com/support/kb/articles/Q221/5/90.ASP
----- Original Message -----
From: "Christian Cruz" <chris_cruz1@y...>
To: "ASP components" <asp_components@p...>
Sent: Thursday, September 14, 2000 11:36 AM
Subject: [asp_components] opening a window and retreiving info
> Thanks Michael and William for the answers, I'll try
> what you say.
>
> What I am doing is displaying a list of clients
> retrieved from a database, what I am really interested
> in retreiving is the ID of the client. Each client on
> the list has a hidden value next to it, which has it's
> ID number.
>
> So, am I right if I say that I can write from one
> hidden value on the new window to another hidden value
> on the original window?
>
> I am not sure if a hidden box has a .innerText
> property
>
> thanks again
>
> Chris C.
>
>
> --- William Milne <wmilne01@e...> wrote:
> > Chris
> > To answer your question, you could use the document
> > object model 'opener'
> > property with some javascript e.g. at the end of
> > your pop-up window have
> > <SCRIPT LANGUAGE=javascript>
> > /* Now paint the text on the main form and close
> > this window */
> > opener.document.all.MainFormControl.innerText
> > document.all.listControl.value;
> > self.close();
> > </SCRIPT>
> >
> > MainFormControl and listControl are element id's
> > Hope this helps
> >
> > William Milne
> >
>
>
>
>
|
|
 |