You are not logged in.
Is it possible to call javascript functions defined in a js file from <area>, <movie>, etc ? If so, how do I do this ?
Offline
yes, you can do this. add js function to url attribute:
<area url="javascript:alert('something')" .....>
this will work only on a web server.
Offline
this works fine for me, but i'm trying to get something like <area url= "javascript:function smth{ //code here };" > to work.
Would something like this be possible ?
Would I be able to call user-defined function defined in another js file ?
Would I be able to use ajax in the javascript code here ?
Offline
I am afraid this will not work. You should do the following:
<area url= "javascript:someFunction();" >
and then add this function in your html.
Offline
Are you running the page with a map locally? (file:///) Due to Flash security restrictions links (and JavaScript integration) does not work for locally maps. You need to load it through web server.
Offline
© amMap & amCharts | Forum engine: PunBB