Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

  • How to convert dom element to isc object?

    For example I have a ISC label with class 'echart_box' .
    Ican get this element by var el = document.querySelector('.echart_box');
    How to convert it to isc object so that I can call the drawing functions as I want.

  • #2
    Hi,
    You can use this technique:
    var el = eval(document.querySelector(".echart_box").getAttribute("eventProxy"));

    This way you will have isc object. BTW, it doesn't seem like a good practice to select an element by its class. You should consider a more distinctive way to do that (by id\name).

    Comment

    Working...
    X