-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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...
;)
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
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...
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?
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"/>
Asked: 2006-04-24 09:54:46 +0800
Seen: 290 times
Last updated: Feb 01 '19