0

howto call functions in zscript from java?

asked 2006-04-24 09:54:46 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3700287

By: oberinspector

is it possible to call a function defined in zscript in a zul file? ...e.g.
from the enclosing own window class by providing a dummy function, which is overwritten by the zscript funktion...

the enclosing window (with own implementation class) could be seen as an interface and the zscript is expected to implement this interface...

i think it's not possible, but probably you have some more miracles for me...
;)



delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2006-04-24 16:44:55 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3700946

By: tomyeh

Is it Request 1467524? Doable but priority is low, unless...:)

http://sourceforge.net/tracker/?group_id=152762&atid=785194&func=detail&aid=1467
524


link publish delete flag offensive edit

answered 2006-04-24 20:07:08 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3701247

By: oberinspector

i was also thinking of some kind of callback... in c one can deal with function pointers... with somethink like that a zscript function can call the parent window java class and transfer the function pointers... probably not possible in java/bsh...





link publish delete flag offensive edit

answered 2006-04-28 07:39:14 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3705275

By: nobody

Hi,

I would create a page zul with only the Zscript. How can I do for call the Zscript from an other page?

link publish delete flag offensive edit

answered 2006-04-28 14:17:40 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3705809

By: tomyeh

Put all your zscript codes in a separate file (don't enclosing with zscript).
You could name it with .bs or .java extension (as long as you like it). For example, you create a file called hello.bs and its content is as follows:
void sayHello() {
alert("Hi");
}

Looks like Java, isn't it? Then, in a zul page, use
<zscript src="/my/hello.bs"/>

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: 2006-04-24 09:54:46 +0800

Seen: 281 times

Last updated: Feb 01

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