|
 |
javascript thread: function works in IE6 but NOT IE5 !!
Message #1 by kristof@b... on Thu, 13 Jun 2002 14:39:57
|
|
Please use a document.getElementById("checkboxdraft").checked
-----Original Message-----
From: kristof@b... [mailto:kristof@b...]
Sent: Thursday, June 13, 2002 8:10 PM
To: javascript
Subject: [javascript] function works in IE6 but NOT IE5 !!
function below doesn't work in IE5.x (works fine in IE6.x).
function is called like this way:
<a href="#" onclick="javascript:deleteDrafts()">
What can be the reason ? Please any help. Thx !
function deleteDrafts() {
var noDraftsToDelete = true;
var draftsToDeleteList="";
if ( checkboxdraft.length > 0 ) {
for ( i = 0; i < checkboxdraft.length; i++) {
if ( checkboxdraft[i].checked ) {
if (noDraftsToDelete)
{
noDraftsToDelete = false;
}
else
{
draftsToDeleteList = draftsToDeleteList +"&";
}
draftsToDeleteList = draftsToDeleteList
+ "deleteDraft="+checkboxdraft[i].value;
}
}
}
if (noDraftsToDelete == false)
{
URLtoExecute = "<% out.print(deleteActionUrl); %>" + "?" +
draftsToDeleteList;
document.location.href=URLtoExecute;
}
else if ( checkboxdraft.checked ) {
draftsToDeleteList = draftsToDeleteList
+ "deleteDraft="+checkboxdraft.value;
URLtoExecute = "<% out.print(deleteActionUrl); %>" + "?" +
draftsToDeleteList;
document.location.href=URLtoExecute;
}
}
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20
**************************************************************************
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**************************************************************************
|
|
 |