I have this:
HTML
This is a button which opens the href in a modal window:
<a class="iframe button pink" href="http://www.test.php" > Pay Now <link rel="stylesheet" href="http://www.fethr.com/clients/res/buttonmodal.css">
The form:
<form method="post" />
<input type="text" name="xx" />
<input type="text" name="yy" />
<a class="iframe button pink" href="http://www.test.php" > Pay Now <link rel="stylesheet" href="http://www.fethr.com/clients/res/buttonmodal.css">
<script src="http://www.fethr.com/clients/res/buttonmodal.js"></script></a>
</form>
This anchor button. If I click on it, it opens the href in a modal window. I'm trying to use this as the submit button and post the values to the href as well as open it in the modal window. Is this possible?
Here is a simple example on how I would achieve this:
HTML
Javascript
So inside the iframe's source file, you would just need to grab the URL parameters and calculate them.
This is a simple example, no where near as involved as the example link you provided (they are using Ajax calls to achieve this), but this should get you started.