Re: reading parent form variables

2006-05-22 Thread daniel kessler
Once you have submitted to the parent page, you could then call the
iframe using URL parameters that match your form fields...

you submit form fields x and y to the parent page.  The parent page
then calls the iframe with something like:

iframe src=responseframe.cfm?x=#x#y=#y#/iframe

I implemented the url variable variety.  

Thanks everyone for your help!

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:241115
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: reading parent form variables

2006-05-19 Thread Dave Watts
 I have a page with an iframe.  That iframe has a form.  The 
 action/target on the form replaces the _parent when it 
 submits and goes to a feedback page:
 http://hhp.umd.edu/events/systems_thinking/q_a_test.cfm
 
 On the feedback page there is an iframe.  The parent 
 variables can be seen by CF using form.q_1, but I don't see a 
 way to reference them from the CF in that iframe.  
 Current it complains that it doesn't see the variables, but 
 that's cause they're in the parent.  How do I reference them?

CF will not be able to do this. You can read values from one frame/window
into another using JavaScript, but CF can only see the form data that has
been posted to it. So, if you want to have those values read, use JavaScript
to fetch them from the other frame into your frame directly before you post.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:241016
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: reading parent form variables

2006-05-19 Thread Ian Skinner
How do I reference them?


   daniel
- webtool -

Very carefully? 

Sorry, the only two methods I would see is to either place the form values into 
an cross request scope such as session, application, server, client or cookie.  
Or to translate the form variables into JavaScript values that could be read 
client side.

Remember that an iframe, as all frames, is a completely different request, 
processed separately by ColdFusion.  You will need to treat data handling in 
the same manner as anywhere else you want to pass data from one page request to 
another.

--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

-
| 1 |   |
-  Binary Soduko
|   |   |
-
 
C code. C code run. Run code run. Please!
- Cynthia Dunning

Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message. 




~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:241017
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: reading parent form variables

2006-05-19 Thread Jim Wright
Once you have submitted to the parent page, you could then call the
iframe using URL parameters that match your form fields...

you submit form fields x and y to the parent page.  The parent page
then calls the iframe with something like:

iframe src=responseframe.cfm?x=#x#y=#y#/iframe


-- 
Jim Wright
Wright Business Solutions
[EMAIL PROTECTED]
919-417-2257

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:241019
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: reading parent form variables

2006-05-19 Thread Charlie Hanlon
This is how I have learned to it.  In this case, my iframe is going to set a 
value for a form field on the parent window.

parent.myForm.myFormField.value='foo';

hth

Charles Hanlon
Senior Web Applications Developer
Food Service Enablers, Inc.
www.fsenablers.com

The People. The Platform. The Products.
Make the Difference


- Original Message - 
From: [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Sent: Friday, May 19, 2006 3:21 PM
Subject: reading parent form variables


I have a page with an iframe.  That iframe has a form.  The action/target 
on the
 form replaces the _parent when it submits and goes to a feedback page:
 http://hhp.umd.edu/events/systems_thinking/q_a_test.cfm

 On the feedback page there is an iframe.  The parent variables can be seen 
 by CF
 using form.q_1, but I don't see a way to reference them from the CF in 
 that iframe.
 Current it complains that it doesn't see the variables, but that's cause 
 they're in the
 parent.  How do I reference them?


   daniel
 - webtool -

 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:241027
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54