[haXe] Another haxeJs newbie question
Franco Ponticelli
franco.ponticelli at gmail.com
Mon Dec 3 21:12:16 CET 2007
I've not tested it but I suspect that the stylesheets field is mispelled ...
I think the correct name is styleSheets. If it is so you have to change its
definition in the haxe/js/Dom.hx file.
About your second question you will have to implement your solution. The JS
API in haXe is quite essential. I suggest you to take a look at how big
libraries deal with that problem and implement your solution in haXe.
Franco.
On Dec 3, 2007 6:21 PM, Axel Huizinga <axel at 3drachen.de> wrote:
> Hi,
> first I wonder why
>
> var a:HtmlCollection<StyleSheet> = js.Lib.document.stylesheets;
> trace(a);
>
> reports null though I have one external stylesheet linked to my html
> document.
>
> And then I'd like to change stylesheet rules via javascript.
> Is there a way to do this with haxe?
>
> Cordially,
> Axel
>
> --
> haXe - an open source web programming language
> http://haxe.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.motion-twin.com/pipermail/haxe/attachments/20071203/cb15acb5/attachment.htm
More information about the Haxe
mailing list