Cor,
| If needed you can add it in VBNet, using the addattributes or
| registratejavascript attributes. But you will probably not find good
| Javascript, The reason is that you try to change the standard behaviour of
| all the mozila compatible browser UI, something we are so glad of that it
| exist.
I agree. Mozila, vs IE 6-, IE 7+, vs Opera, vs whatever may mean he will
need browser specific Javascript. Or worse specific browsers may just not
support it.
He should be able use Request.Browser to find out which browser, what
version of browser, what version of DOM, what version of Javascript... the
client is using:
http://msdn2.microsoft.com/en-us/library/system.web.httprequest.browser.aspx
Rather then avoid a feature I try to ensure that it "degrades gracefully".
For example I use Request.Browser on my web site to decide if copying on my
samples pages is supported: IE gets the copy button, Firefox doesn't. As the
copy button uses IE specific functionality. (If you have Firefox et al copy
to clipboard java script I would love to use it).
Although I agree, I might avoid his site if his web select control didn't
behave as other web select controls...
Reading his message just now, wont making the button the "submit" button
cause it to submit the page? Without needing to add code. I may need to
review this closer tonight.
--
Hope this helps
Jay B. Harlow [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley -
http://www.tsbradley.net
| Jeff,
|
| Not despite but in addition of Jay's answer, I think you will hardly find
| any JavaScript for this.
|
| If needed you can add it in VBNet, using the addattributes or
| registratejavascript attributes. But you will probably not find good
| Javascript, The reason is that you try to change the standard behaviour of
| all the mozila compatible browser UI, something we are so glad of that it
| exist.
|
| This means that all or at least most of your current website users will
hate
| you shorter or later and try to avoid your website.
|
| Just my thougth reading Jays message and thinking why I did not give an
| answer on your question.
|
| Cor
|
|
| "Jeff" <
[email protected]> schreef in bericht
| | >
| > ...still new at this. ...hopefully a simple question
| >
| > Is there some practical way of altering the function of a keypress in
| > Visual Web.net 2005 using VB without causing a postback on
| > each keypress? For example: A have a listbox with a number of
selections.
| > The up and down keyboard keys change the indicated listbox
| > selection and by default the <tab> key takes the focus away from the
| > listbox and onto a button that will submit the selection. I'm
| > attempting to also have the <enter> key take the focus away from the
| > listbox and onto the button, so that two pushes on the <enter>
| > key will submit the listbox selection (a drop down list will act in this
| > manner by default).
| >
| > Is this possible?
| >
| > Thanks
| >
| > Jeff
| >
| >
| >
| >
| >
| > --
|
| >
|
|