Jump to content


Entity link doesn't work with JavaScript and object


  • Please log in to reply
No replies to this topic

#1 dbladwin

dbladwin

    Forum Newbie

  • Members
  • 1 posts

Posted 21 July 2009 - 06:15 PM

The JavaScript in this entity works:

<entity id='LA' value='95' link="j-alert('hello Louisiana.')" />



The JavaScript in this entity doesn't work:

<entity id='ID' value='68' link="j-dashboard.sayHello('Idaho.')"/>



I have created an object 'dashboard' which handles the creation and manipulation of some fusion charts and maps. It is important that the functions remain in the object.



if I were to change the link to "JavaScript:dashboard.sayHello('Idaho')" it doesn't make a difference (This is depreciated, anyway), and "j-dashboard.sayHello-Idaho" doesn't work either.



I'm not sure what else to try. Is there something I'm missing?
--

db