This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Is It Possible to use JavaScript in XSLT to get an inframe'scurr ent location, then display it in the main screen ?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]