Hi all,
glad to join your group.
now i have a question here:
in html: ... <script src='/script/my.js'></script> <a onClick="javascript:doX('p')" href="whatever">sth</a> ...
(this doX is defined in the my.js)
in java code: ... link = resp.getLinkWith("sth"); link.click(); ...
an exception occured: Event 'javascript:doX('p')' failed: TypeError: undefined is not a function.
how can i resolve it? i don't want to move the function out of my.js, then how? thanks!
Log in to post a comment.
Hi all,
glad to join your group.
now i have a question here:
in html:
...
<script src='/script/my.js'></script>
<a onClick="javascript:doX('p')" href="whatever">sth</a>
...
(this doX is defined in the my.js)
in java code:
...
link = resp.getLinkWith("sth");
link.click();
...
an exception occured: Event 'javascript:doX('p')' failed: TypeError: undefined is not a function.
how can i resolve it? i don't want to move the function out of my.js, then how? thanks!