[parenscript-devel] this.bgcolor

Daniel Gackle danielgackle at gmail.com
Mon Jun 21 06:46:45 UTC 2010


Haris,

I'd write this:

   (html ((:td :onclick (ps (setf (@ this :background-color) 'blue)))
"text"))

to emit this:

   <td onclick="this.backgroundColor = 'blue';">text</td>

But that's in LML2, not CL-WHO. If I recall correctly, the reason we
switched
from LML2 to CL-WHO was greater regularity with macroexpansions, so
YMMV.

Daniel


On Sun, Jun 20, 2010 at 12: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"' ? ")))
>
> Thanks
>
> _______________________________________________
> 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/083be73c/attachment.html>


More information about the parenscript-devel mailing list