Page 1 of 1
Form submission and IFrames
Posted: Wed Jul 06, 2016 6:36 pm
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.
Re: Form submission and IFrames
Posted: Wed Jul 06, 2016 7:19 pm
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?
Re: Form submission and IFrames
Posted: Wed Jul 13, 2016 2:50 pm
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?
Re: Form submission and IFrames
Posted: Wed Jul 13, 2016 3:10 pm
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?