473,773 Members | 2,286 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do I stop AutoComplete from going to a new page when pressing enter?

75 New Member
Hello,

I have a two part question. My first question is what I asked in the subject of the question: How can I stop AutoComplete from going to a new page when selecting the value from my database. The reason I need to stop it from going to the next page is because I want the user to select a player value and a statistics value from a drop down menu.

The second part of my question includes how I can pass the id variable from the drop down and include it into the url.

At this point in my code, I can successfully pass the player ID variable into the URL, but I dont know how to pass the statistics variable ID from the drop down into the URL.

Ultimately, I would like the user to click a 'submit' or 'go' button to get to the next page after selecting the player and statistic they want to view.

The URL string should look like(for example): FrontEndBeta.ph p?p=1&s=1

Here is the code that I have so far for your reference. Any help highly grateful for: http://pastie.org/1157229
Sep 14 '10 #1
2 1211
Canabeez
126 New Member
I believe it's better to keep the question in the same post, here.
Sep 14 '10 #2
Plater
7,872 Recognized Expert Expert
I believe you can insert a "return false;" into the onsubmit event of your various textboxes (input type="text")
Sep 14 '10 #3

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

Similar topics

4
12731
by: Jerry | last post by:
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.
1
1538
by: George Homorozeanu | last post by:
Hi, I have an ASP.Net Page with some control on it (buttons, textboxes, calender, etc). When I'm changing the text in the textbox I want to run some code and change the date of the calendar. The problem is that when I press enter, the code for the button event is called. It looks like the button is the default action for pressing enter somewhere on the page. How can I change that? The button is an asp button. Thanks,
4
7630
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...
2
2958
by: cvijaykrishna | last post by:
i have a windows based application which contains textboxes when i press enter in one textbox then focus should go to next textbox i dont want to hard code like ex: textbox3.focus but i want to control it using the tab index (retriving it from present control then using the tab index guiding the focus to the next control ) could u please suggest me a solution preferbly if u give me sample code with regards and thanks vijay
1
1930
by: mazdotnet | last post by:
Hi, We have a internal site using Master Pages that has a header (web user control) on top of every page with a search feature. This search is basically a textbox and a search button beside it which works when you click on the submit button. Is it possible to change it so that it's automatically submitted when you click enter in the textbox? Thanks M.
3
2961
by: pveena | last post by:
Hi, I am new to php. I have two pages.one is login page other is details page. When user enter detaisl page directly in URL i want to redirect to login page then login success it should go to detaisl page. Could any one help me out. I tried using a variable declaring , assigning in login page. checking the value in details page. but i am getting error as variable not defined if open directly details page.
4
1500
erwinnnn
by: erwinnnn | last post by:
I'm a total noob on c#, i just started 2 weeks ago I'm making a calculator Its very simple.. When i press the enter key, button1 must be clicked It works with all the other keys, but with the enter key it DOESN'T WORK :( I've searched on google for hours and i tried almost everything, but nothing works.. So please, help me Thx
1
8823
by: RyanT | last post by:
Access 2000 Windows XP I have a small form with two text boxes: - User ID - Password The form also has two command buttons: - Login - Cancel
2
5134
Soniad
by: Soniad | last post by:
Hello, I am having ASP page, in this there in one textbox to enter emailid ,I have done javascript validation for this i.e. if email id is not valid then alert message is shown and page will not be submitted. all this is working properly on "OnClick" event . but when the function is called "onkeypress" then alert message is shown if email id is invalid,but the page gets submitted after clicking on OK of alert message or entering on...
0
9454
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,...
0
10106
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10039
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
9914
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
8937
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
6717
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
5484
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3610
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2852
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.