473,624 Members | 2,612 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Enter/Return Key Function

tyv
Hi,

I encountered a bug on a website that I am working on. The enter/
return key function works in certain parts of the website and doesn't
work in other parts. I went through all the scripts but I'm not sure
why the function does not work for this part. Does anyone have any
suggestions/scripts that would work in this case?

I am working with javascript, ASP files and html.

Thanks for any help you can offer.

Tyv
Feb 29 '08 #1
4 1930
tyv <vy*****@gmail. comwrites:
Hi,

I encountered a bug on a website that I am working on. The enter/
return key function works in certain parts of the website and doesn't
work in other parts.
What enter/return key functions are you talking about? All default key
bindings (especially the enter/return key bindings) are browser-
specific and usually dependent on whatever element (if any) has focus at
the time.
I went through all the scripts but I'm not sure
why the function does not work for this part. Does anyone have any
suggestions/scripts that would work in this case?
It's probably an error on line 12 of the function.
--
Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/
Feb 29 '08 #2
On Feb 28, 4:00 pm, tyv <vyts...@gmail. comwrote:
Hi,

I encountered a bug on a website that I am working on. The enter/
return key function works in certain parts of the website and doesn't
work in other parts. I went through all the scripts but I'm not sure
why the function does not work for this part. Does anyone have any
suggestions/scripts that would work in this case?

I am working with javascript, ASP files and html.

Thanks for any help you can offer.

Tyv
There's probably a keyup event handler on the elements that don't work
with some code to prevent default browser behaviour.
Feb 29 '08 #3
Joost Diepenmaat wrote on 29 feb 2008 in comp.lang.javas cript:
tyv <vy*****@gmail. comwrites:
>Hi,

I encountered a bug on a website that I am working on. The enter/
return key function works in certain parts of the website and doesn't
work in other parts.

What enter/return key functions are you talking about? All default key
bindings (especially the enter/return key bindings) are browser-
specific and usually dependent on whatever element (if any) has focus at
the time.
> I went through all the scripts but I'm not sure
why the function does not work for this part. Does anyone have any
suggestions/scripts that would work in this case?

It's probably an error on line 12 of the function.
.... and next time use Coke zero when inundating your keyboard.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Feb 29 '08 #4
On 28 feb, 18:00, tyv <vyts...@gmail. comwrote:
Hi,

I encountered a bug on a website that I am working on. The enter/
return key function works in certain parts of the website and doesn't
work in other parts. I went through all the scripts but I'm not sure
why the function does not work for this part. Does anyone have any
suggestions/scripts that would work in this case?

I am working with javascript, ASP files and html.

Thanks for any help you can offer.

Tyv
probably a flash movie, capturing the event
Feb 29 '08 #5

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

Similar topics

3
4181
by: Ali Eghtebas | last post by:
Hi, I have 3 questions regarding the code below: 1) Why can't I trap the KEYDOWN while I can trap KEYUP? 2) Is it correct that I use Return True within the IF-Statement? (I've already read the documentation but it is rather hard to understand so please don't refer to it :) 3) Many examples in the newsgroups use Return MyBase.ProcessKeyPreview(m) as the last code line while I have used Return MyBase.ProcessKeyEventArgs(m)
7
20365
by: jerrygarciuh | last post by:
Hello, I have been playing with various Googled solutions for capturing the <Enter> key to suppress form submission. My first question is whether anyone has a script that works in all common browsers? The script bellow is IE only. It fails FF 1.0 and NN 7. Also, if I can trap the keypress I would like to use it to tab to the next tabindex.
3
4215
by: Philip Townsend | last post by:
I have an aspx page that contains 2 user controls, each containing a seperate textbox and button. I would like to specify that one of the buttons recieve focus when the page loads. Also, I would like that same button to fire its event when the user presses enter. Can anybody help with this? *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!
5
1926
by: Girish | last post by:
I have TWO submit buttons of type IMAGE on my asp form. This renders as <input type="image">. I need to be able to eble the ENTER button for both buttons. Yes, I know that for the input type image, the submit happens automatically to the server. Heres my problem: I have two event handlers for both these buttons as stated below: BUTTON 1:
2
1398
by: chuckdfoster | last post by:
I have a form that with a datagrid with textboxes and a submit button. When the user is in a textbox and they hit enter to try to go to a different line, instead they submit the form before they are done entering their data. I know this is how it is supposed to work, but is there anyway to disable the enter key from hitting the submit button? Thanks in advance for any advice! -- Chuck Foster
3
1829
by: markaelkins | last post by:
Hi. I am trying to enter a variable in the treenodesrc of a treenode. I am basically trying to send an ID variable into sql to return different records. I've searched everywhere and cannot find the answer. I'd appreciate and help. Thanks. What I'm doing is creating a treeview with the structure as follows (this is the expanded view): - Item Status - Item Status Details
4
6812
by: ian | last post by:
Hi, I am currently using a Javascript function to dissallow the enter key on my ASP.NET (2.0) web page, as follows: function fnTrapKP(){ if (document.all) { if (event.keyCode == 13) {
3
4488
by: Bob Sanderson | last post by:
I have a PHP web page which uses a HTML form. I would like to enter dates into the date fields using a JavaScript calendar, similar to the way phpMyAdmin does. Can anyone recommend a JavaScript that will do this? Also, how can I add a button to a form to enter a NULL. Thanks in advance.
10
4168
by: art | last post by:
Hi, I have a form with an image button like this: <td><input type='text' name='search' id='search' value='' size=30><BR><span class=body><center>Enter Email Address</span><BR></ td> <td><a href='#'><img src='./images/search.gif' border=0 onclick='return getCustomer(search.email.value);'></a><BR><BR></td>
8
5418
by: alamodgal | last post by:
hiiiiiiiiiii everybody, pls solve my problem if u can? Actualy what happens in my site when i press enter key it will show some secured information related to my site.So for that i have use this code to disable enter key: <script type="text/javascript" language="javascript"> /*-----script to disable F5 key begin-----*/ var version = navigator.appVersion; function...
0
8179
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
8341
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
8490
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
7174
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...
1
6112
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4084
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...
1
2612
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1796
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1489
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.