You could make this MUCH easier on yourself and just do a form POST into the
iframe. Hekc, you could even use GET if you wanted to. Regardless, just
target the iframe using JS then set hidden form fields to get passed in to.


andy 

-----Original Message-----
From: Andrew Scott [mailto:andr...@andyscott.id.au] 
Sent: Saturday, February 20, 2010 10:17 PM
To: cf-talk
Subject: RE: iframe cfscript getting parent form field values


No, if you are doing what I think you are trying to do then your best bet is
Ajax.

Once the server has processed the request, the client (browser) has control
of the final request. If you are looking at populating things before the
client receives it then you could do something like this

<cfoutput>

        <input value="#form.someValue#" />

</cfoutput>

However if you are looking at trying to do this once the user is doing
something in the form then no, you need to think about ajax and/or process
the form by sending it back to the server to process and return the entire
page again.

You have to remember that server and client can only talk in a certain
manner, and if I am hearing you right you are needing to understand that
before continuing with your development.




-----Original Message-----
From: Dan Blickensderfer [mailto:d...@blickensderfer.com]
Sent: Sunday, 21 February 2010 2:04 PM
To: cf-talk
Subject: Re: iframe cfscript getting parent form field values


Can I set the form value to a cfset variable?

----- Original Message ----- 
From: "Andrew Scott" <andr...@andyscott.id.au>
To: "cf-talk" <cf-talk@houseoffusion.com>
Sent: Saturday, February 20, 2010 10:01 PM
Subject: RE: iframe cfscript getting parent form field values


>
> No,
>
> Cfscript is server side scripting. You need to write javascript to do this
> using document.all.form[0]
>
>
>
> -----Original Message-----
> From: Dan Blickensderfer [mailto:d...@blickensderfer.com]
> Sent: Sunday, 21 February 2010 1:40 PM
> To: cf-talk
> Subject: iframe cfscript getting parent form field values
>
>
> Hi everyone,
>
> I've ran into a problem and do not know if cfscript will allow this.
>
> I have a page that has an iframe and a form named eform with a half of 
> dozen
>
> fields.  I have a javascript function onblur on the last field to call
> another cf page (page2) through the iframe.  I'm trying to get cfscript on
> the page2 to get the values of the eform of the parent page and set them 
> to
> cf variables to query data and other logic.
>
> Will cfscript allow this and what would the proper syntax be?
>
> Thanks,
> Dan
>
>
>
>
>
>
> 





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330991
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to