On Wed, Apr 9, 2008 at 4:50 PM, gerhard <[EMAIL PROTECTED]> wrote:
>
>  Some notebook bugs:
>  I have had time to experiment a little:
>
>  1) Inserting a javascript with type or language specified
>   does not take effect until the user reloads the page:
>   html('<script>alert("this works")</script>')
>   works as expected,
>   html('<script language="JavaScript">alert("this does not")</
>  script>')
>   requires a reload

Yes, that isn't implemented.  We should add it.

>
>  2) the code
>
>      print """
>      <html><script>
>      document.write("<p>a paragraph</p>");
>      </script></html>
>      """
>   definitely blows up the notebook.

We should add it.

>
>  3) I am still hoping for some suggestions as to how
>   to allow a sage computation to cause a javascript function
>   to be invoked while it continues processing.
>   Any hints for me, please?
>

This is definitely not implemented.  The javascript blocks currently
only run after the computation completes.

That said, it might not be difficult to improve Sage so that it does
what you want.    To help with this I spent all weekend documenting
and cleaning up js.py (which is where all the Sage javascript is defined).
For concreteness could you describe precisely one example where
you want to call javascript from a Sage calculation?

William

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to