[Opa] Dom.put_inside error?

Mads Hartmann Jensen mads379 at gmail.com
Tue Aug 16 08:23:24 EDT 2011


Hi Adam,

Your example does indeed work. Here's an example that doesn't work :) 



On Aug 16, 2011, at 1:05 PM, Adam Koprowski wrote:

>    Dear Mads Hartmann,
> 
>   Can you provide more details? I just compiled & run the following program:
> 
> page() =
>   <>
>     <span onclick={_ ->
>       _ = Dom.put_inside(#test, Dom.of_xhtml(<>Ok!</>))
>       void}>Go!</>
>     <div id=#test />
>   </>
> server = one_page_server("test", page)
> 
>   and it works fine for me. Can you check whether it does for you? Can you provide your snippet on which Dom.put_inside does not work?
> 
>   Best,
>   Adam
> 
> On Mon, Aug 15, 2011 at 23:09, Mads Hartmann Jensen <mads379 at gmail.com> wrote:
> Hi guys,
> 
> I haven't been able to use Dom.put_inside() like this
> 
> do Dom.put_inside(#status,Dom.of_xhtml(<p>test</p>))
> 
> I get the error:
> 
> TypeError: 'null' is not an object (evaluating 'd.toSource') in all.js:693
> 
> I simply want to add some xhtml to a div, is there a way to do this w/o using Dom.put_inside?
> 
> I'm using Opa compiler (c) MLstate -- version S3.5 -- build 507
> 
> Thanks,
> Mads
> _______________________________________________
> Opa mailing list
> Opa at lists.owasp.org
> https://lists.owasp.org/mailman/listinfo/opa
> 
> 
> 
> -- 
> Adam Koprowski  [http://adam-koprowski.net] 
> R&D @ MLstate   [http://opalang.org | http://mlstate.com] 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.owasp.org/pipermail/opa/attachments/20110816/c5ce8bc1/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: opa_error_report.zip
Type: application/zip
Size: 2275 bytes
Desc: not available
Url : https://lists.owasp.org/pipermail/opa/attachments/20110816/c5ce8bc1/attachment.zip 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.owasp.org/pipermail/opa/attachments/20110816/c5ce8bc1/attachment-0001.html 


More information about the Opa mailing list