Sage: Ticket #692: add form capabilities to sage notebook
https://trac.sagemath.org/ticket/692
<pre class="wiki">On 9/19/07, PhantomDuck from Finland 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.
> 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).
>
>
> --~--~---------~--~----~------------~-------~--~----~
> You received this message because you are subscribed to the Google Groups "sage-newbie" group.
> To post to this group, send email to sage-newbie@googlegroups.com
> To unsubscribe from this group, send email to sage-newbie-unsubscribe@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/sage-newbie?hl=en
> -~----------~----~----~----~------~----~------~--~---
>
>
--
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org
</pre>en-usSagehttps://trac.sagemath.org/chrome/site/logo_sagemath_trac.png
https://trac.sagemath.org/ticket/692
Trac 1.1.6jasonThu, 29 Nov 2007 16:32:05 GMTstatus changed; resolution set
https://trac.sagemath.org/ticket/692#comment:1
https://trac.sagemath.org/ticket/692#comment:1
<ul>
<li><strong>status</strong>
changed from <em>new</em> to <em>closed</em>
</li>
<li><strong>resolution</strong>
set to <em>duplicate</em>
</li>
</ul>
<p>
Implementing ticket <a class="closed ticket" href="https://trac.sagemath.org/ticket/1322" title="enhancement: interact -- interactive functions in the notebook (moved to #2449) (closed: duplicate)">#1322</a> would enable variables that allow input in HTML forms as well as other sorts of javascript controls as well, so I'm marking this as a duplicate (am I allowed to mark things as duplicates?)
</p>
TicketmabshoffThu, 29 Nov 2007 20:27:18 GMTmilestone changed
https://trac.sagemath.org/ticket/692#comment:2
https://trac.sagemath.org/ticket/692#comment:2
<ul>
<li><strong>milestone</strong>
changed from <em>sage-wishlist</em> to <em>sage-duplicate/invalid</em>
</li>
</ul>
Ticket