473,785 Members | 2,576 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

UPDATE : Help Required to Populate search results - Array Search

I have the following array:
function showCPUs(){
//name brandID dualCore dualProcessor
var cpuItem=['Pentium 4 HT Northwood','2', 'N','N'];
var cpuItem=['Pentium D 820','2','Y','N '];
var cpuItem=['Pentium D 830','2','Y','N '];
var cpuItem=['Pentium D 840','2','Y','N '];
var cpuItem=['Xeon','2','N', 'Y'];
var cpuItem=['Xeon','2','N', 'Y'];
var cpuItem=['Xeon','2','N', 'Y'];
var cpuItem=['Xeon Dempsey','2','N ','Y'];
var cpuItem=['Athlon 64 3000','1','N',' N'];
var cpuItem=['Athlon 64 3200','1','N',' N'];
var cpuItem=['Athlon 64 3500','1','N',' N'];
var cpuItem=['Athlon 64 4000','1','N',' N'];
var cpuItem=['Athlon 64 X2 4200','1','Y',' N'];
var cpuItem=['Athlon 64 X2 4400','1','Y',' N'];
var cpuItem=['Athlon 64 X2 4600','1','Y',' N'];
var cpuItem=['Athlon 64 X2 4800','1','Y',' N'];
var cpuItem=['Opteron 242','1','N','Y '];
var cpuItem=['Opteron 244','1','N','Y '];
var cpuItem=['Opteron 246','1','N','Y '];
var cpuItem=['Opteron 252','1','Y','Y '];
}
</script>

and the following hidden fields that are set by drop down menus
<input name="cpuBrandI D" type="text" id="cpuBrandID" >
<input name="dualCoreI D" type="text" id="dualCoreID" >
<input name="dualProce ssorID" type="text" id="dualProcess orID">

How can I search against the hidden values to generate a list of items from
my array?

eg
cpuBrandID = 2
dualCoreID = Y
dualProcessorID = N

will populate the page with the following processors from the array:
Pentium D 820
Pentium D 830
Pentium D 840

Many Thanks

Craig
Jul 23 '05
10 2736
the cpu drop down list does not generate html

"McKirahan" <Ne**@McKirahan .com> wrote in message
news:SN******** ************@co mcast.com...
"Craig Keightley" <do**@spam.me > wrote in message
news:42******** *************** @news-text.dial.pipex .com...
Thanks for all the feedback.
I now have a new problem, getting the page to work in firefox. Here is my
page (feel free to rip it apart, i'm still new to js)

http://rackage.sitedesign.net/dedicatedservers.php

What doesn't work in Firefox?

Jul 23 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
5771
by: Phil Powell | last post by:
The table already has a fulltext index and from there I can use the MySQL fulltext search query to get results as well as the relevancy score. The problem I have is that MySQL has a default setting whereby the minimum amount of characters is 4 for a search. Being that we're government and full of TLA (three-letter acronyms), that is not practical, and furthermore, the app I'm building must be fully portable, so having MySQL tweaked...
3
12671
by: Angelos | last post by:
Hello there, I am trying to write a script that will create dynamically a menu from MySQL database. The database table is a product categories table and it has the folowing filed: category_id, parent_category_id, category_name (some other fileds are there as well but these are enough to figure out the logic) I know that I have to store all the product_categories records in a temp array and then some how go through them and store the...
7
248484
by: Dave | last post by:
I have 2 tables, one with names, and another with addresses, joined by their CIVICID number (unique to the ADDRESSINFO table) in Oracle. I need to update a field in the NAMEINFO table for a particular surname in a particular town. I can select the records fine with this syntax (testing in Oracle SQL* Plus) SELECT NAMEINFO.LASTNAME, NAMEINFO.FIRSTNAME, NAMEINFO.MIDDLENAME, NAMEINFO.GENDER, ADDRESSINFO.REGION FROM NAMEINFO, ADDRESSINFO...
2
1089
by: Craig Keightley | last post by:
I have 3 drop down menus: brandID (values 1 - n) dualProcessor (Y, N) dual Core (Y,N) And the following table of values: Name Brand dualProcessor DualCore item1 1 Y Y
2
1993
by: Richard Cornford | last post by:
Anyone who has taken a look at the online FAQ today may have noticed that I have updated it. The majority of the changes are the updating of broken links and the implementation of that extensive suggestions for re-wording provided by Michael Winter. Other changes are listed below. Fore those interested, a zipped snapshot of the entire FAQ and notes, as it now is, is available at:- <URL:...
1
1406
by: dibblm | last post by:
I have a text file being created and need the values from the array that gets created to populate my text file. I am new and not very good. Kinda borrowing bits and pieces from here and there, so if my code is a mess (Which it is ) don't be alarmed. Myfile is the array that gets populated and I need it's results returned to the text file . Below is the code... Dim oFile As System.IO.File
8
5370
by: =?Utf-8?B?R3JlZyBMYXJzZW4=?= | last post by:
I'm trying to figure out how to modify a panel (panel1) from a backgroundworker thread. But can't get the panel to show the new controls added by the backgroundwork task. Here is my code. In this code there is a panel panel1, that I populate with a lable in the foreground. Then when I click on "button1" a backgroundworker thread in async mode is started. When the backgoundworker thread completes the thread returns a panel to populate...
5
2082
by: Desmond Shek | last post by:
Hi, I am new to this DB caper and am really struggling. I have a form called customers with a subform called property search. The subform (a continuous form) allows users to search the table 'property' using multiple criteria (postcode, house num etc) and returns a set of matching results. I want to be able automatically populate the a field called LPI (a unquie property ref which is the PK of table property and FK of table customers)...
2
2638
by: sirdavethebrave | last post by:
Hi guys - I have written a form, and a stored procedure to update the said form. It really is as simple as that. A user can go into the form, update some fields and hit the update button to update the information which is stored in a SQL database. In testing we noticed that the form was updating correctly but the update mechanism was also updating the first record of the table in the sql database every time. No error messages are on...
0
10356
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10161
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10098
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9958
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7506
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5390
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4058
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3662
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2890
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.