Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have a page with 2 buttons, "Find" and "Refresh"...

 

on my laptop, when I hit "enter", the "Find" button is activated...

 

On my manager's machine, when he hits "enter", nothing happens,,,

 

Not sure how to debug this..is it his browser version??

Posted

I'm not sure but I don't think it's his browser version, although I've been known to be wrong MANY times before. :) Perhaps if you do some Javascript to handle the issue, it will no longer be a question of the browser version.

.................................................................................

<script language="javascript">

var control = document.getElementById(<control name>);

if( control != null ){ control.focus(); }

</script>

.................................................................................

 

Perhaps using this Javascript when the page loads will automatically set focus on that Find button, and despite the browser version, pressing the Enter key will register a button click. Hope this helps!

3,450,897,223 posts away from crazy...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...