wolfverine
12-31-2002, 03:30 PM
Hello,
Perhaps you've had the same problem as I.
Instruction : 'var OrderByData = new Object();' Failed to works when you have two forms on the page.
int he bloc :
<Script language="JavaScript">
alert('new Ojbect() OK ?');
var OrderByData = new Object();
alert('Yes!');
ORDERBY_Init(OrderByData,document.OrderBy.Order_By);
</SCRIPT>
=========================================
here is page with two forms :
<html>
<head></head>
<body>
<form method="Post" name="Object" id="Object" action="">
From 1
</Form>
<form name="OrderBy" method="Post" id="OrderBy">
Form 2
<Script language="JavaScript">
alert('new Ojbect() OK ?');
var OrderByData = new Object();
alert('Yes!');
ORDERBY_Init(OrderByData,document.OrderBy.Order_By);
</SCRIPT></form>
</body>
</html>
You've got Message : new Ojbect() OK ?
but not 'Yes!'
==============================================
here is page with one forms :
<html>
<head></head>
<body>
<Xform method="Post" name="Object" id="Object" action="">
Form 1 : Not a Form
</XForm>
<form name="OrderBy" method="Post" id="OrderBy">
Form 2
<Script language="JavaScript">
alert('new Ojbect() OK ?');
var OrderByData = new Object();
alert('Yes!');
ORDERBY_Init(OrderByData,document.OrderBy.Order_By);
</SCRIPT></form>
</body>
</html>
which is the same as Classes.htm except : (first form)
<form method="Post" name="Object" id="Object" action="">
which becomes
<Xform method="Post" name="Object" id="Object" action="">
AND
</Form>
which becomes
</XForm>
You've got both Message : new Ojbect() OK ?
and 'Yes!'
What prevent the Object to be created ??? when you've got two forms ?
When I try to create an Array it's works even when two forms ?
I've tryed this on IE 5.5 SP2
Perhaps you've had the same problem as I.
Instruction : 'var OrderByData = new Object();' Failed to works when you have two forms on the page.
int he bloc :
<Script language="JavaScript">
alert('new Ojbect() OK ?');
var OrderByData = new Object();
alert('Yes!');
ORDERBY_Init(OrderByData,document.OrderBy.Order_By);
</SCRIPT>
=========================================
here is page with two forms :
<html>
<head></head>
<body>
<form method="Post" name="Object" id="Object" action="">
From 1
</Form>
<form name="OrderBy" method="Post" id="OrderBy">
Form 2
<Script language="JavaScript">
alert('new Ojbect() OK ?');
var OrderByData = new Object();
alert('Yes!');
ORDERBY_Init(OrderByData,document.OrderBy.Order_By);
</SCRIPT></form>
</body>
</html>
You've got Message : new Ojbect() OK ?
but not 'Yes!'
==============================================
here is page with one forms :
<html>
<head></head>
<body>
<Xform method="Post" name="Object" id="Object" action="">
Form 1 : Not a Form
</XForm>
<form name="OrderBy" method="Post" id="OrderBy">
Form 2
<Script language="JavaScript">
alert('new Ojbect() OK ?');
var OrderByData = new Object();
alert('Yes!');
ORDERBY_Init(OrderByData,document.OrderBy.Order_By);
</SCRIPT></form>
</body>
</html>
which is the same as Classes.htm except : (first form)
<form method="Post" name="Object" id="Object" action="">
which becomes
<Xform method="Post" name="Object" id="Object" action="">
AND
</Form>
which becomes
</XForm>
You've got both Message : new Ojbect() OK ?
and 'Yes!'
What prevent the Object to be created ??? when you've got two forms ?
When I try to create an Array it's works even when two forms ?
I've tryed this on IE 5.5 SP2