ok there's another way. in the "loader" page (the static HTML) you
put a script tag referring to the math.js file.
then, try this:
JS("... whatever function does the job")
the alternative method which will work in pyjd as well is to look at
the picasaweb example, Photos.py, and to *inject* a script node (!)
into the page (see doRESTQuery).
but obviously, you will not be doing a script element with a url, you
will be doing a script element with innerText = "<!--
whatever_function_does_the_job() -->"
and when it's appended to the doc().body it should result in that
function being executed.
he said.
:)
l.