Subject: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.
Subject: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.