caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jake Donham <jake@donham.org>
To: Christophe Papazian <christophe.papazian@gmail.com>
Cc: OCaml List <caml-list@inria.fr>
Subject: Re: [Caml-list] ANN: ocamljs 0.3
Date: Tue, 7 Sep 2010 09:44:41 -0700	[thread overview]
Message-ID: <AANLkTikZcAPMw=khsyQjH7MFN_6sH9QQZ1rQvmdL5cKD@mail.gmail.com> (raw)
In-Reply-To: <E1BCA366-67B4-4887-B73C-36C4DE025B96@gmail.com>

On Sun, Sep 5, 2010 at 6:05 AM, Christophe Papazian
<christophe.papazian@gmail.com> 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
http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-htmlelementcss).
You have to set properties on the style object for an element rather
than setting the style property of the element.

Jake


      reply	other threads:[~2010-09-07 16:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-26 21:44 Jake Donham
2010-08-27  9:51 ` Mihamina Rakotomandimby
2010-08-27  9:53   ` Sylvain Le Gall
2010-08-27 14:44   ` [Caml-list] " Dario Teixeira
2010-08-27 15:38     ` bluestorm
2010-09-05 13:05 ` [Caml-list] " Christophe Papazian
2010-09-07 16:44   ` Jake Donham [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTikZcAPMw=khsyQjH7MFN_6sH9QQZ1rQvmdL5cKD@mail.gmail.com' \
    --to=jake@donham.org \
    --cc=caml-list@inria.fr \
    --cc=christophe.papazian@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).