Hi ...
> I'm attempting the same thing rigt now. Here is code that
> works when not inside another form.
Thanks, the suggestion worked allright.
Also found the following Googling for 'window.opener' after getting your
answer where the example filling in the stock name was exactly what I wanted
to do: http://www.webreference.com/js/tutorial1/opener.html
Didn't know that property. Saves the effort of naming/id-ing the opening
window to reference back.
> <script language="JavaScript">
> <!--
> function selectItem(){
> var selindex=document.popUpForm.myselect.selectedIndex;
> if (selindex!=0) {
> window.close();
>
> window.opener.document.myForm.holder.value=document.popUpForm.
> myselect[selindex].value;
> }
> }
> //-->
> </script>
Maybe should learn a bit more of Javascript, but always have insisted on not
using it and doing everything server side or in Flash to avoid problems due
to (malicious?) users switching off Javascript.
Only downside on doing everything with PHP is that some data submissions
take multiple steps as something needs to be submitted halfway to let PHP do
the validation of the submitted info.
Marc
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/HKFolB/TM
--------------------------------------------------------------------~->
Community email addresses:
Post message: [email protected]
Subscribe: [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
List owner: [EMAIL PROTECTED]
Shortcut URL to this page:
http://groups.yahoo.com/group/php-list
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/php-list/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/