On Mon, Feb 27, 2012 at 1:11 AM, Matt Kelly <[email protected]> wrote:
> That makes sense. I was kind of going on this comment
>
>
> "at the moment, like gwt, pyjs always loads in a hidden iframe (for obscure
> compression reasons), so javascript vars won't see each other between pyjs
> and pure javascript."
>
> I just don't understand enough about pyjs and iframe's and such to really
> understand what's going on with why the function isn't working despite
> seemingly running successfully.
then you should install venkman and/or firebug and/or other debugging
tool, insert breakpoints and find out!
welcome to running in a developer-hostile environment called "web
browsers" which has nothing to do with pyjamas :)
it sounds to me like jsMath is trying to be too clever for its own
good. it's oversimplified things to the point where it just doesn't
work.
try looking to see if there's a function which takes in an HTML
element. you should then be able to do this:
el = getElementsByTagName("name_of_div_by_id_that_you_want_work_done_on");
jsMathProcessing(el);
l.