|
Book Section

General Section

Other Sites

|
JavaScript Workshop Forums
| View previous topic :: View next topic |
| Author |
Message |
ckmalice New member

Joined: 21 Apr 2003 Posts: 2
|
Posted: Sun May 04, 2003 11:02 am Post subject: Filtering Problem |
|
|
Can anyone tell me why i can do the filtering in numeric data by these statements, and how can i correct them to achieve the expected result?
This function is used to filter the price in watch database that is smaller than the user entered price
function pricefilter()
{
SRecords.FilterColumn ="Price";
SRecords.FilterValue = watchprice;
SRecords.FilterCriterion = "<=";
SRecords.Reset();
} |
|
| Back to top |
|
 |
phil karras Senior Member

Joined: 15 Jul 2002 Posts: 1776 Location: MD
|
Posted: Mon May 05, 2003 6:33 am Post subject: |
|
|
The reason you can not catch a price lower than the expected price is that you have no if-statement, like:
| Code: |
if(PasPrice < ThePrice) {
alert("Price Error!");
document.FormName.FieldName.focus();
}
|
Now, it looks to me that you have more problems in understanding how to program is JavaScript so you might do well to pick up a good book or two. This site was developed by Michael Moncur to support his JS books, you buy that one to start. _________________ Phil K
Circle Software Consulting
Test website: http://cs.yrex.com/
Guidelines for Posting: http://www.jsworkshop.com/posting.html
IHBAAA = It Has Been Asked And Answered
KISS: http://www.jsworkshop.com/bb/viewtopic.php?t=508 |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2002 phpBB Group
|
|
(c) 1997-2002 Starling Technologies and
Michael Moncur. Portions (c) Sams Publishing.
|
|
|