Wrox Programmer Forums
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 28th, 2004, 08:54 AM
Authorized User
 
Join Date: Oct 2003
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
Default open menu selection

i have a main menu with four buttons. Each button will open different page. how am i going to code the buttons to direct to the page?

for example, if employee button is clicked go to employee form
and if customer button is clicked, go to customer form.

 
Old January 28th, 2004, 09:06 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

What kind of buttons are you using? Images? HTML buttons?

When you're using images simply wrap the image in an ordinary <a> tag:

<a href="Customer.html"><img src="Customer.gif" /></a>

If you're using HTML buttons, you'll need some JavaScript.

Are your pages using frames?

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old January 28th, 2004, 06:42 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

And in case you ARE using HTML buttons...

<input type=button onclick="window.location='next_page.htm'" value=whatever>

-OR-

<button onclick="window.location='next_page.htm'">whatever </button>

HTH

Snib

 
Old January 29th, 2004, 04:30 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Right, but I figured he was aware of that, after this discussion:

http://p2p.wrox.com/topic.asp?TOPIC_ID=7305

:)

Imar




---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old January 29th, 2004, 06:57 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Sorry, Imar, I didn't see that one.

:)

Snib


----------
---Snib---
----------
 
Old February 1st, 2004, 02:30 AM
Authorized User
 
Join Date: Oct 2003
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thx for you help guys.






Similar Threads
Thread Thread Starter Forum Replies Last Post
How to open IIS console from "Start-Run" menu jayaraj123 ASP.NET 2.0 Professional 16 June 27th, 2012 08:43 AM
Right click to Open a menu peace2007 Ajax 2 November 5th, 2007 02:25 AM
Menu Selection Too Fast bokiemon BOOK: Professional XNA Game Programming: For Xbox 360 and Windows ISBN: 978-0-470-12677-6 0 August 26th, 2007 04:32 AM
new entry for drop-down menu and open form avigiano Access 4 September 27th, 2006 07:44 AM
Menu / Dropdown List Selection Reduction larry101 Javascript How-To 2 September 20th, 2004 03:43 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.