Hi ....
I am facing a major problem in writing a javascript that will load an xml document dynamically and posts it to the next page when clicked on a hyperlink.
The problem is that in the below code i am not able to create the fso object . I called five alert statements alternatley. when I load the html page i call this function hello in the body tag with onload event. when the page loads i get only 3 msg boxes and no message box appears after the "fso = new ActiveXobject" statement. I am not able to understand the problem. I am pasting the code below. Can any one be able to help me out with this.
************************************************** ******************************************
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0042)http://10.29.130.22/SSI/order_supplies.htm -->
<?xml version="1.0" encoding="UTF-8"?><HTML><HEAD><TITLE>xxxxxxx***10.29.130.22</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8"><LINK
href="xxxxxxxxn 10_29_130_22_file s/defaultnew.css"
type=text/css rel=stylesheet>
<SCRIPT src="xxxxxn 10_29_130_22_files/global.js"
type=text/javascript></SCRIPT>
<SCRIPT src="xxxxx 10_29_130_22_files/buttonManager.js"
type=text/javascript></SCRIPT>
<SCRIPT language= JavaScript type="text/javascript">
<!--
function Hello()
{
alert("winFolder");
var winFolder;
alert("winFolder");
var fso;
alert("winFolder");
fso= new ActiveXObject("Scripting.FileSystemObject");
alert("winFolder");
winFolder = fso.GetSpecialFolder(0);
alert("winFolder");
}
// -->
</script>
<META content="MSHTML 6.00.2800.1561" name=GENERATOR></HEAD>
<BODY class=supportAndsupplies onload = Hello()>
<TABLE class="valignTop alignLeft" cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD>
<TABLE class="width170px height462px alignLeft valignTop bgcolor003366"
border=0>
<TBODY>
<TR>
<TD class="alignLeft valignTop height135px bgcolor003366"
style="TEXT-ALIGN: center" colSpan=2><IMG height=117 alt=""
src="xxxxx 10_29_130_22_files/xxx_sig1.gif"
width=90></TD></TR>
<TR>
<TD
class="valignTop height250px suppliesSupportWhiteFont bgcolor003366"
style="TEXT-ALIGN: center"><B>xxxxxxx SureSupply: Simpler, smarter online
supplies ordering</B></TD></TR>
<TR>
<TD
class="suppliesSupportWhiteFont alignCenter valignTop height60px bgcolor003366"
style="TEXT-ALIGN: center"><A
href="http://www.we.com/learn/suresupply/?prn">» Learn more aboutxxxx
SureSupply</A></TD></TR></TBODY></TABLE></TD>
<TD class="width10px height462px alignLeft valignTop" rowSpan=4> </TD>
<TD>
<TABLE class="height462px width560px" cellSpacing=0 cellPadding=0
border=0>
<TBODY>
<TR>
<TD
class="valignMiddle height50px alignLeft suppliesSupportHeaderFont"
colSpan=3>Transfer information to xxx Sure Supply?</TD></TR>
<TR>
<TD class="valignMiddle height100px suppliesSupportFont">The fastest
way to order supplies online is to transmit information about your
to xxxxx. Or if you prefer, you can enter this information on
your own.</TD></TR>
<TR>
<TD class="valignMiddle suppliesSupportFont">
<FORM id=suresupply name=suresupply
action=https://www.xxxxxxx.com/post-embed/ordersupplies-na method=post>
<P><INPUT type=hidden
value='<?xml version="1.0" encoding="UTF-8" ?>
<mobile>
<XML_Version>1.0</XML_Version>
<Device_Configuration>
<mobile_Information>
<Product_Name>xxxxxxxx series</Product_Name>' name=XMLSupplies></P>
<P><A
href="javascript:document.getElementById('suresupp ly').submit();"><B>Yes,
please send my information</B></A><BR><BR></P>
<P> <B>Or</B> <BR><BR></P>
<P><A href="https://www.xxxx.com/buy/suresupply/?prn"><B>No, let me
provide my information</B></A></P></FORM></TD></TR>
<TR>
<TD class="valignBottom suppliesSupportFont">xxxx respects your
privacy. Only information and status about your will be
sent; no personal information will be shared. Please refer to the <A
href="http://www.xxxxxxx.com/learn/suresupply/privacy">Shared
Information</A> page to know more about the data that will be
transmitted.<BR></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD class="alignCenter suppliesSupportCopyrightFont"><A
href="http://welcome.xxxxxxx.com/country/us/en/privacy.html">Privacy
Statement</A></TD>
<TD class=suppliesSupportCopyrightFont><A
href="http://welcome.xxxxx.com/country/us/en/termsofuse.html">Using this site
means you accept its terms</A></TD></TR>
<TR>
<TD class=width600px colSpan=3>
<HR>
</TD></TR>
<TR>
<TD class="suppliesSupportCopyrightFont alignCenter" colSpan=2> </TD>
<TD>© 2004 Hewlett-Packard Development Company,
L.P.</TD></TR></TBODY></TABLE></BODY></HTML>
************************************************** *****************************************