Skip to main content
1-Visitor
July 12, 2018
Solved

Is it Possible to use JQuery in Thingworx Services?

  • July 12, 2018
  • 5 replies
  • 3194 views

In my services, if I try to do:

 

Assumption for this post:

#id is valid.

 

$("#id").show(); <-- I get the error ReferenceError:  "$" is not defined.

 

Alternatively, if I do:

 

document.getElementById("id").style.display = "block"; <-- I get the error ReferenceError:  "document" is not defined.

Best answer by CarlesColl

No way to run code on Browser side rather than Expression and Validators, but it's not necessary dot.

5 replies

1-Visitor
July 13, 2018

Thingworx Services run on Server Side not on Browser Runtime...

Braden1-VisitorAuthor
1-Visitor
July 13, 2018

Then how do I identify an on-screen element since there is no way (that I am aware of) to run code through the mashup?  It would be disappointing to have to use validator widgets since it would be very simple to do programatically.

 

Thank you!

1-Visitor
July 13, 2018

No way to run code on Browser side rather than Expression and Validators, but it's not necessary dot.