Subject: RE: [xsl] Question regarding XSL and Javascript From: "Michael Kay" <mhkay@xxxxxxxxxxxx> Date: Fri, 21 Sep 2001 08:54:12 +0100 |
> 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Question regarding XSL and Ja, Sanjeev Pai | Thread | RE: [xsl] Question regarding XSL an, Frank van Puffelen |
[xsl] XML schema general convert wi, ronald heller | Date | RE: [xsl] Inexplicable Null Charact, Michael Kay |
Month |