xsl-list
[Top] [All Lists]

[xsl] Clean XSL code for the following javascript

2007-01-17 08:57:43
What is the cleanest way to code the following javascript code in my XSL:

<a href="#" onlick="Position.clone('ElementA', 'ElementB', {setHeight:
false, setWidth: false})">-click-<a/>

These are the correct (??) unicode characters for:

{ =  &#007B;
} =  &#007D;

Here is where I found these codes:
http://www.unicode.org/charts/PDF/U0000.pdf

I tried injecting this straight into the onlick attribute, but failing
with a decimal syntax issue... (which I haven't seen before).

So I tried:

<a href="#" onclick="Position.clone('{$ElementA}', '{$ElementB}',
&#007B;setheight: false, setWidth: false &#007D;)">-click me-</a>

The exact error is:
Invalid character in a decimal number 'B'



Karl..

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--