[thelist] Sending Var From Popup To Parent

Peter Brunone (EasyListBox.com) peter at easylistbox.com
Thu Feb 3 20:56:08 CST 2005


	Okay, I'll see what I can do.  First of all, this parameter will
be coming back in the child (popup) window, so that's where you run this
script.  You'll need to write out the value into a js variable, like
this:

<script language="javascript">

var myFileName = "##WhateverYourColdFusionSyntaxIs##";


	Then you need to decide what form field you're planning to use
in the parent (opener) window.  I may have misspoken about the syntax;
you'll probably need "opener" rather than "parent":


window.opener.document.form.textFieldName.value = myFileName;

</script>

	I'm not sure how else to explain it, so if you have specific
questions/difficulties, let me know and we can work specifically with
those.

Cheers,

Peter

-----Original Message-----
From: thelist-bounces at lists.evolt.org
[mailto:thelist-bounces at lists.evolt.org] On Behalf Of Russ

Thanks, Peter...

Can you give me a little more information?  I'm afraid that javascript
just isn't my forte...

>    Pop that filename into a javascript variable, and then say
> something like this:
> 
> window.parent.document.form.textBoxName.value = myFileName;

Or even a location with a tutorial that I could walk through?

Thanks,

Russ





More information about the thelist mailing list