anibaldps Posted July 3, 2012 Report Share Posted July 3, 2012 Hi. I want to create a Custom HTML page to write javascript in it, and then use a Submission form. Within the submission form i would like to "call" the javascript when the form loads. How can i accomplish this? Anibal Quote Link to comment Share on other sites More sharing options...
HongTaiLang Posted July 3, 2012 Report Share Posted July 3, 2012 Try onload Event: window.onload = function name; Quote Link to comment Share on other sites More sharing options...
anibaldps Posted July 5, 2012 Author Report Share Posted July 5, 2012 Thank you Joevega. I still have doubt about where to write that inside caspio datapage. Does that go in the header section? Where does the URL of the javascript go? Im using the submission form from caspio datapage, which means that the " Please help! Anibal Quote Link to comment Share on other sites More sharing options...
ShWolf Posted July 9, 2012 Report Share Posted July 9, 2012 Hi Anibal, Insert following code into the Footer of the DataPage <script type="text/javascript"> window.onload=function() { CALL YOUR FUNCTION HERE }; </script> Let me know if this helps. 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.