Harpreet Posted July 2 Report Share Posted July 2 I have two iframes in html, one is submission page and other is report page- When I submit in the first page, I want to automatically refresh my second page. Is it possible to do this? Quote Link to comment Share on other sites More sharing options...
Barry Posted July 3 Report Share Posted July 3 Hello Harpreet, Yes, you can give the iframe an ID, then you can update the "src" attribute inside the "BeforeFormSubmit" event. So, if I have the following iframe on the same page as the submission form: <iframe id="IframeID" name="Details" title="Details" src="https://12345.caspio.com/dp/2f3f32f2f23f32f32">Sorry, but your browser does not support frames.</iframe> I can add an HTML block/Header/Footer with the following code to my submission form. <script> document.addEventListener('BeforeFormSubmit', function(event) { document.getElementById('IframeID').src='https://12345.caspio.com/dp/2f3f32f2f23f32f32?id=2' }); </script> And that will update the iframe, and you can also add parameters to it, as I did, by passing the "id=2". Quote Link to comment Share on other sites More sharing options...
Volomeister Posted July 3 Report Share Posted July 3 Instead of embedding 2 iframes in HTML DataPage, you can embed a report iframe in the footer of the submission form DataPage. This way, the iframe will be refreshed automatically after the submission Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.