-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello,
i try to invoke my own Javascript Methods like this:
public void onClick$GetID_Btn(Event event) { try { this.test.invoke("GetID()"); } catch (Exception e) { e.printStackTrace(); } }
But i didnt know how to import my.js file where the method GetID is defined. Should anybody tell me how to do that?
greets
You might want to take a look at Client Side Programming first.
hello Zero5, i will do this.
but i would think that it is a short answer:
within a jsp it works fine like this and i just want to do the same with a zul page. The Function GetID is in my.js:
<script type="text/javascript" src="scripts/my.js"></script> <input type="button" value="get publickey" onclick="GetID()" />
Asked: 2010-08-25 08:51:44 +0800
Seen: 233 times
Last updated: Aug 26 '10