Hello,
We are using JScript in some portions of our XUI code per Tung's suggestion
to keep defined variables out of "global" context.
"If your application only runs on Windows, it is better to use jscript,
because for jscript, each embedded dialog has its own script context. If
you use javascript, you need to be more careful, because global variables
are shared by all embedded dialogs."
That said, we routinely access some of our Java classes from JavaScript by
using commands such as:
var listener = Packages.org.w3c.dom.events.EventListener(o);
However, when I attempt to do the same in JScript, I get an error saying
that "Packages" is undefined.
Is there any way to access Java classes from JScript? Application and ACL
seem to work fine, so perhaps I'm missing something.
Ultimately, we're trying to discover if the file that we are setting dialogs
on is readonly or not. We have a "briefcase" file manager that I can query
to find out if it is a document that we are managing as a readonly export,
but if there is a simpler way to get this information from the AOM or an ACL
call, I'm all ears.
Thanks in advance for any suggestions,
keith