ben0408
Contributor
Contributor

how to stop an html plugin application in vmware using javascript

i have created a vmware plugin using angular JS. i have three tabs like Monitor, Performance and Related Object.

In Monitor and Performance i have HTML5 application, create like this

<componentClass className="com.vmware.vsphere.client.htmlbridge.HtmlView">

               <object>

                    <root>

                            <url>/vsphere-client/resources/performance.html</url>

                    </root>

                 </object>

          </componentClass>

Here i have a real time graph. It is listening an API call using web-socket. This listening is happening even if we navigate to "Related Object" tab, which make the application very slow.

How can i stop the function execution related to performance when we are active on a different tab.

0 Kudos
0 Replies