7 Responses to JavaScript CSS Parser for Custom Properties

  1. Malih says:

    There’s some I found while looking for Javascript based CSS parser too, haven’t tried it yet though, you might be interested, http://www.senocular.com/index.php?id=1.289

  2. I had the same thought and came up with this:
    http://youngisrael-stl.org/wordpress/blogfiles/cssparser/cssparser.jquery.js
    You can see it discussed at
    http://youngisrael-stl.org/wordpress/2007/10/19/css-parser-in-javascript/
    though I haven’t worked on it a while. Help would be appreciated.

    I found this blog entry because I’m thinking about it again and googled to see if anyone else did it. For a real sophisticated take, look at Dean Edward’s ie7.js (http://code.google.com/p/ie7-js/).

  3. Malih and Daniel, thanks for the great input. Both scripts look interesting. Actually the idea started partly from Dean Edwards IE7 script, but I am not sure whether or not is a generic solution easily adaptable for all major browser vendors, should look into that as well.

  4. I got the CSS parser working (FF 3, IE 7, Safari 3, Opera 9, all under Windows Vista). No real documentation yet, but you can see it in action at
    http://youngisrael-stl.org/wordpress/blogfiles/cssparser/cssparsertest.php

    with the Javascript code in
    http://youngisrael-stl.org/inc/jquery.cssparser.js

    You can do things like
    h1 {
    -jquery-gradient: white blue vertical;
    -jquery-corners: round 10pt;
    }

    and it is livequery-aware, so it can keep up with changes in the DOM

  5. Ehsan says:

    hi ..
    i wanna do this wihin .Net framework or JavaScript Programming .. without using any JavaScript Library !
    any one hv idea about this ?

  6. Daniel Glazman says:

    Or you can use my own parser (warning, work in progress)
    http://sources.disruptive-innovations.com/jscssp/

  7. Great! I will check it out, what do you think of going open source on Github or Google Code?

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>