menardmam Posted February 5, 2008 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 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
Archived
This topic is now archived and is closed to further replies.