473,698 Members | 2,888 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

when i create single text box on page and press enter the page refresh ?

5 New Member
hi everyone

when i create single text box on page and press enter the page refresh how can i stop to refresh the page....

dhiraj
Nov 24 '06 #1
11 8634
dswethar
65 New Member
Hi,

What is the value of your ACTION in the form tag?
Nov 24 '06 #2
ronverdonk
4,258 Recognized Expert Specialist
Make a JavaScript routine that captures (onkeypress) the ENTER keystroke and ignores it.

Ronald :cool:
Nov 26 '06 #3
AricC
1,892 Recognized Expert Top Contributor
You are probably submitting your form if you have <input type="submit" value="submit" /> change it to <input type="button" ....
Nov 28 '06 #4
dhirajpriya
5 New Member
Hi,

What is the value of your ACTION in the form tag?
i send u a simple code when u run this and press enter in the text box it refresh the page,i want to stop this refresh action.

<HTML>
<HEAD>

</HEAD>

<BODY>
<form name="searching ">
<input type="text" id="abc" >
</form>
</BODY>
</HTML>
Dec 5 '06 #5
dhirajpriya
5 New Member
i send u a simple code when u run this and press enter in the text box it refresh the page,i want to stop this refresh action.

<HTML>
<HEAD>

</HEAD>

<BODY>
<form name="searching ">
<input type="text" id="abc" >
</form>
</BODY>
</HTML>
Dec 5 '06 #6
dhirajpriya
5 New Member
Hi,

What is the value of your ACTION in the form tag?
i send u a simple code when u run this and press enter in the text box it refresh the page,i want to stop this refresh action.

File Name :test.jsp
inside test.jsp
<HTML>
<HEAD>

</HEAD>

<BODY>
<form name="searching ">
<input type="text" id="abc" >
</form>
</BODY>
</HTML>
Run this file on Apache Tomcat (web server)
Dec 5 '06 #7
AricC
1,892 Recognized Expert Top Contributor
Whats with the triple posting?
Dec 5 '06 #8
dhirajpriya
5 New Member
Whats with the triple posting?
sorry for triple posting my page generate error due to that it .......i think that it cannot posted so i submit three times...
Dec 5 '06 #9
AricC
1,892 Recognized Expert Top Contributor
I don't see anything in your code that would make it behave that way????
Dec 5 '06 #10

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

Similar topics

4
1789
by: Nicolas Verhaeghe | last post by:
I have designed an application which uses the Crystal Reports 8.5 ActiveX to show a report as a PDF. The report is compiled from a SQL database populated through web forms programmed in ASP. When the Active X is lauched, a PDF is pushed as a stream to Internet Explorer, which calls the Acrobat Reader plugin to view it. When some of my users click on the Back button to get out of the PDF report,
6
3739
by: guoqi zheng | last post by:
In a regular html form, when user press "enter" key, the form will be submitted. However, in ASP.NET web form, a form will only be submitted (post back) when a special button is clicked. Many user get used to click "enter" key to submit a form. How can I use "enter" key to submit/postback in ASP.NET. Thank, Guoqi Zheng
11
7754
by: Joe | last post by:
Hello All, I have an ASP.NET page with one Textbox (SearchTextBox) and one ImageButton (SearchButton) server controls. The user can type search text in SearchTextBox and click SearchButton and the web server performs a database query and displays the results. All of this works fine. I want the user to be able to press the Enter key while the cursor is still in SearchTextBox and have the SearchButton.Click event fire (thus performing...
5
1894
by: Mr Newbie | last post by:
OK, I have a fairly simple setup where I have an Index of records which are displayed using a datagrid on a page. When you click the link associated with a Row (ArticleID) , this ID is passed to a page which creates an new Article or Retreive an existing one depending if there is an ArticleID passed to it. So on my index page the user will be directed to the article page and will either pick up an existing one or have a new one created....
0
2474
by: Mike P | last post by:
I am trying to edit a gridview while using paging, but whenever I try to edit a row on a page other than page 1, I get an error. Here is my gridview and my code : <asp:GridView ID="GridView1" runat="server" DataSourceID="SqlDataSource1" DataKeyNames="UserKey" AllowSorting="True" HeaderStyle-Height="24px" AutoGenerateColumns="false" SkinID="Grey3" EditRowStyle-CssClass="dgedit"
4
7622
by: nkoier | last post by:
Hi, I've been going crazy trying to figure out what's wrong with our Asp.Net 2.0 intranet site. At the very top of our main page I provide a TextBox and a Button for submitting Google searches. Recently somebody pointed out to me that you can't just press ENTER anymore after typing in the TextBox but that you HAVE to click on the submit Button WITH THE MOUSE for it to work. After some initial troubleshooting I discovered that it's only...
9
4137
by: Navaneet | last post by:
Hi, Can anyone tell me how to prevent some particular POST DATA when refresh button (F5) clicked on server side(vb.net). Thanks Kumar N
1
7014
by: daonho | last post by:
I tried to use javascript to trigger up the button click function when user press enter key from the textbox. This function work fine with a single button click such has login page. However, if the page has multiple button such login page with a search function somewhere around, then it's not respond properly. I have attached a brief example of two text boxes and two button. When ever a key is press on textbox one, I want to trigger...
10
6971
by: happyse27 | last post by:
Hi All, I got this apache errors(see section A1 and A2 below) when I used a html(see section b below) to activate acctman.pl(see section c below). Section D below is part of the configuration of section c. Not sure where went wrong as the web page displayed internal server error. Also, what is the error 543? and error 2114. Where to find the list of errors in websites as it is not the standard apache error. I could not find...
0
8683
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8611
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8904
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
8876
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
7741
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...
0
5867
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
4372
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
4624
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2007
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.