Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > File Upload - Change key code for ENTER key on Browse Button

Reply
Thread Tools

File Upload - Change key code for ENTER key on Browse Button

 
 
bsm
Guest
Posts: n/a
 
      05-10-2007
Hi,

I have File Upload control in my form. When I click Enter key, it
triggers "Submit" button event. So I wrote onkeydown function as
follows:

if (window.event.keycode == 13)
{
return false;
}.

hence "Submit" button didn't fire.

But I want to assign Spacebar keycode as follows (so that it will open
file upload window)

if (window.event.keycode == 13) window.event.keycode=32. But this is
not working.

Can anyone plz help me.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
change the text of browse button in file upload control lale.kat@gmail.com Javascript 8 12-12-2007 07:30 AM
Assigning value to Browse button without using browse button in HTML balakrishnan.dinesh@gmail.com Javascript 0 10-12-2007 06:45 AM
File Upload - Change key code for ENTER key on Browse Button bsm Javascript 3 05-29-2007 06:10 AM
Enter Key H*ll, control enter key submit button BrianDH ASP .Net Web Controls 3 01-12-2005 08:29 PM
trigger HTML button by enter ENTER key Matt Javascript 1 03-06-2004 07:01 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57