menardmam Posted February 5, 2008 Report Share Posted February 5, 2008 here is my little bit of code function buildtable(tableid,xmlfilename,langue,currency){ xml=loadXMLDoc(xmlfilename);xsl=loadXMLDoc('listedeprix.xsl');// code for IEif (window.ActiveXObject) { ex=xml.transformNode(xsl); document.getElementById(tableid).innerHTML=ex; } // code for Mozilla, Firefox, Opera, etc.else if (document.implementation&& document.implementation.createDocument) { var xsltProcessor=new XSLTProcessor(); xsltProcessor.importStylesheet(xsl); xsltProcessor.setParameter(null, 'langue',langue); xsltProcessor.setParameter(null, 'currency',currency);} // clear the contents document.getElementById(tableid).innerHTML = ""; var fragment = xsltProcessor.transformToFragment(xml, document); var myDOM = fragment; // add the new content from the transformation document.getElementById(tableid).appendChild(fragment)} the part in red (code for Mozilla, Firefox, Opera, etc.) work wellI just dont know what to write (ask) to get those parameter send to the explorer part.....here is the part for firefox that work.. xsltProcessor.setParameter(null, 'langue',langue); xsltProcessor.setParameter(null, 'currency',currency);What to write for ie....I thanks you already.. i sure it almost nothing.. but i miss itMarc-Andre Menard Link to comment Share on other sites More sharing options...
menardmam Posted February 5, 2008 Author Report Share Posted February 5, 2008 I double check yesterday on different computer.... too bad only on firefox.. explorer and safari just dont interpret it ...do you know why ? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now