[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Clean XSL code for the following javascript

Subject: Clean XSL code for the following javascript
From: "Karl Stubsjoen" <kstubs@xxxxxxxxx>
Date: Wed, 17 Jan 2007 08:57:22 -0700
 Clean XSL code for the following javascript
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..

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.