geoffdude Posted March 23, 2018 Report Share Posted March 23, 2018 Hello for the CASPIO "Signs of Spring" photo app there's embedded JS that's not updated for the new window.onload requirement. Can new code be provided please? Here's what is currently there: <script> window.onload = function() { window.open('[@cbBridgeServer]/dp.asp?AppKey=[@app:Public_Gallery_DP_AppKey]&category=[@category]&author=[@author]','_parent'); } </script> <!-- THIS IS WHAT I UPDATED IT TO, BUT STILL ERRORS OUT --> <!-- I assume the window.open call is the problem?? --> <script type="text/javascript"> document.addEventListener('DataPageReady', function (event) { window.open('[@cbBridgeServer]/dp.asp?AppKey=[@app:Public_Gallery_DP_AppKey]&category=[@category]&author=[@author]','_parent'); }); </script> Thanks, Geoff Quote Link to comment Share on other sites More sharing options...
Vitalikssssss Posted March 27, 2018 Report Share Posted March 27, 2018 Hi @geoffdude, I believe that you have an issue with Javascript since Datapage URL link has changed after 10.0 Caspio Release. You can try to use the following script: <script type="text/javascript"> document.addEventListener('DataPageReady', function (event) { window.open('[@cbBridgeServer]/dp/[@app:Public_Gallery_DP_AppKey]?category=[@category]&author=[@author]','_parent'); }); </script> Hope this helps. Regards, @Vitalikssssss Quote Link to comment Share on other sites More sharing options...
geoffdude Posted March 27, 2018 Author Report Share Posted March 27, 2018 Thx - I'll try it. 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.