Crimson javascript question

rberghammer

Member
Join Date
Mar 2008
Location
Silverthorne, CO
Posts
23
This is another question for the Red Lion guys out there.

I am working on the custom website for my Data Station Plus and have a question about using javascript to get tag values from the DSP.

I have a large database and would like to display some of the tags on the custom web page, but I am trying to avoid entering every tag index manually for each web page. So I built a javascript function that can return any tag index I need when I call the function from the HTML code.

The problem is I can't figure out how to use this tag with the index value to actually get a value from the DSP. It just writes [[10]] on the web page instead of returning the value of tag 10.

So, I am wondering if it is possible to make the tag placeholder dynamic in HTML or can I only return values if I actually type [[10]].
 
The translation from [[x]] is done when the page is served, so you can't use Javascript to put it in there. There are ways of using AJAX to update things more smoothly, but I'm on the road in Malaysia right now, so I can't help too much. I'd email Dan and see what help he can provide. He'll know to talk to our French guys, who have done quite a few applications with scripting in them.
 

Similar Topics

Hey guys, hoping someone here could give me a little advice. I'm working with a CR1000-04000 in Crimson 3.1 and I was interested in adding the...
Replies
4
Views
147
Hi, I'm having an issue in crimson 3.0 when I create a programme using a case statement referencing a fault word that each bit needs to change the...
Replies
5
Views
289
How do you install update on Red Lion Crimson ver 3.1. Do I just need to run the exe file on the host server?
Replies
1
Views
127
Has anyone found a way to convert/replace/update the firmware on old Parker TS80xx series HMIs (i.e. TS8010, TS8006, etc) to accept Crimson...
Replies
0
Views
105
Has anyone setup communications with Red Lion 3.0 MODBUS to Baker Hughes Centrilift GCS VFD? Thanks
Replies
0
Views
97
Back
Top Bottom