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
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