Re: [PHP-DB] A Question on Javascript

2002-11-14 Thread Jeffrey_N_Dyke


The relationsionship can be maintained by window.opener from within the
child wildow -> parent window, and the simply the name of the window you
assigned can be used when going from the parent window -> child window.

hth
jeff




   
 
Shahmat Dahlan 
 
 
s.com.my>cc:   
 
 Subject:     [PHP-DB] A Question on 
Javascript 
11/14/2002 
 
01:27 AM   
 
   
 
   
 




I have a question on Javascript, if you don't mind.

Say if I have a main page, whereby I would also have a html form which
contains a button. Let's call it main document.

When I click on the button it will open a new window, which refers to
another html page. Now, let's call it child document.
Now on this html page, say, I would like to search for an e-mail address,
and returns the value of the e-mail address from the child document
to the main document.

Regards and thanks in advance.


(See attached file: smime.p7s)



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP-DB] A Question on Javascript

2002-11-13 Thread Beau Lebens
Not that there is actually a question in there...
 
I assume your question is "How do I pass a value from a window which was
opened via JavaScript, back to the window which opened it"
 
Short answer: "window.opener" <-- read up in a javascript reference manual
about this object.
 
Longer answer
after reading up on the above, you will find that you can manipulate the
elements on the "opener" of a window via javascript. This will allow you to
do things like get an email, then drop it back into a form field
(window.opener.formName.formField.value = foundEmailAddress or something
like that)
 
not that this has anything directly to do with PHP or Databases, let alone
both.
 
enjoy, have fun
 
Beau

-Original Message-
From: Shahmat Dahlan [mailto:shahmatd@;sains.com.my]
Sent: Thursday, 14 November 2002 2:27 PM
To: PHP DB Mailing List
Subject: [PHP-DB] A Question on Javascript


I have a question on Javascript, if you don't mind. 

Say if I have a main page, whereby I would also have a html form which
contains a button. Let's call it main document. 


When I click on the button it will open a new window, which refers to
another html page. Now, let's call it child document. 
Now on this html page, say, I would like to search for an e-mail address,
and returns the value of the e-mail address from the child document 
to the main document. 


Regards and thanks in advance. 
  
  




[PHP-DB] A Question on Javascript

2002-11-13 Thread Shahmat Dahlan


I have a question on Javascript, if you don't mind.
Say if I have a main page, whereby I would also have a html form which
contains a button. Let's call it main document.
When I click on the button it will open a new window, which refers to
another html page. Now, let's call it child document.
Now on this html page, say, I would like to search for an e-mail address,
and returns the value of the e-mail address from the child document
to the main document.
Regards and thanks in advance.
 
 


smime.p7s
Description: S/MIME Cryptographic Signature