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 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Posttop
suresh chintaSubject: Passing JavaScript with multiple arguments in XSL
Author: suresh chinta
Date: 28 Apr 2009 05:16 PM
Originally Posted: 28 Apr 2009 03:53 PM
I am trying to use the following JavaScript function into XSL :

function loginToDocstore (formName,url_link,user,pwd)

{
var DocStoreForm = document.forms[0];
DocStoreForm.action = url_link;
DocStoreForm.username.value = user;
DocStoreForm.password.value = pwd;
document.getElementById("docstoreForm").submit();
}

I need to use the above function into XSL to get the HTML code:
<a href="javascript:loginToDocstore(formName,url_link,UserId,pwd)"> Order Materials</a>

The 'url_link' needs to be read from an xml file.
I have written some piece of xsl but it is not working. Any clue on how to implement

Thanks

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 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.