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.
Form submission and IFrames
-
- New User
- Posts: 11
- Joined: Wed Sep 03, 2014 4:20 pm
- First Name: Aj
- Last Name: Flint
- Company Name: Advanced Data Systems
- Contact:
-
- 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
We're not familiar with how your application works. What do you mean by "final destination" and how does it get opened/launched?
-
- 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
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?
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?
-
- 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
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?
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?
Who is online
Users browsing this forum: No registered users and 0 guests