Hmmm... Yeah there's not really a "FarCry way" for submitting form values
into an iframe for a third party, you'll just need to do some of your own
JavaScript to handle that. jQuery does have a serialize() method that you
can call on a form to get the form fields/values as an object, but it looks
like you've already got a method that will do the same thing (or better).

It's such a custom thing that you'll probably need to do this each time you
add a new form, there's no "built-in" way to do it.

cheers,
Justin



cheers,
Justin

--
Justin Carter
http://www.madfellas.com/blog
http://twitter.com/justincarter


On Fri, Sep 27, 2013 at 10:05 AM, Might Aswell <[email protected]> wrote:

> Yeah unfortunately due to the 3rd party (our marketing automation vendor)
> needing to manage cookies they require me to use an iframe.
>
> I've added the iframe's url to the form's "rule".. and just need an nice
> clean query string to stick on the end once all my farcry processing is
> done... (I planed on doing this as part of the rule's execute file)...
> another issue I had ran in to is the 3rd party is running on linux, so I
> have to preserve the case of the field names and convert spaces in the
> values to "+" vs. %20 which is why getHTTPRequestData().content worked so
> well when I was testing prior to moving the form to a farcry content type/
>
>
> On Thursday, September 26, 2013 4:51:19 PM UTC-7, Justin Carter wrote:
>
>> Does it need to be done client side?
>>
>> On the server side you could wait for the form submission, validate and
>> save the object, then use CFHTTP to send a POST to the third party with all
>> the form variables that you've already validated and saved?
>>
>> cheers,
>> Justin
>>
>>
>> On Fri, Sep 27, 2013 at 9:37 AM, Might Aswell <[email protected]> wrote:
>>
>>> Hi.
>>>
>>> I have a need to post a content object to a 3rd. party
>>>
>>> Basically I have a content type / form / rule set up to collect data via
>>> an  inquiry form. I need to post the form collected data to another URL via
>>> a hidden iframe.
>>>
>>> I have a content type MyInquiry, and rule set up (based of farFeedback)
>>> that is working nicely... data is stored in FC database, email messages get
>>> fired off to inside team and customer, and the "success message" is
>>> displayed in the container after the form is submitted.
>>>
>>> Now I need a easy "farcry way" to pass the fieldnames and submitted
>>> values safely as a query string.
>>>
>>> Outside of farcry I could use qstring = getHTTPRequestData().content on
>>> the form processing template and that worked well but as I will need to add
>>> more farcry forms and more external URLs to post to I want to do this in a
>>> more rule/webskin fashion but I am admittedly Noob...
>>>
>>> Thoughts, pointers, suggestions, code?
>>>
>>> Thanks!
>>>
>>> Chris
>>>
>>>
>>>  --
>>> You received this message cos you are subscribed to "farcry-dev" Google
>>> group.
>>> To post, email: [email protected]
>>> To unsubscribe, email: farcry-dev+...@**googlegroups.com
>>>
>>> For more options: 
>>> http://groups.google.com/**group/farcry-dev<http://groups.google.com/group/farcry-dev>
>>> ------------------------------**--
>>> Follow us on Twitter: http://twitter.com/farcry
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "farcry-dev" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to farcry-dev+...@**googlegroups.com.
>>>
>>> For more options, visit 
>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>>> .
>>>
>>
>>  --
> You received this message cos you are subscribed to "farcry-dev" Google
> group.
> To post, email: [email protected]
> To unsubscribe, email: [email protected]
> For more options: http://groups.google.com/group/farcry-dev
> --------------------------------
> Follow us on Twitter: http://twitter.com/farcry
> ---
> You received this message because you are subscribed to the Google Groups
> "farcry-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: [email protected]
To unsubscribe, email: [email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry
--- 
You received this message because you are subscribed to the Google Groups 
"farcry-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to