SiteExperts.com Logo Home | Community | Developer's Paradise
User Groups | Site Tools | Site Information | Search
 Main Menu
 Forums
SiteExperts.com Forums
All Discussions

SiteExperts Feedback
The Lounge
Dynamic HTML
Site Design/ Critiques
HTML and CSS
XML Technologies
The Wireless Internet
Internet Explorer
Microsoft .NET
The Server
Technical Support

Sponsored Links

User Groups : Forums : SiteExperts : XML Technologies :

Previous DiscussionNext Discussion
 How can I avoid reteiving xsl files from web servers using MSXML objs

How to make high effective use of xslt ActeveX objects
I've trie the code below to work on my page.They just works good but not effective enough.Everytime the activex object is created,the js retrieve xsl file and files inclued in it from server and that terribly do harm to the efficiency of the system,for my server is embeded in some kind of equipment.So ,is there is a way that I can create the xslt object using files obtained from the IE cache after the files are first introdued in cache just like other cgi requests do?
.................................................. ..............
function createXSLDOM() {
var arrSignatures = ["Msxml2.FreeThreadedDOMDocument.6.0","Msxml2.FreeT hreadedDOMDocument.5.0", "Msxml2.FreeThreadedDOMDocument.4.0",
"Msxml2.FreeThreadedDOMDocument.3.0", "Msxml2.FreeThreadedDOMDocument.2.0",
"Msxml2.FreeThreadedDOMDocument"];
for (var i=0; i < arrSignatures.length; i++) {
try {
var oXslDom = new ActiveXObject(arrSignatures[i]);
return oXslDom;
} catch (oError) {
//ignore
}
}
throw new Error("MSXML is not installed on your system.");
}
function loadAreaPage(areaObject,xmlName,xslName,callback){
var xslDoc = createXSLDOM();
var xmlDoc = createXMLDOM();
try{
xmlDoc.async=true
xslDoc.validateOnParse=false
xmlDoc.load(xmlName)
xmlDoc.onreadystatechange=function(){
if(xmlDoc.readyState==4){
xslDoc.load(xslName)
}
}
xslDoc.onreadystatechange=function(){
if(xslDoc.readyState==4){
if(!xslDoc || !xmlDoc || xslDoc.text.length==0){
xmlDoc=null
xslDoc=null
return
}
areaObject.innerHTML=xmlDoc.transformNode(xslDoc)
xmlDoc=null
xslDoc=null
try{
callback()
}catch(exc){}
}
}
}catch(exc){}}
.................................................. ..............

Tks,everybody and wait......

Started By charliehower on Mar 23, 2006 at 10:24:43 PM

2 Response(s) | Reply

Earlier Replies | Replies 1 to 2 of 2 | Later Replies
Badotz on Mar 24, 2006 at 5:48:42 AM (# 1)

No


charliehower on Mar 27, 2006 at 3:09:01 AM (# 2)

I've tried to store xsl file in an xml data island.When I new a
xsl object,I load xsl info from specified xml data island.IE does cache the xsl file but it still retrive files included in
the xsl file.


Earlier Replies | Replies 1 to 2 of 2 | Later Replies

To respond to a discussion, you must first logon.

If you are not registered, please register yourself to become a member of the SiteExperts.community.

User Name
Password
Copyright 1997-2004 InsideDHTML.com, LLC. All rights reserved.