- jpaprockiAsked on May 18, 2016 at 03:04 PM
I am embedding this into my website (using iframe currently). How can I tell when the user has pressed the submit button to capture that event?Page URL:
- JotForm SupportKevin_GAnswered on May 18, 2016 at 04:51 PM
If I can understand you correctly, you're trying to capture the even when the submit button is clicked, this seems to be possible as per this link: https://forum.jquery.com/topic/changing-elements-in-an-iframe.
I have tried to capture the click event of the submit button, but this does not seem to be possible when the page where the iFrame is loaded is not the same origin as the link in the iFrame, here is the error message I'm currently getting:
This seems to be a normal error, since it is a must that the all where the iFrame is being embedded needs to be the same as the link that loads in the iFrame, and this is due to security reasons, I found a link where this is explained as well, take a look here: http://stackoverflow.com/questions/26329519/uncaught-securityerror-failed-to-read-the-contentdocument-property-from-html