0

Call own JavaScript functions from own Applet

asked 2010-07-21 07:35:46 +0800

moloch gravatar image moloch
606 1 13

Hello,
i am trying to give a zul button a function which is defined in my own javascript file.
till now i just get the message "method not found"

i tried directly in the zul:

	<button label="click"
		id="GetSomething_Button"
		onClick="GetSomething()">
								
	</button>

and i tried some code in the composer of the zul page:


	public void onClick$GetSomething_Button(Event event)  {
		
		try {
			this.appletID.invoke("GetSomething()", "");
		} catch (Exception e) {
			e.printStackTrace();
		}
		
	}

has anyone an idea what is wrong to my code?
best greets

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2010-08-25 07:21:14 +0800

moloch gravatar image moloch
606 1 13

has nobody an idea?

link publish delete flag offensive edit

answered 2010-09-03 01:05:46 +0800

SimonPai gravatar image SimonPai
1696 1

Hi moloch,

You can refer to Client Side Programming.

Regards,
Simon

link publish delete flag offensive edit

answered 2010-09-04 02:08:51 +0800

moloch gravatar image moloch
606 1 13

yes, ok.
thanks

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2010-07-21 07:35:46 +0800

Seen: 412 times

Last updated: Sep 04 '10

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More