[Ur] Looking for a minimal example using source / signal - eg, User types into a textbox, changes appear below in an <xml> fragment

Stefan Scott Alexander stefanscottalexx at gmail.com
Fri Aug 14 22:51:15 EDT 2015


Thanks Adam, this minimal example works now:

fun main () =
  s <- source ""
  ;
  return
  <xml><body>
    <ctextbox source={s}/><br/>
    <dyn signal={s <- signal s; return <xml>{[s]}</xml>}/>
  </body></xml>

I had been confused by the long error message, but as you pointed out, the
fix involved adding only a single character to change <textbox> to
<ctextbox>.

Later I will try an example involving server-side interaction: I want to
let the user type a characters into a field, which filters an SQL
recordset, displayed as XML.

###
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.impredicative.com/pipermail/ur/attachments/20150814/58d78231/attachment.html>


More information about the Ur mailing list