What is wrong with the following line:
if(document.frmDiary.ChkDelete + DiaryIDsArray[i].checked ==1)
in the following code
if(strWhichPage == "Delete")
{ alert("hi");
var DiaryIDs = (document.frmDiary.hdnDiaryIDs.value);
if(DiaryIDs !="")
{
var DiaryIDsArray = DiaryIDs.split("|");
for(int i=0;i<DiaryIDsArray.length;i++)
{
if(document.frmDiary.ChkDelete + DiaryIDsArray[i].checked ==1)
{
ThereIsSomething2Delete = 1;
}
}
}
if(ThereIsSomething2Delete ==1)
{
var YesNo = confirm("All entries for this diary will be deleted, proceed?");
if (YesNo == true)
{
document.frmDiary.action = "delete_diaries.asp";
}
}
else
{
alert("Please select a diary/diaries to delete");
}
}
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/