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

Home Posts Topics Members FAQ

help required to populate search results

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
item2 1 Y N
item3 2 N N
item4 2 N Y

I want to be able to create a list of results on my web page hat checks
against a table of processors.
As a selection is made from each option, the result list will reduce. How
can i acheive this using JavaScipt?

Any Help would be grateful
Craig
Jul 23 '05 #1
2 1089

Yes, the simple way is using an array for your option SETS and loading
them from the .value property of the selecteIndex, I did something akin to
that a bit ago, pasted at http://nopaste.php-q.net/142970 .

Danny

On Thu, 23 Jun 2005 08:16:03 -0700, Craig Keightley <do**@spam.me > wrote:
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
item2 1 Y N
item3 2 N N
item4 2 N Y

I want to be able to create a list of results on my web page hat checks
against a table of processors.
As a selection is made from each option, the result list will reduce. How
can i acheive this using JavaScipt?

Any Help would be grateful
Craig


--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Jul 23 '05 #2
I've had a look and it seems the route i need to go but i'm a little lost
i need to show items based on a similar result to a sql query (where
brandID =1 AND dualProcessor= Y AND dualCOre = N)

My progress can be seen here if any one wants to give input:
http://rackage.sitedesign.net/dedicatedservers.php

select custom build from the first drop down list, the idea is that there
will be a list of options of cpu available after the third cpu item is
selected

Craig
"Danny" <da*******@blue bottle.com> wrote in message
news:1119561031 .34f011929877bf 8bb789bc3a31384 194@teranews...

Yes, the simple way is using an array for your option SETS and loading
them from the .value property of the selecteIndex, I did something akin to
that a bit ago, pasted at http://nopaste.php-q.net/142970 .

Danny

On Thu, 23 Jun 2005 08:16:03 -0700, Craig Keightley <do**@spam.me > wrote:
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
item2 1 Y N
item3 2 N N
item4 2 N Y

I want to be able to create a list of results on my web page hat checks
against a table of processors.
As a selection is made from each option, the result list will reduce. How
can i acheive this using JavaScipt?

Any Help would be grateful
Craig


--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

Jul 23 '05 #3

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

Similar topics

10
2736
by: Craig Keightley | last post by:
I have the following array: function showCPUs(){ //name brandID dualCore dualProcessor var cpuItem=; var cpuItem=; var cpuItem=; var cpuItem=; var cpuItem=; var cpuItem=; var cpuItem=;
2
2001
by: Mette Kulmbach | last post by:
I'm a danish librarian who would like to get my new homesite validated. I have tried to get it validatet in the w3c but I get the same message all the time. This is the massage. " Below are the results of attempting to parse this document with an SGML parser.
26
2044
by: Stav | last post by:
Hi there. I'm working on an application that currently uses DAO to connect to an Access 97 database. The database is created by and used exclusively by the product to store search results and statistics during the product's operation. The number of searches stored in one database vary a lot (one user might only do 100 whilst another might do 1 million). Once the search results have been stored, the product provides a
0
1600
by: muralidharan | last post by:
WebForm1.aspx Code: <%@ Register TagPrefix="ComponentArt" Namespace="ComponentArt.Web.UI" Assembly="ComponentArt.Web.UI" %> <ComponentArt:TreeView id="TreeView1" Height="520" AutoPostBackOnNodeMove="false" DragAndDropEnabled="true" NodeEditingEnabled="False" KeyboardEnabled="true" CssClass="TreeView" NodeCssClass="TreeNode" SelectedNodeCssClass="SelectedTreeNode" HoverNodeCssClass="HoverTreeNode" NodeEditCssClass="NodeEdit"
4
2431
by: Tarun Mistry | last post by:
Hi all, I have posted this in both the c# and asp.net groups as it applies to both (apologies if it breaks some group rules). I am making a web app in asp.net using c#. This is the first fully OO application I will be making, also my first .NET application, so im looking for any help and guidance. Ok, my problems are todo with object and database abstraction, what should i do.
3
2215
by: Sheau Wei | last post by:
This is the search engine code that i create, but it was error and didnt come out the result. Cn u help me to check what wrong with my code? Thanks <Table cellspacing=1 cellPadding=1 align=center> <td colspan=4> <h2 align=center>Bomba inventory searching system</h2> <tr> <td> <h4 Balai Bomba Inventory Searching System</H4> <form name="search" method="post" action="<?=$PHP_SELF?>">
23
2806
by: casper christensen | last post by:
Hi I run a directory, where programs are listed based on the number of clicks they have recieved. The program with most clicks are placed on top and so on. Now I would like people to be apple to place a link on there site so people can vote for their program, "ad a click". eg someone clicks the link on some page and it counts +1 click on my page. if some one clicks the link below it will count a click on my page.
0
5576
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted ******************************************************** For this teeny job, please refer to: http://feeds.reddit.com/feed/8fu/?o=25
0
2139
by: LiamLiamLiam | last post by:
G'day all. I having a problem with my formview. I'll ty to explain my situation as best as i can. I have a page with a search field at the top which is just a simple asp:textbox. Below that i have a gridview which displays the results of the search. if no search is entered, then the gridview shows all records. Below the gridview i have a formview for inserting and editing the records. when a user clicks on one of the records in the...
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...
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...
0
8986
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
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
6743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
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...
0
5523
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
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

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.