cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Is it Possible to use JQuery in Thingworx Services?

SOLVED
Highlighted
Level 6

Is it Possible to use JQuery in Thingworx Services?

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.

Tags (3)
1 ACCEPTED SOLUTION

Accepted Solutions

Re: Is it Possible to use JQuery in Thingworx Services?

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

5 REPLIES 5

Re: Is it Possible to use JQuery in Thingworx Services?

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

Re: Is it Possible to use JQuery in Thingworx Services?

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!

Re: Is it Possible to use JQuery in Thingworx Services?

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

Re: Is it Possible to use JQuery in Thingworx Services?

Thank you for the reply.  What do you mean, "Not necessary" ?

Re: Is it Possible to use JQuery in Thingworx Services?

Not necessary more than expression and validator widget in 99.9% of cases