codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Please Help....  lince_tang at 08:20 on Friday, October 15, 2004
 

Hi I have a simple javascript code.. I dont have an idea why come out wif error!!
Can You help me for this?
Thanks a lot for the advise.... =)

My code:

<script language="JavaScript" >

var checkbox_choices=0;
function verifyForm () {

if (document.request.mpnArea.value=="")
{
alert("Please enter the mpnIDs.");
document.request.mpnArea.focus();
return false;

}

for (i = 0; i < request.checkbox.length; i++)
{
if (request.checkbox[counter].checked)
{ checkbox_choices = checkbox_choices + 1; }
}

if (checkbox_choices==0)
{
alert("Please 'tick' if you would like to search by 'exact match' or 'matching starting with'");
return false;
}

if (checkbox_choices==2)
{
alert("Please choose one type of matching only");
return false;
}


else return true;
}

</script>

  Re: Please Help....  Yusairi at 04:43 on Thursday, October 21, 2004
 

hi lince_tang,

maybe your error at

alert("Please 'tick' if you would like to search by 'exact match' or 'matching starting with'");

please let us know what is your error.










CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: JavaSript Problem In Mac Safari Browser
•  Re: DHTML div positionning Problem
•  Convert script to NS6 compatible - Please Help!
•  Print .doc file from the website using System.Diagnostics.Process
•  Re: Fullscreen code
•  Re: iframe targeting
•  Excel n ASP
•  Remote Cart Shopping Cart
•  Mouse click coordinates on an ActiveX control?


Recent Articles
Communicating with the Database (Using ADO)
MagicGrid
Simple Thumbnail Browsing Solution
Type Anywhere
A Better Moustrap: FmtDate to replace FormatDateTime
ASP.NET Forum Source Code
Internal Search Engine
Javascript Growing Window
Simple date validation
Search engine friendly URLs using ASP.NET (C#.NET)


Site Survey
Help us serve you better. Take a five minute survey. Click here!

© Copyright codetoad.com 2001-2005