agoh

How to disable a hover mouse or information box function with Onclick

Discussion created by agoh on Feb 27, 2011
Latest reply on Feb 28, 2011 by danyim
Hi there,

I was wondering what syntax to use for an onclick button event to disable a hover mouse information tool?

I tried this without any effect:

<div dojoType="dijit.form.Button" id="deactivate" iconClass="deactivateIcon" onClick="queryTask. deactivate(esri.tasks.QueryTask());">Deactivate Mouse Hover</div>

The rest of the code is taken from the hover mouse sample posted on the ESRI samples page.
I have no problem creating onclick buttons to deactivate / disable navigation and draw tools, its the other functions, is '.deactivate' not correct for esri.tasks.QueryTask??

Outcomes