Form submission and IFrames

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
AjFromADS
New User
Posts: 11
Joined: Wed Sep 03, 2014 4:20 pm
First Name: Aj
Last Name: Flint
Company Name: Advanced Data Systems
Contact:

Form submission and IFrames

Post by AjFromADS »

Hello All!

I'm trying to set up a button that takes us to a third party payment system by form submission. Everything works great, but I was wondering if there's a way to have the final destination be displayed in an IFrame instead of instead of the same/another tab.
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Form submission and IFrames

Post by Scott Klement »

We're not familiar with how your application works. What do you mean by "final destination" and how does it get opened/launched?
AjFromADS
New User
Posts: 11
Joined: Wed Sep 03, 2014 4:20 pm
First Name: Aj
Last Name: Flint
Company Name: Advanced Data Systems
Contact:

Re: Form submission and IFrames

Post by AjFromADS »

I'm sorry for being unclear.

I have an IFrame that I'm trying to load another webpage into, but we need to submit a form to the other site containing certain parameters. Is there any way to accomplish this?
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Form submission and IFrames

Post by Scott Klement »

An iframe is launched with a URL. URLs can contain lots of parameters if you want. Will that work with your particular application?

The other alternative is JavaScript. It's possible for JavaScript in a parent iframe/page to interact with elements in the child iframe. But, there may be cross-domain restrictions if the frames are coming from different servers. When those restrictions are not in place, however, it is possible for JavaScript code to, for example, fill in values in forms, change DOM parameters, etc... essentially control the entire iframe. Would that be a better fit in your case?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests