Crimson javascript question

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

Hi I'm new to HMS/RedLion Crimson Function Blocks programming. Does anyone knows whether this straton engine includes the native straton Binding...
1
Replies
128
Views
I have a Crimson 3.2 project running on a CR1000. All tags from my PLC seem to be working properly, except any string tags seem to be truncated at...
0
Replies
247
Views
Hello, i am currently communicating between a G12 Redlion display and a Altronic DE4000 annunciator over Modbus TCP. When I right to a setpoint in...
1
Replies
228
Views
I am trying to connect and then upload the program for a Redlion CR1000100000210. Once I go to Link, Find Device, it never shows the device. I can...
1
Replies
750
Views
Hi, Is it possible to draw a table like a spreadsheet on a page in Crimson3.2? I like to represent data in a table format.
2
Replies
371
Views
Top