On Fri, Apr 4, 2008 at 8:32 AM, gerhard <[EMAIL PROTECTED]> wrote:
>
>  I am trying to use google maps with overlays from sage.

Can you post a screen shot of what you envision this maybe looking
like or doing?  I'm very intrigued!

>
>  * Is there a way to insert scripts in the notebook header?
>   For now, I edited sage source to insert an additional file
>   that I added to the javascript directory, but there is likely to
>   be a cleaner way

That may actually be the standard way right now.
You could *maybe* use edit mode and just
stick the html to include the script near the top
of that file (at least play around with that).


>
>  * executing an html(txt) command in a cell, where txt contains
>   a script, places the script in the html page, but to have it invoked
>   requires me to manually reload the page. Is there a way to force
>   script execution without additional intevention?

Yes, there is.  Put any code you want to be run in <script> </script>
in the output of html.   Try this in the notebook and you'll get the idea:
     print '<html><script>alert("hi there")</script></html>'

No refresh is needed.

>
>   This problem also arises in a computation that needs to update
>   the overlay repeatedly in a loop with intermediate results from a
>   computation.

I'm not sure if there is a good solution for that in the notebook yet.

>
>  * Under what conditions does an attached file (the attach command)
>    actually reload the file. The documentation states "hit the enter
>  key"
>    but that does not apply to typing in a notebook cell?

That should be the case -- though in the notebook you would
hit shift-enter.  If it doesn't work, it's a bug and you should report it.


>
>  Thanks in advance for any hints or pointers at documentation or code!
>
>  -gerhard
>  >
>



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
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