This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

Custom JavaScript examples
can i access to a visulation object properties with javasciript ? 

for example  if i add a button from visulation object  , can i get/Set  Name , Grup , Touch icon , On icon , Off icon ?
Reply
You cannot change these properties from the JavaScript side. You can only access the mapped object / status group address via "object" and "status-object" data properties of each element.
Can you explain what exactly are you trying to achieve?
Reply
(26.04.2021, 09:51)admin Wrote: You cannot change these properties from the JavaScript side. You can only access the mapped object / status group address via "object" and "status-object" data properties of each element.
Can you explain what exactly are you trying to achieve?

I want add a object  in visulation and with javascript  i change this object with <Div> ,<img>  , <input>  and Css Style 
For Example 
 

  1. Add a visulation object with MainObject(2/1/100 Sensor Time )
  2. Acces it Javascipt and get GrupAdress 
  3. Delete or Hide This object 
  4. add html  input text box 
  5. if user write a value it  , its send to grup adress Directly  
Another Example
   i want a button Send a 1 byte value  (1=Comfort Mode , 4=Protection Mode )

  1. From Visulation a object with MainObject (2/3/1 MODE)
  2. Access it javascript and get grup adress
  3. if its pressed change value 1 or 4 
i want get MainObject from visulation object and use this adress directly without use any virtual object
Reply


Forum Jump: