> Not 100% clear what you need.
An HTML generated by .jhp page, which
references a .js file?
Or you need to generate the JavaScript using J?
Which is referenced from HTML like
<script src="jscript.jhp?param=value"></script>
Please provide detailed example with code and comments.
I'll try to clarify.
I developped a j script and I wanted to use some verbs
in a jhp file. I thought it would be possible to access directly
the j script and its verbs from a javascript function inside that jhp file.
the test.jhp file looks like :
------------------------------------------
<% ContentType'text/html' %>
<html><head>
blabla
</head><body>
blabla
<% load 'myj.ijs' %>
blabla
xx=something()
blabla
yy=something()
<script>
function something() {---}
function f() { // following a mouse event
---
toto=<%= xx jverb yy %>
---
}
blabla
</script>
</body></html>
------------------------------------------
and the jverb is defined in myj.ijs
Do I need to use <script src="jscript.jhp?param=value"></script> in
my test.jhp and param=value to access the ijs file and its verbs ?
What is the best way to do that ?
I am a little bit confused as you can see...
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm