Jump to content

using fields in Javascript


Recommended Posts

Hi,

This JavaScript is on which page. If it is on the details page, then you need to change the line

var s2=document.getElementById("InsertRecordUtstyr")

to

var s2=document.getElementById("EditRecordUtstyr")

If this JavaScript is in the HTML DataPage, that you open after the Search and Report DataPage then you do not need to use getElementById. You can replace this line

var s2=document.getElementById("InsertRecordUtstyr")

by

var s2=[@Utstyr];

Hope this helps.

Megha

Link to comment
Share on other sites

Hi,

1. You donot need to have and

tags in the HTML block.

2. A few errors in JavaScript

See the corrected one here:

var s1="<!--https://b3.caspio.com/dpImages.asp?appk ... 9b8&file=";

var s2=document.getElementById("EditRecordUtstyr").value;

var s3="'/>";

var s4= s1.concat(s2,s3);

document.write(s4);

3. If you have an image stored within Caspio then there is no URL for the image and you cannot access it through a URL. Its better if you store Images on your own server and then access them via absolute URL.

So the variable s1 has the absolute URL to the image stored on your server.

Hope this helps,

Megha

Link to comment
Share on other sites

  • 1 month later...
  • 14 years later...

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.

Guest
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.

Loading...
×
×
  • Create New...