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

RE: Question regarding XSL and Javascript

Subject: RE: Question regarding XSL and Javascript
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Fri, 21 Sep 2001 08:54:12 +0100
javascript charact
> I am trying to get a dynamic Javascript URL generated by XSL, but the
> code keeps getting stuck with the parser. I went through the FAQs and
> archives and read the messages about AVT and using
> disable-output-escaping. Problem is that none of these techniques work
> with the link. A sample of the code is shown below -
>
>         <a
> href="javascript:window.parent.openWorkWindow('customerWorkWindow17',
> 'Household Details by Member',
> 'http://localhost/testpage/servlet/RequestHandler?ActionID=Fin
dHousehold%26CustomerID=123001%26DISFunction=Retrieve%26DISHtml=/presentatio
ns/html/MemberDetail.HTM')">

I would suggest not trying to generate a complex JavaScript statement like
this inside an href attribute. Instead, generate a call on a function,
specifying as little as possible in the arguments - only those things that
strictly vary from one call to the next. Then put the call to openWorkWindow
inside a JavaScript function that you include in a <script> section in the
output HTML document.

I'm not saying that you can't get it to work the way you are doing it, I'm
just saying that I've found it's easier to do it the way I suggest.

Mike Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.