<div dir="ltr"><div><font face="monospace, monospace">Hi -<br></font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">I'm trying to do a minimal example:</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">- generating a node id using [fresh] - from section 8.6.2 of the manual; and</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">- using the node id in a form handler - similar to the Form demo:</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">  <a href="http://www.impredicative.com/ur/demo/form.html">http://www.impredicative.com/ur/demo/form.html</a> </font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">(This is in preparation for other code which will use JavaScript FFI.)</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">My minimal code is something like the following, but it does not compile due to the obvious syntax errors involving [nid].</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">fun main () = </font></div><div><font face="monospace, monospace">  nid <- fresh;</font></div><div><font face="monospace, monospace">  let </font></div><div><font face="monospace, monospace">  fun handler r = </font></div><div><font face="monospace, monospace">    return </font></div><div><font face="monospace, monospace">      <xml><body></font></div><div><font face="monospace, monospace">        {[r.nid]}</font></div><div><font face="monospace, monospace">      </body></xml></font></div><div><font face="monospace, monospace">  in</font></div><div><font face="monospace, monospace">    return</font></div><div><font face="monospace, monospace">    <xml><body><form></font></div><div><font face="monospace, monospace">      <textbox{nid}/></font></div><div><font face="monospace, monospace">      <submit action={handler}/></font></div><div><font face="monospace, monospace">    </form></body></xml></font></div><div><font face="monospace, monospace">  end</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">I can't figure out the correct syntax, for:</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">- using [nid] created by [fresh] and as the id for a textbox; and</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">- accessing the value in the textbox, via a form handler.</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">Thanks for any help!</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">###</font></div><div><br></div></div>