XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Steve SingerSubject: Using Javascript within XSL
Author: Steve Singer
Date: 05 Feb 2007 09:56 AM
Hi, hoping someone can point me in the right direction here. I've written an XSL that open a window using the Javascript "window:open" function. All works well. However, I've been asked to make the window that opens variable based on the screen the user is on. I have written Javascript that writes the window I want to open to a cookie (and that works fine), and I've written a Javascript function that retrieves the cookie and sets a default value if the cookie is not found (and that works fine).

However, I don't know how to get everything put together. Is there a way I can call the Javascript that gets the cookie within an XSL and assign it to an XSL variable? Then I can use that variable to create the correct window:open construct.

Thanks in advance!

Posttop
Tony LavinioSubject: Using Javascript within XSL
Author: Tony Lavinio
Date: 06 Feb 2007 01:48 AM
XSLT can call into JavaScript, but how to do it (and whether or not
it can be done) varies by processor. The built-in engine knows Java,
but others from Microsoft which you can switch to with the scenario
properties dialog will support JavaScript. Check on msdn.microsoft.com
for details.

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.