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

Re: Is It Possible to use JavaScript in XSLT to get an

Subject: Re: Is It Possible to use JavaScript in XSLT to get an inframe'scurr ent location, then display it in the main screen ?
From: "Michael H. Semcheski" <mhs-list@xxxxxxxxx>
Date: Tue, 01 Oct 2002 16:38:42 -0400
javascript createchild
The key is, you can use Document Object Model to navigate through an xml file (eg, an XHTML file). That way, you can use members like createChild(), childNodes(), firstChild, etc()... I'm guessing that the original post had something to do with that.

To the original poster:
Do a google search on XML DOM Javascript, there's a good bit out there. And now, after looking over what I've written, it does seem a bit off topic for xsl-list.
The key is, xslt is xml.
Mike


Or better, get the JavaScript code working and just spit out '<script
language="JavaScript" src="location_of_script_file.js"></script>' in your
XSLT, so you don't have to worry about encapsulating the JavaScript code in
CDATA sections or the like.


What has the Javascript to do with the XSLT? As you describe it, the Javascript is executed in the HTML output. So you must differ between the XSLT and the output of XSLT !! If it helps, you shell test your Javascript in a static HTML file and if the test was successful, copy this code to the XSLT.

Anyone knows how to use JavaScript in XSLT to get an inframe's current (updated) location (URL), then display it in the current main screen?

Thanks,
Yan





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.