User a92fed3a15
02-03-2009 18:19:55
Hi
I would like to call a javascript defined in global section on its html with molLoaderFinishedEvent as follows.
I tried calling 1) js:my_function(), 2) js:parent.my_function(), but it does not work.
could you advise me how to call a javascript defined outside its local scope.
Thanks,
function my_function() {
}
<span style="background: #ffffff none repeat scroll 0% 0%; color: #000000;"><script type="text/javascript" language="javascript1.2">
<span style="background: #c0c0c0 none repeat scroll 0% 0%; color: #000000;">msketch_param("extrabonds", "arom,any,1or2,wedge,either,ctu");
msketch_param("molLoaderFinishedEvent","js:parent.my_function()");
I would like to call a javascript defined in global section on its html with molLoaderFinishedEvent as follows.
I tried calling 1) js:my_function(), 2) js:parent.my_function(), but it does not work.
could you advise me how to call a javascript defined outside its local scope.
Thanks,
function my_function() {
}
<span style="background: #ffffff none repeat scroll 0% 0%; color: #000000;"><script type="text/javascript" language="javascript1.2">
<span style="background: #c0c0c0 none repeat scroll 0% 0%; color: #000000;">msketch_param("extrabonds", "arom,any,1or2,wedge,either,ctu");
msketch_param("molLoaderFinishedEvent","js:parent.my_function()");