473,387 Members | 1,464 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Problem wit creating a FSO object.... HEEELP

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&nbsp;&nbsp;&nbsp;10_29_130_22_file s/defaultnew.css"
type=text/css rel=stylesheet>
<SCRIPT src="xxxxxn&nbsp;&nbsp;&nbsp;10_29_130_22_files/global.js"
type=text/javascript></SCRIPT>

<SCRIPT src="xxxxx&nbsp;&nbsp;&nbsp;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 &nbsp;&nbsp;&nbsp;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>&nbsp;</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>&nbsp;&nbsp;<B>Or</B>&nbsp;&nbsp;<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>&nbsp;</TD>
<TD>© 2004 Hewlett-Packard Development Company,
L.P.</TD></TR></TBODY></TABLE></BODY></HTML>

************************************************** *****************************************
Nov 17 '06 #1
1 1621
vssp
268 100+
Fso function we need to include the header or uploade the fso related header then its work fine
Can u check the header ?

vssp
Nov 18 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Daylor | last post by:
first of all , PLEASE,say somthing..about my post. any reply will be nice to read. i have vb.app , with 2 appdomains. (now, in the next section , ill write "appdomain create" ,means a code in...
1
by: Jesper Odgaard | last post by:
Hi, I'm migrating a program to C# that I wrote using MFC. The programs GUI was split vertically in two halfs with a tree control to the left. Accordingly to the different items that could be...
2
by: Edward Diener | last post by:
In C++ an overridden virtual function in a derived class must have the exact same signature of the function which is overridden in the base class, except for the return type which may return a...
3
by: Ben Terry | last post by:
I have imported a legacy C++ project into a VisualStudio.NET 2003 solution. I have some new C# projects in the solution as well. I am using the managed extensions in my C++ project so that I can...
14
by: Venkat Chellam | last post by:
I have a peculiar problem. I have a simple web application which loads some data from the oracle table and display in the datagrid in the webpage and datagrid has page enabled which shows 10 rows...
10
by: Charles Law | last post by:
For some reason, when I click the X to close my MDI parent form, the action appears to be re-directed to one of the MDI child forms, and the parent remains open. I am then unable to close the...
10
by: Bryce Calhoun | last post by:
Hello, First of all, this is a .NET 1.1 component I'm creating. SUMMARY ----------------------- This component that I'm creating is, for all intents and purposes, a document parser (I'm...
6
by: TPJ | last post by:
Help me please, because I really don't get it. I think it's some stupid mistake I make, but I just can't find it. I have been thinking about it for three days so far and I still haven't found any...
5
by: dav3 | last post by:
I am by no means an ultra slick programmer and my problem solving skills.. well they leave much to be desired. That being said I have been working on the following problem for the past few days and...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.