[parenscript-devel] this.bgcolor

Daniel Gackle danielgackle at gmail.com
Mon Jun 21 16:11:32 UTC 2010


That article's kind of funny because some of the reasons
they give for *not* embedding css/html are the very reasons
we *are* embedding it. Reduced download times, for example,
and greater maintainability. Moreover, the cache issue is a
non-starter when you tag your resources with a hash and make
them never expire. I could go on.

The point is that it really depends on the needs of your project
and the tools you're using. In good CL tradition I'm sure we can
all agree that PS hackers are smart enough to choose rightly.


On Mon, Jun 21, 2010 at 7:51 AM, Henrik Hjelte <henrik at evahjelte.com> wrote:

> On Sun, Jun 20, 2010 at 8:42 PM, Haris Bogdanović <fbogdanovic at xnet.hr>
> wrote:
> > Sorry, I wrote that wrong.
> > I want to set background color of td cell like this:
> >
> > <td onclick='this.bgcolor="blue"'> text </td>
> >
> > with cl-who and ps like:
> >
> > (:td :onclick (ps ("what goes here to get 'this.bgcolor="blue"' ? ")))
>
> There are reasons why inline javascript is out of fashion:
> http://css.dzone.com/news/why-inline-css-and-javascript-
>
> I suggest setting the onclick handler from outside the html, retrieve
> the td element using an id and getelementbyid, or if it is not unique
> (an id can't be used) add a class and use some javascript library that
> can select elements by classname to get the dom element.
>
> /Henrik Hjelte
>
> _______________________________________________
> parenscript-devel mailing list
> parenscript-devel at common-lisp.net
> http://common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/parenscript-devel/attachments/20100621/d3149270/attachment.html>


More information about the parenscript-devel mailing list