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

RE: pass value between xml and javascript

Subject: RE: pass value between xml and javascript
From: "Chen Wang" <wangchen01@xxxxxxxxx>
Date: Sun, 9 Sep 2001 17:01:31 -0700
javascript pass variable to xml
By the way, in my html page, it just includes these.
<script language="javascript">
var xml = new ActiveXObject("Microsoft.XMLDOM");
xml.async = false;

var xsl = new ActiveXObject("Microsoft.XMLDOM");
xsl.async = false;



Hope the calling is right.


-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Jeni Tennison
Sent: Sunday, September 09, 2001 10:40 AM
To: Chen Wang
Cc: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  pass value between xml and javascript

Hi Chen,

> Of course it will not work for above line. But how to get that id
> between <cityid> into the WM_toggle function? I also tried this: <a
> href="#" onclick="WM_toggle('{cityid}'); return false">..</a>, but
> it did not work either.

The above should generate some HTML that looks like:

  <a href="#" onclick="WM_toggle('id'); return false">..</a>

If it doesn't, then you are probably using MSXML2 rather than MSXML3.
MSXML2 doesn't support XSLT, but rather a Microsoft-specific variant
which doesn't implement attribute value templates (the {}s). You can
find out more about the difference from the MSXML FAQ at

If that's what the transformation's producing but the Javascript
doesn't work, then there's something wrong with the Javascript, not
the XSLT.



Jeni Tennison

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

Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

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

Current Thread


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.
First Name
Last Name
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.