RE: -OT- Passing Javascript variables

2003-02-18 Thread Thane Sherrington
At 04:40 PM 2/17/03 -0500, Ben Doom wrote:
It depends on what you mean by 'pass this variable back.'

If you just want to stick it in, for example, a hidden form field you could
do

opener.document.myform.myfield.value = document.popupform.popupfield.value;
window.close();

Thanks.  That solved it for me.

T 

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




-OT- Passing Javascript variables

2003-02-17 Thread Thane Sherrington
I have a Javascript script that opens a new window and prompts for input 
and then closes.  Is there a way to pass this variable back to the parent 
window without refreshing it?

T

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




RE: -OT- Passing Javascript variables

2003-02-17 Thread Ben Doom
It depends on what you mean by 'pass this variable back.'

If you just want to stick it in, for example, a hidden form field you could
do

opener.document.myform.myfield.value = document.popupform.popupfield.value;
window.close();

Or something similar.


--  Ben Doom
Programmer  General Lackey
Moonbow Software, Inc

: -Original Message-
: From: Thane Sherrington [mailto:[EMAIL PROTECTED]]
: Sent: Monday, February 17, 2003 4:00 PM
: To: CF-Talk
: Subject: -OT- Passing Javascript variables
:
:
: I have a Javascript script that opens a new window and prompts for input
: and then closes.  Is there a way to pass this variable back to the parent
: window without refreshing it?
:
: T
:
: 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




Semi OT: Passing JavaScript variables to other CF/JS templates

2000-04-07 Thread Gary McNeel, Jr.

I am trying to find a way to pass a JavaScript variable into a that would
use it in another JavaScript code.

I am using a JavaScript/CF page that, when the user clicks a button, a
JavaScript popup window appears that has a CF calendar in it (thanks to
Selena). Users then click on a date and that is pushed back into the main
page, populating the date field.

I have several fields on the page that use dates and I want this to work for
the users. The tag Selena wrote is hard coded for a particular field. I want
to pass the field name of the date field the user is currently selecting
INTO the CF popup calendar template. That way, when the User clicks on a
date, the code passes it back into the right date field. This would keep me
from 10 different hard coded calendars templates.

Any ideas or even good resources that might do this. Thanks.

PS - Anyone interested in the code please contact me off list.

Gary McNeel, Jr.
Project Manager - DAC-Net, Research  Graduate Studies
Rice University - Houston
[Lovett Hall] 713-348-6266 (Primary)
[DAC] 713-348-5184
[M] 713-962-0885
[H] 713-723-9240

"Great spirits have always encountered violent opposition from mediocre
minds."
   -Albert Einstein

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: Semi OT: Passing JavaScript variables to other CF/JS templates

2000-04-07 Thread Greg

Selene Bainum has a nifty popup calendar at:
http://www.webtricks.com/SourceCode/

-Original Message-
From: Gary McNeel, Jr. [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 07, 2000 5:45 PM
To: Cf-Talk
Subject: Semi OT: Passing JavaScript variables to other CF/JS templates


I am trying to find a way to pass a JavaScript variable into a that would
use it in another JavaScript code.

I am using a JavaScript/CF page that, when the user clicks a button, a
JavaScript popup window appears that has a CF calendar in it (thanks to
Selena). Users then click on a date and that is pushed back into the main
page, populating the date field.

I have several fields on the page that use dates and I want this to work for
the users. The tag Selena wrote is hard coded for a particular field. I want
to pass the field name of the date field the user is currently selecting
INTO the CF popup calendar template. That way, when the User clicks on a
date, the code passes it back into the right date field. This would keep me
from 10 different hard coded calendars templates.

Any ideas or even good resources that might do this. Thanks.

PS - Anyone interested in the code please contact me off list.

Gary McNeel, Jr.
Project Manager - DAC-Net, Research  Graduate Studies
Rice University - Houston
[Lovett Hall] 713-348-6266 (Primary)
[DAC] 713-348-5184
[M] 713-962-0885
[H] 713-723-9240

"Great spirits have always encountered violent opposition from mediocre
minds."
   -Albert Einstein


--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: Semi OT: Passing JavaScript variables to other CF/JS templates

2000-04-07 Thread Gary McNeel, Jr.

Oops. I finally figured it out. Sorry for the bother folks. -Gary

 -Original Message-
 From: Gary McNeel, Jr. [mailto:[EMAIL PROTECTED]]
 Sent: Friday, April 07, 2000 4:45 PM
 To: Cf-Talk
 Subject: Semi OT: Passing JavaScript variables to other CF/JS templates


 I am trying to find a way to pass a JavaScript variable into a that would
 use it in another JavaScript code.

 I am using a JavaScript/CF page that, when the user clicks a button, a
 JavaScript popup window appears that has a CF calendar in it (thanks to
 Selena). Users then click on a date and that is pushed back into the main
 page, populating the date field.

 I have several fields on the page that use dates and I want this
 to work for
 the users. The tag Selena wrote is hard coded for a particular
 field. I want
 to pass the field name of the date field the user is currently selecting
 INTO the CF popup calendar template. That way, when the User clicks on a
 date, the code passes it back into the right date field. This
 would keep me
 from 10 different hard coded calendars templates.

 Any ideas or even good resources that might do this. Thanks.

 PS - Anyone interested in the code please contact me off list.

 Gary McNeel, Jr.
 Project Manager - DAC-Net, Research  Graduate Studies
 Rice University - Houston
 [Lovett Hall] 713-348-6266 (Primary)
 [DAC] 713-348-5184
 [M] 713-962-0885
 [H] 713-723-9240

 "Great spirits have always encountered violent opposition from mediocre
 minds."
-Albert Einstein

 --
 
 Archives: http://www.eGroups.com/list/cf-talk
 To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.