Calling other javascript files from javascript

19 views
Skip to first unread message

Amien Crombie

unread,
Mar 26, 2014, 1:43:08 AM3/26/14
to css...@googlegroups.com
Hi

Being new to Javascripting I need to call a few javascripts (*.js) I have written when I run my OPI file.
Can this be done and if so, give me a small example.
I noted that CSS also uses Python so either python or java will do.

Thanks
Amien

Xihui Chen

unread,
Mar 27, 2014, 1:26:14 AM3/27/14
to css...@googlegroups.com
It doesn't support calling other javascripts file from javascript, but Jython does. BOY Examples has such an example. You can also call your own Java code: http://htmlpreview.github.io/?https://raw.github.com/ControlSystemStudio/cs-studio/master/applications/plugins/org.csstudio.opibuilder/html/script/CreateCustomScriptUtil.html

Regards,
Xihui


--
You received this message because you are subscribed to the Google Groups "CSS BOY" group.
To unsubscribe from this group and stop receiving emails from it, send an email to css-boy+u...@googlegroups.com.
To post to this group, send email to css...@googlegroups.com.
Visit this group at http://groups.google.com/group/css-boy.
For more options, visit https://groups.google.com/d/optout.

Amien Crombie

unread,
Mar 27, 2014, 1:42:07 AM3/27/14
to css...@googlegroups.com
Hi Xihui

Thanks and it works in Python.
One more question : How can one run a script at startup automatically ? Currently I use a 'button' on the form that I click to run the script.

Regards
Amien
Reply all
Reply to author
Forward
0 new messages