473,385 Members | 1,693 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.

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 1917
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.javascript:
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
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...
7
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...
3
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...
5
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...
2
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...
3
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...
4
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
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...
10
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...
8
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...
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
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.