Switch to full style
JavaScript code examples
Post a reply

sending parameters into XSLT sheet

Mon Oct 22, 2012 1:18 pm

sending parameters into XSLT sheet using JQuery framework, here we use myXMLFile.xml and myXSLFile.xsl as parameters to xslt function to print the output as text in myDiv ( div tag) .
javascript code
<script type="text/javascript">
$(function() {
// to display
$.ajax({
url: 'myXmlFile.xml',
dataType: 'html',
success: function(data) {
$('#xmldata').text(data);
}
});

$.ajax({
url: 'myXSLFile.xsl',
dataType: 'html',
success: function(data) {
$('#xsldata').text(data);
}
});

// The transformation
$('#myDiv').xslt({xmlUrl: 'myXmlFile.xml', xslUrl: 'myXSLFile.xsl'});
});
</script>




Post a reply
  Related Posts  to : sending parameters into XSLT sheet
 regarding to excel sheet     -  
 Help Sending e-mail from VB.Net application     -  
 sending sms from bluetooth mobile to pc     -  
 AJAX - Sending a request to a server     -  
 Sending One lakh character in ajax     -  
 Sending a post request using AJAX     -  
 Sending and playing microphone audio over network     -  
 sending sms using java code and bluetoth device pls send the     -  
 Reference Parameters     -  
 Encoding parameters in URL     -  

Topic Tags

JavaScript Basics