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

RE: javascript- variable question - in XSL document

Subject: RE: javascript- variable question - in XSL document
From: "Martinez, Brian" <brian.martinez@xxxxxxxxxxx>
Date: Fri, 19 Sep 2003 12:16:53 -0600
append javascript
> From: Bruce Rojas-Rennke [mailto:brr@xxxxxxx]
> Sent: Friday, September 19, 2003 11:53 AM
> Subject:  javascript- variable question - in XSL document
> 
> 
> I have a javascript function in an XSL page, and can't get 
> the beast to
> handle it's own variable.
> - Is there something about being in an xsl doc that buggers 
> javascript? The
> below code will  simply output 'varNow' in the URL string, 
> instead of it's
> decalred value of 'testText'..
> 
> Am I crazy? Or at least can someone can illuminate my ignorance?

This has nothing to do with XSLT: you just don't know how to append the
contents of variables to JavaScript strings.

> <script language="javascript">
>   function getPL(form) {
>     if (form.rptPeriod[0].selected) {
> 	varNow = "testText";
> 	
> window.open('http://192.168.1.13/OnePointBPO/popup.cfm?selectA
> cct=varNow',

This should read:

window.open('http://192.168.1.13/OnePointBPO/popup.cfm?selectAcct='+varNow,

etc.

If you're not sure if it's JavaScript, HTML markup or XSLT that is causing
you problems, the best approach is to create a static model of your desired
output, then debug it before integrating it into your stylesheet.

hth,
b.

| brian martinez                           brian.martinez@xxxxxxxxxxx |
| lead gui programmer                                    303.357.3548 |
| cheap tickets, part of trip network                fax 303.357.3380 |
| 6560 greenwood plaza blvd., suite 400           englewood, co 80111 |
| cendant travel distribution services   http://www.cheaptickets.com/ |

 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.