[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] javascript- variable question - in XSL document


Subject: RE: [xsl] javascript- variable question - in XSL document
From: "Bruce Rojas-Rennke" <brr@xxxxxxx>
Date: Fri, 19 Sep 2003 12:23:03 -0600

never mind- answered my own question just now - was a syntax issue with the
single quotes around the url... corrected code as such:

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

'alwaysRaised=yes,resizable=no,scrollbars=no,height=200,width=200');
     } else {
	dateForm.submit();
     }
	return true;
     }
</script>

 - - probably am crazy tho
flashlight


-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Bruce
Rojas-Rennke
Sent: Friday, September 19, 2003 11:53 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: [xsl] 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?

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

'alwaysRaised=yes,resizable=no,scrollbars=no,height=200,width=200');
     } else {
	dateForm.submit();
     }
	return true;
     }
</script>
----------------------------------------------------------------------------
---------

thanks-
flashlight


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


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



Current Thread
Keywords
xsl