Jump to content

Remote Javascript File

Recommended Posts

I have a javascript file that is larger than 10,000 characters so it cannot be inserted into the footer of my Update Datapage. Caspio sent me info on how to place the javascript file on my server and reference it in the footer of my Datapage. It doesn't work, even on a very simple test. Any ideas why? Here's what I have...

URL of test page: http://b3.caspio.com/dp.asp?AppKey=acb7 ... e4h1d9c3f2

Field names: 'Entered' is the entry field. 'Calculated' is the output field. (the script just adds 7 to the Entered value)

In the HTML block:

In the Javascript file:

function calculate()


var entered = document.getElementById("EditRecordEntered").value;

var output = (entered+12);

document.getElementById("EditRecordCalculated").value = Math.round(output);


document.getElementById("caspioform").onsubmit= calculate();

Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...