Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

loading XSL (Microsoft.XMLDOM)

Status
Not open for further replies.

lowbk

Technical User
Nov 26, 2001
162
SG
hi, i need help for using Microsoft.XMLDOM
i need to load "previous.xsl", the location is "D:\bk\vpr\jsp\previous.xsl".
the location of the jsp that contains the javascript is "d:\bk\vpr\jsp\menu.jsp"

but i keep encountering messages stating that the specified resource cannot be found.
is it because the input string path is wrong? if so, what should be the correct one?
should it be relative to the context path? (the context path is "/bk")
should it be an absolute path?
or do i need to load certain jar or driver or dll?

the code (fragment) i have is as follow
.......................
var style;
style = new ActiveXObject('Microsoft.XMLDOM');
style.load("/bk/vpr/jsp/previous.xsl");
// did the XSL file load OK?
if (style.parseError.errorCode != 0)
{
msg = 'Error loading xsl data.';
msg += '\nDescription: ' + style.parseError.reason;
msg += '\nSource text: ' + style.parseError.srcText;
alert(msg);
}
......

any kind soul pls advise
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top