hackbac Posted February 11, 2010 Report Share Posted February 11, 2010 Is it possible to store a JavaScript within Caspio in order to reference the same script in multiple DataPages? Quote Link to comment Share on other sites More sharing options...
sbelini Posted February 11, 2010 Report Share Posted February 11, 2010 Hi, You will need to have the script in each DataPage. A simple copy and paste can resolve this (assuming all references in the script are valid for every DataPage) Regards. Quote Link to comment Share on other sites More sharing options...
hackbac Posted February 14, 2010 Author Report Share Posted February 14, 2010 Thanks. That's what I thought, but it's still a little disappointing. Since files can be uploaded into the Caspio system, there should be URLs available. It would be easiest to implement scripts with an external reference like.. <SCRIPT TYPE="text/javascript" SRC="foo.js" /> And, if changes needed to be made to the code later, it would have to be modified in every single DataPage. Quote Link to comment Share on other sites More sharing options...
londoncity Posted August 10, 2011 Report Share Posted August 10, 2011 If you need to have an external JaveSceipt code and then reference to it from your DataPages and are using the “Embedded Deploy†method please follow the below steps: 1- Save the JS file say “webentry.js†into your server so there will be a reference to it like this: http://www.yoursite.com/ webentry.js . 2- In your Web pages place below reference, “above†your Caspio DataPage deploy code: Caspio Deploy Code ..... That's it :mrgreen: 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.