send data to IFrame URL via POST method - need help

467 views
Skip to first unread message

jrehan

unread,
Aug 15, 2011, 6:39:03 AM8/15/11
to Flex-IFrame
Hi,

Can anyone explain to me how can i pass data to iframe URL means i
want to send data to IFrame URL via POST method and when the form is
submitted, the server response should appear in the iframe.


Thanks

Brian J. Ackermann

unread,
Aug 16, 2011, 9:12:03 AM8/16/11
to flex-...@googlegroups.com
Unless I'm missing something key, you'll HAVE to send your data over via GET, at first...

Here's what I did to get around this.

* have a landing page, that expects not variables (or maybe just a few, depending on- what you're trying to accomplish)
* on that page, which will basically be just a form, use something like FABridge to have flex push the content of your POST variables into the form.
* then, using same method, call the forms submit() function

Voila!


Brian J. Ackermann
brian.a...@gmail.com
952.373.1626





jrehan

unread,
Aug 16, 2011, 10:18:12 AM8/16/11
to Flex-IFrame
Brian Thanks for your reply.

Actually i'm trying to achieve following html form behavior in Flex

<form action="someurl.jsp" method="post" target="my_iframe">
<input type="submit" value="Submit">
</form>
-- the target attribute in above html form tag helps to load server
provided html page/response in iframe
-- when the form is submitted, the server response will appear in this
iframe --
<iframe name="my_iframe">
</iframe>

Regards,
Rehan


On Aug 16, 5:12 pm, "Brian J. Ackermann" <brian.ackerm...@gmail.com>
wrote:
> Unless I'm missing something key, you'll HAVE to send your data over via
> GET, at first...
>
> Here's what I did to get around this.
>
> * have a landing page, that expects not variables (or maybe just a few,
> depending on- what you're trying to accomplish)
> * on that page, which will basically be just a form, use something like
> FABridge to have flex push the content of your POST variables into the form.
> * then, using same method, call the forms submit() function
>
> Voila!
>
> ------------------------------
> Brian J. Ackermann
> brian.ackerm...@gmail.com
> 952.373.1626
> ------------------------------
Reply all
Reply to author
Forward
0 new messages