Java Script Validator Fix

Closed Posted Oct 21, 2011 Paid on delivery
Closed Paid on delivery

I have a webpage with validation Java Script software to check for entries in diferent ways. Its written as a customer validation. It works erratically and not across all platforms. It also doesn't set focus on the missing field when the error message is closed.

The way it should work is by checking that at least one line item has been entered and that each line item entered has all the required fields completed.

This needs fixing and operational on all platforms. IE, Firefox Android and Safari for Mac and Ipad,(very important!)

A copy of the java code is pasted below:

<script language="javascript" type="text/javascript">

var frmvalidator = new Validator("ItemRecZZZ");

[url removed, login to view]("QtyOrdered1","numeric","Qty Must be a Number");

[url removed, login to view]("QtyOrdered1","maxlen=80");

[url removed, login to view]("QtyOrdered2","numeric","Qty Must be a Number");

[url removed, login to view]("QtyOrdered2","maxlen=80");

[url removed, login to view]("QtyOrdered3","numeric","Qty Must be a Number");

[url removed, login to view]("QtyOrdered3","maxlen=80");

[url removed, login to view]("MfgItemNum1","Req","Please Enter ItemNum");

[url removed, login to view]("MfgItemNum1","maxlen=80");

[url removed, login to view]("MfgItemNum2","Req","Please Enter ItemNum");

[url removed, login to view]("MfgItemNum2","maxlen=80");

[url removed, login to view]("MfgItemNum3","Req","Please Enter ItemNum");

[url removed, login to view]("MfgItemNum3","maxlen=80");

[url removed, login to view]("UnitPrice1","decimal ","Please Enter Price");

[url removed, login to view]("UnitPrice1","maxlen=80");

[url removed, login to view]("UnitPrice2","decimal ","Please Enter Price");

[url removed, login to view]("UnitPrice2","maxlen=80");

[url removed, login to view]("UnitPrice3","decimal ","Please Enter Price");

[url removed, login to view]("UnitPrice3","maxlen=80");

[url removed, login to view]("ManufacturerID1","Req","Please Select Manufacturer");

[url removed, login to view]("ManufacturerID1","maxlen=80");

[url removed, login to view]("ManufacturerID2","Req","Please Select Manufacturer");

[url removed, login to view]("ManufacturerID2","maxlen=80");

[url removed, login to view]("ManufacturerID3","Req","Please Select Manufacturer");

[url removed, login to view]("ManufacturerID3","maxlen=80");

[url removed, login to view]("Description1","alphanumeric_space","Description contains invalid characters");

[url removed, login to view]("Description1","maxlen=80");

[url removed, login to view]("Description2","alphanumeric_space","Description contains invalid characters");

[url removed, login to view]("Description2","maxlen=80");

[url removed, login to view]("Description3","alphanumeric_space","Description contains invalid characters");

[url removed, login to view]("Description3","maxlen=80");

/* Custom Validation */

function DoCustomValidation()

{

var frm = [url removed, login to view]["ItemRecZZZ"];

if([url removed, login to view] == "" && [url removed, login to view] =="" && [url removed, login to view] == "")

{

alert('All Qty Fields are empty you must have at least one value');

return false;

}

else

if(frm.id=[url removed, login to view] == "" && [url removed, login to view] =="" && [url removed, login to view] == "")

{

alert('All Ite

JavaScript PHP Software Architecture

Project ID: #1258269

About the project

8 proposals Remote project Active Nov 23, 2011

8 freelancers are bidding on average $41 for this job

toinnisfree

quick pro help. ftp and escrow required.

$75 USD in 1 day
(552 Reviews)
7.9
lsweb

Hello. Please check your PM. Thanks.

$45 USD in 1 day
(76 Reviews)
6.5
HeNet

Experience in client side code. Will do your work just for fun.

$30 USD in 1 day
(46 Reviews)
6.2
sumannath

Hi!! It seems I understand the project. Please check PMB.

$30 USD in 0 days
(17 Reviews)
4.4
mjstyles

I can have this completed in minutes. Please see PMB.

$30 USD in 0 days
(0 Reviews)
0.0
tzvir

can be done in an hour or two

$30 USD in 0 days
(0 Reviews)
0.0