473,386 Members | 1,775 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Button Modal

Joe
I have 5 submit buttons and various text boxes on a web page.

My problem is - I have for example a text box that says:
City:______ <btnLookupCity>

But when the user types in their city and hits <RETURN>, it pushes another
button on the page instead of the button right next to the text box.

I have messed with tabindex and other things and as far as I can tell - by
hitting return in any text box - it auto pushes the FIRST button placed on
the page.

How can I change this without re-laying out my page?
Sep 15 '05 #1
1 1128
use javascript to catch the keypress event and fire the button click when
the user presses enter. There are several "Default Button" controls out
there, just search google.

"Joe" <bi**@msn.com> wrote in message
news:u4**************@TK2MSFTNGP15.phx.gbl...
I have 5 submit buttons and various text boxes on a web page.

My problem is - I have for example a text box that says:
City:______ <btnLookupCity>

But when the user types in their city and hits <RETURN>, it pushes another
button on the page instead of the button right next to the text box.

I have messed with tabindex and other things and as far as I can tell - by
hitting return in any text box - it auto pushes the FIRST button placed on
the page.

How can I change this without re-laying out my page?

Sep 18 '05 #2

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

Similar topics

14
by: tshad | last post by:
I posted this on the asp.net group, also. I wasn't sure whether this was an asp.net problem or a javascript problem. I have a page that was originally created from a program I found on the net...
8
by: Galahad | last post by:
Here's the question: I have a form w/ TextBox controls and a Search Button control. Once the user clicks the Search Button, they get a Modal dialog w/ a datagrid that contains their search...
2
by: Samy | last post by:
Hi There, I have a user control with buttons on it which I use on a aspx page (parent page). On a button click, a modal dialog(aspx page) opens up and the user enters some info in the modal dialog...
10
by: Woody Splawn | last post by:
How do I fix it so that when the user preses Alt-X a certain button on the form gets fired? Also, How do I fix it so that when the esc key is pressed, the form is closed?
15
by: Oleg Subachev | last post by:
I need to programmatically invoke from other class Click event of the Button on my Form. Button.OnClick method is protected, not public. How to perform this ? Oleg Subachev
11
by: cindy | last post by:
I have a form, has javascript registered so a modal pops up. Button click will close form. Now I need to do an update with modal form data before it closes. I can put a second button and register...
2
by: John Salerno | last post by:
I'm not exactly sure how to call the method ShowModal(). This is what I have so far: -------------- import wx class InputForm(wx.Frame):
17
by: Eric | last post by:
I'm new to JavaScript and I wrote this code to play with. Oddly, if I enter text in a box and then press the button, I only get the onChange event for the text box and not the button's onclick...
0
by: arcsecond | last post by:
I feel like an idiot. I've been struggling with this for 4 days. I can make a window but I can't seem to close them. I think I've narrowed down the problem being with my button event bindings. They...
2
by: ton | last post by:
Hi, I have a website with 2 forms. Form 1 is opened, a button opens a second form as a modal form: window.showModalDialog('Filter.aspx?Filter=14',...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...

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.