473,385 Members | 1,356 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,385 software developers and data experts.

input=text fires Submit when pressing Enter

Hello

I have some textboxes (input type=Text) in a Form.

In some Forms if I Press Enter while I am in the Textbox It causes a Submit.
The input type is text not submit.

It's obsure that the effect is only on some webform's not in all.
How can I stop the submit ?
Nov 17 '05 #1
4 12704
Hi

I guess, when you press enter form submit happens when
there is one textbox in the form.

Ravikanth

-----Original Message-----
Hello

I have some textboxes (input type=Text) in a Form.

In some Forms if I Press Enter while I am in the Textbox It causes a Submit.The input type is text not submit.

It's obsure that the effect is only on some webform's not in all.

How can I stop the submit ?
.

Nov 17 '05 #2
Hmm, that's not the case....... But thanx anyway....

I have a textbox type=text
a Password Textbox type=password
and a Submit Button on the Form.

The WebForm was created with the FormDesigner from Visual Studio
using the WebControls.
I found that a textbox can have an Attribute "nosubmit" but it doesn't work
not......

<input type=text nosubmit .........>

very strange...

"Ravikanth[MVP]" <dv*********@hotmail.com> schrieb im Newsbeitrag
news:06****************************@phx.gbl...
Hi

I guess, when you press enter form submit happens when
there is one textbox in the form.

Ravikanth

-----Original Message-----
Hello

I have some textboxes (input type=Text) in a Form.

In some Forms if I Press Enter while I am in the Textbox

It causes a Submit.
The input type is text not submit.

It's obsure that the effect is only on some webform's

not in all.


How can I stop the submit ?
.

Nov 17 '05 #3
Check out this article, this will explain why it is behaving like this
http://www.allasp.net/enterkey.aspx

--
Saravana
Microsoft India Community Star,
MCAD,SE,SD,DBA.
"Jerry" <Je***@Jerry.com> wrote in message
news:bf************@news.t-online.com...
Hello

I have some textboxes (input type=Text) in a Form.

In some Forms if I Press Enter while I am in the Textbox It causes a Submit. The input type is text not submit.

It's obsure that the effect is only on some webform's not in all.
How can I stop the submit ?

Nov 17 '05 #4
Actually, my understanding is that this depends on whether the number of
textboxes is odd or even.

See http://www.allasp.net/enterkey.aspx, which may be of help.
--
John Saunders
Internet Engineer
jo***********@surfcontrol.com
"Ravikanth[MVP]" <dv*********@hotmail.com> wrote in message
news:06****************************@phx.gbl...
Hi

I guess, when you press enter form submit happens when
there is one textbox in the form.

Ravikanth

-----Original Message-----
Hello

I have some textboxes (input type=Text) in a Form.

In some Forms if I Press Enter while I am in the Textbox

It causes a Submit.
The input type is text not submit.

It's obsure that the effect is only on some webform's

not in all.


How can I stop the submit ?
.

Nov 17 '05 #5

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

Similar topics

2
by: Paul M | last post by:
Hi there, i hope someone can help me out here.. I have a input screen where i want the user to enter text in 2 different languages, english and macedonian. How is it possible to make the...
6
by: Chiara Bassini | last post by:
Ciao a tutti, qualcuno mi sa dire come faccio ad impostare il padding su un input submit con explore 6? Se faccio: <input type="submit" name="prova" value="Prova d'impostazione padding"...
3
by: acecraig100 | last post by:
I am fairly new to Javascript. I have a form that users fill out to enter an animal to exhibit at a fair. Because we have no way of knowing, how many animals a user may enter, I created a table...
3
by: kvnsmnsn | last post by:
I've written the following Javascript file that includes an input text field and an output text field, the latter of which is initialized to zero. Each time the user enters a number in the input...
2
by: amit | last post by:
Hello group, I'm having a problem with an HTML element performance. When I use focus() method to jump to an input text. I realize the cursor is on waiting on the 2nd column waiting for user to...
2
by: esteban | last post by:
I gonna try to make me understand but my English is very bad and I don't know how is the English name that I want. When I write some text in a input text and I submit it the browser (I think) save...
3
by: esteban | last post by:
When I write some text in a input text and I submit it the browser (I think) save the text and will show it in a list the next time you write the same text in the same input text, in the same page....
2
by: Jeterdawg | last post by:
Hello, extreme newbie here... I am trying to create a drop-down menu (select input type), and based on which of the options the user selects (Yes or No), an input text box appears for the user to...
2
idsanjeev
by: idsanjeev | last post by:
hello how can retrive the input text after submit button pressed and report a error message. i wants to post topic and if any error message is occured then retrive the inputed text but it forget its...
1
by: tsridhar | last post by:
HI, I have one concern with me. My requirement is like this, If I enter a search code in in input text it has to navigate to Edit page, for single search page it works fine, But if it having...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...

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.