Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
ANN: ocamljs 0.3
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2010-09-07 (16:58)
From: Jake Donham <jake@d...>
Subject: Re: [Caml-list] ANN: ocamljs 0.3
On Sun, Sep 5, 2010 at 6:05 AM, Christophe Papazian
<> wrote:
> I was playing with ocamljs. It's very nice to use ocaml to
> produce javascript ! I have a question : in ocamljs, there is a support
> for style objects. However, I do not see how to use them usefully because
> there don't seem to have some set_style method anywhere (but I found the
> get_style).

Thanks for trying ocamljs. The Dom module just wraps (part of) the
browser DOM API, and in that API the style property is read-only (see
You have to set properties on the style object for an element rather
than setting the style property of the element.