473,503 Members | 1,727 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using links as tabs

82 New Member
Hi,

I want to use the following model for sending a queary.

[HTML]<html>
<head>
<title></title>
</head>
<body>
Select1 | Select 2 | Select 3| <Br><br>

<b>Search:</b> <input type="text" name="" value=""> <input type="button" value="Search">

<Br><Br>Select4 | Select 5| Select 6|

</body>
</html>
[/HTML]

when I press a single link "Select 1-3" from the upper selection and select a second link from the buttom (Select 4-6) I set two parameters: select_up and select_down. when I press the search button I build the queary. My question is: How can I use a "link like" selection and set the parameters without using buttons or tabs as selections mechanisim.
Any Ideas
Oct 22 '07 #1
5 1208
acoder
16,027 Recognized Expert Moderator MVP
You could use hidden fields and set the values when a link is clicked.
Oct 22 '07 #2
raknin
82 New Member
Acoder

Can you give an example how can I use hidden field with a link and set a value

Thanks
Oct 22 '07 #3
acoder
16,027 Recognized Expert Moderator MVP
If you have a hidden field:
[HTML]<input type="hidden" id="select_up" name="select_up" value="false">[/HTML] you could set this value when clicking a link, e.g.:
[HTML]<a href="#" onclick="document.getElementById('select_up').valu e='1'; return false;">Select 1</a>[/HTML]
Oct 22 '07 #4
raknin
82 New Member
Acoder,

Thanks alot.
Oct 22 '07 #5
acoder
16,027 Recognized Expert Moderator MVP
No problem.

Just a question: have you thought about the consequences? What if someone changes his mind and how can one tell what options have been chosen?
Oct 22 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

7
10541
by: Chris | last post by:
I'm using eight links listed horizontally as a menu on my site. I'm using font-variant:small-caps and they are padded so that they mimic buttons. My gripe is with the way IE handles the focus...
0
1195
by: ChadDiesel | last post by:
I have a table of parts that I would like to add a field for drawings. These drawings are image files that are on different tabs in an Excel Workbook--1 image/drawing per worksheet/tab. Most of...
1
1023
by: Rob | last post by:
Hi, I am new to this, but starting to get a handle on datagrids, repeaters, etc. Now I want to start formatting my pages so they look nice. My background is with database programming, not web...
44
9383
by: Viken Karaguesian | last post by:
Hello all, On occasion I want to open hyperlinks (images, etc.) in a new window. In the past, I've used target="_blank" to open the link in a new window. However, using the "target" attribute...
1
6835
by: shalini jain | last post by:
Hi, I want to know how can we do pagination using XSL. There are number of tutorials available on pagination using PHP but nothing with XSL. i am really stuck with my code. Below is the code that...
0
1028
by: Gabriel Genellina | last post by:
QOTW: "The first time you see twenty tons of machinery move unexpectedly because you inadvertently changed one bit in memory, you become very conservative about your software platform." - Walt...
0
1367
by: Bill Stock | last post by:
I have a prototype that has a main form with multiple tabs that are dynamically loaded based on the process chosen from a menu. The main form is linked to the projects table and the subforms are...
10
7372
rizwan6feb
by: rizwan6feb | last post by:
Hi I have created a tabbed interface using jQuery using the code below <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">...
0
7203
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7281
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,...
0
7334
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...
1
6993
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...
0
5579
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,...
0
4675
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...
0
3168
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...
0
3156
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
383
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...

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.