On 9/19/07, PhantomDuck <[EMAIL PROTECTED]> wrote: > I am complete Sage newbie. The question is, that is it possible to add > html-code to Sage web-browser interface?
You can click "edit", then paste arbitray HTML code anywhere in the notebook body, and it will render as HTML. > The goal would be insert some text-fields/checkboxes and radioboxes > and wait for user input. After the input has been given the Sage would > run some python programs and display the output. Does this approach > require a submit button too? You could create an HTML form easily enough by just pasting the HTML into a worksheet in Edit mode. *Unfortunately* nobody has actually implemented a feature in the notebook that would allow for submission of the contents of the form and evaluation of the result. I think this would actually be pretty easy to implement for a developer. I've made this trac ticket #692, so hopefully it will get implemented by somebody: http://trac.sagemath.org/sage_trac/ticket/692 > e.g. > We have equation 2x-1=0. There could be one html-text field where the > user could input the root of the polynomial equation, namely 1/2. Then > the Sage would check whether the root is correct and give some > feedback to the user. > > Thank you in advance (I know I might be asking silly things but please > forgive me for being a total newbie). No, that was an excellent question. 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-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~----------~----~----~----~------~----~------~--~---
