• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Doubt in Ajax

 
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
Iam using Ajax Framwork and construct the DOM object and then render it using XSL.Iam able to do that successfully.But after 30 mins(default time for session),when I click any folder,it gives me the following error:

"The stylesheet does not contain a document element. The stylesheet may be
empty, or it may not be a well-formed XML document."

The reason I feel is the DOM which store in the request becomes null after the session expires.

See the code below:
xslDoc = new ActiveXObject("Msxml2.FreeThreadedDOMDocument");
xslDoc.async = false;
xslDoc.resolveExternals = false;
xslDoc.load(path);

if (typeof ActiveXObject != 'undefined') {var xslProcess = new ActiveXObject("MSXML2.XSLTemplate");
xslProcess.stylesheet = xslDoc;//This is the error line
var proc = xslProcess.createProcessor();proc.addParameter(param,paramVal);
proc.input = doc;
proc.addParameter(param,paramVal);
proc.transform();
transformString = proc.output;
}
else {
xslDoc.importStylesheet(xslDoc);
var transformString=xslDoc.transformToFragmentdoc,document);
if( transformString.childNodes.length>0 )
transformString = transform.childNodes[0].innerHTML;
else
alert('Your browser can\'t handle this script');
}
return transformString;

Iam using the above code.Can anyone let me know how to resolve this error?If the session expires then what needs to be done?

Thanks and Regards
Shiv
 
reply
    Bookmark Topic Watch Topic
  • New Topic