navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Free FrontPage Templates

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

How to disable mouse wheel on a form page

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> General Web Development >> How to disable mouse wheel on a form page
Page: [1]
 
jackfd

 

Posts: 2
Joined: 10/13/2004
Status: offline

 
How to disable mouse wheel on a form page - 10/13/2004 11:10:01   
When designing long forms with drop down form fields I have an issue with the mouse wheel. After selecting a choice from the drop down the visitor is likely to use their mouse wheel to scroll down the page. Unfortunately, if the drop-down field is still selected, instead of scrolling the page they change the answer they selected in the drop-down. Rather than just post a little messages on the form warning people not to use their mouse wheel out like to disable it. Does anyone know of a script or function in a front-page form that would allow this?
bobby

 

Posts: 11394
Joined: 8/15/1969
From: Seattle WA USA
Status: offline

 
RE: How to disable mouse wheel on a form page - 10/13/2004 11:18:15   
There are ways you can disable the mouse wheel on your local system... but not on a web page.


At least I've never heard of one...


_____________________________

If con is the opposite of pro, is Congress the opposite of progress?


:)

(in reply to jackfd)
Nigel

 

Posts: 383
Joined: 7/24/2002
From: Wirral - UK
Status: offline

 
RE: How to disable mouse wheel on a form page - 10/13/2004 11:45:19   
I'm glad you raised this as it's a common problem. I once booked a flight for the wrong day because of this.

Is there somewhere in the form script where you can set the properties to scrollable yes/no like in a new window?

I'm sure there will be a way but it won't be to control the mouse it will be to control the scroll bars. Maybe just have a long drop down list that is set to the length of the choices.

Nigel



_____________________________

Innerview
Web Design - Virtual Tours - 360 Panoramas - Shopping carts

(in reply to bobby)
bobby

 

Posts: 11394
Joined: 8/15/1969
From: Seattle WA USA
Status: offline

 
RE: How to disable mouse wheel on a form page - 10/13/2004 11:49:52   
I've had credit card payments or purchases not go through because I scrolled the expiration date to the wrong year or other various issues.

The problem is that it's not something you can control from your web page. It's something that the user has to decide to do on their system... and I believe it's an all or nothing deal.

It can't be turned off just for web forms...


_____________________________

If con is the opposite of pro, is Congress the opposite of progress?


:)

(in reply to Nigel)
moosef

 

Posts: 2
Joined: 11/26/2004
Status: offline

 
RE: How to disable mouse wheel on a form page - 11/26/2004 12:43:46   
Disabling scrolling on a SELECT element is quite simple:

<SELECT ... onMouseWheel=return(false)>

This cancels the default action for the element, which in the case of a SELECT is the action that changes the selectedIndex.

Go tell all your friends that Microsoft's inspired decision to enable it in the first place can be undone.


(in reply to bobby)
moosef

 

Posts: 2
Joined: 11/26/2004
Status: offline

 
RE: How to disable mouse wheel on a form page - 11/26/2004 12:45:14   
Do I get some stars for this? I've only got one :)

(in reply to moosef)
AMysticWeb

 

Posts: 855
Joined: 10/23/2002
Status: offline

 
RE: How to disable mouse wheel on a form page - 11/26/2004 13:00:10   
Hi moosef,

Welcome to OutFront

I don't lnow about a star, but I never took the time to investigate this. I just assumed I had to live with this.

So, you are my hero for the day!

Good tip, thanks. Of course now I have to add this to all my forms.

_____________________________

Hope I have been of some help,
Micheal

[URL=http://web.archive.org/web/20060101013129/http://www.frontpageforms.com/]FrontPageForms.com-Archive Version[/URL]
I am living Proof that Viral Procrastination exists!

(in reply to moosef)
aaronwiles

 

Posts: 200
Joined: 7/5/2004
From: Aaron Wiles
Status: offline

 
RE: How to disable mouse wheel on a form page - 11/27/2004 20:35:00   
quote:

ORIGINAL: moosef

Do I get some stars for this? I've only got one :)



Oh, if that work that is great. I haven't heard of that one b4. :)

_____________________________

You really never learn to swear until you get a computer.

(in reply to moosef)
Charles W Davis

 

Posts: 1725
Joined: 3/7/2002
From: Henderson Nevada USA
Status: offline

 
RE: How to disable mouse wheel on a form page - 11/27/2004 21:46:37   
quote:

<SELECT ... onMouseWheel=return(false)>


Post that on the Articles & Ideas forum and you'll be one more post toward the two start goal.

_____________________________

Enjoy! It' s your endeavor!
http://www.anthemwebs.com

(in reply to aaronwiles)
Nigel

 

Posts: 383
Joined: 7/24/2002
From: Wirral - UK
Status: offline

 
RE: How to disable mouse wheel on a form page - 11/28/2004 7:33:31   
You get 2 stars from me for that little Gem.

Thanks

Nigel

_____________________________

Innerview
Web Design - Virtual Tours - 360 Panoramas - Shopping carts

(in reply to Charles W Davis)
RickP

 

Posts: 693
Joined: 11/13/2004
From: Kent, U.K.
Status: offline

 
RE: How to disable mouse wheel on a form page - 12/4/2004 14:59:43   
Brill!

Just saw this, and like most have seen the problem in action numerous times. Just one question though... does this code need entering once on the page or once for each selectable form field? - where does one slot it into the page exactly?

Give him three stars! (assuming it works!) :)

Thanks, Rick

(in reply to Nigel)
AMysticWeb

 

Posts: 855
Joined: 10/23/2002
Status: offline

 
RE: How to disable mouse wheel on a form page - 12/4/2004 18:17:50   
Hi Rick,

It goes inside the initial <Select> tag for each DD you want to use it for.

onMouseWheel=return(false)

<select size="1" name="DD" onMouseWheel=return(false)>
<option value="Feedback">Feedback</option>
<option value="Info Request">Info Request</option>
<option value="Message">Message</option>
</select>

Works like a charm and is certainly in the top ten FP tips in my book.

_____________________________

Hope I have been of some help,
Micheal

[URL=http://web.archive.org/web/20060101013129/http://www.frontpageforms.com/]FrontPageForms.com-Archive Version[/URL]
I am living Proof that Viral Procrastination exists!

(in reply to RickP)
Larry M.

 

Posts: 2853
Joined: 2/20/2003
From: Greenville, South Carolina, USA
Status: offline

 
RE: How to disable mouse wheel on a form page - 12/4/2004 19:06:33   
quote:

It goes inside the initial <Select> tag for each DD you want to use it for


Michael,

Elaborate, please. Do you mean that (in FrontPage) that each Form Field is to be coded? If so, is the process to >> click the form field, then insert in Code View or by Insert >> Component:

</select>
onMouseWheel=return(false)

<select size="1" name="DD" onMouseWheel=return(false)>
<option value="Feedback">Feedback</option>
<option value="Info Request">Info Request</option>
<option value="Message">Message</option>
</select>


I'm not a coder (obviously) nor can I find any DD tags or a </select> field when I have a reply form open in FrontPage.

Thanks!


_____________________________

Larry M.

Reality is the leading cause of stress among those few in touch with it

(in reply to AMysticWeb)
RickP

 

Posts: 693
Joined: 11/13/2004
From: Kent, U.K.
Status: offline

 
RE: How to disable mouse wheel on a form page - 12/5/2004 7:33:23   
Thanks Michael for the clarification here - yes, it works fine:)

Larry, The easiest way to achieve this really is a simple copy and paste into the html code - it's not as daunting as it all looks. ( I assume you are using FP?) - Here's how to do it:

click on your dropdown box in design view
click 'split' at the bottom of your screen
(this opens the code view above the design view and the relevant code for your dropdown menu will all be highlighted)
on the first line of this code you will see:
<select size="1" name="xxxx"
Where I have entered xxxx it depends on what, if anything, you named your dropdown box from its properties in design view.

put one space after "xxxx" and enter this:

onMouseWheel=return(false)

The overall context should look like Michael's example above but don't worry about the "DD" bit it may not say that exactly

Easy?

Rick

(in reply to Larry M.)
AMysticWeb

 

Posts: 855
Joined: 10/23/2002
Status: offline

 
RE: How to disable mouse wheel on a form page - 12/5/2004 9:50:29   
Hi Larry,

If you want to get lazy, copy the following into a Notepad and always start your new DropDown Box with it.

<select size="1" name="Message_Type" onMouseWheel=return(false)>
<option value="Feedback">Feedback</option>
<option value="Info Request">Info Request</option>
<option value="Message">Message</option>
</select>


That way the mouse wheel disable will be in it from the start.



_____________________________

Hope I have been of some help,
Micheal

[URL=http://web.archive.org/web/20060101013129/http://www.frontpageforms.com/]FrontPageForms.com-Archive Version[/URL]
I am living Proof that Viral Procrastination exists!

(in reply to RickP)
Larry M.

 

Posts: 2853
Joined: 2/20/2003
From: Greenville, South Carolina, USA
Status: offline

 
RE: How to disable mouse wheel on a form page - 12/5/2004 11:45:28   
quote:

If you want to get lazy, copy the following into a Notepad and always start your new DropDown Box with it


Michael,

Er ... I prefer to think in terms of my taking the "expeditious" vis-à-vis "lazy" route:).

Am I correct in saying that each "option value" line needs to be changed (added) to agree with the Reply Form Form Fields and that all Form Fields should be included? RickP seems to have construed this approach differently. I have some experience working with scripts, but this one is eluding me for some reason.

_____________________________

Larry M.

Reality is the leading cause of stress among those few in touch with it

(in reply to AMysticWeb)
RickP

 

Posts: 693
Joined: 11/13/2004
From: Kent, U.K.
Status: offline

 
RE: How to disable mouse wheel on a form page - 12/5/2004 11:50:45   
Larry,

It is exactly as Michael has outlined - my instructions lead to the same code - it only requires the OnMousewheel... bit to be entered ONCE at the start.

Regards, RickP

(in reply to Larry M.)
Larry M.

 

Posts: 2853
Joined: 2/20/2003
From: Greenville, South Carolina, USA
Status: offline

 
RE: How to disable mouse wheel on a form page - 12/5/2004 16:07:50   
quote:

It is exactly as Michael has outlined - my instructions lead to the same code - it only requires the OnMousewheel... bit to be entered ONCE at the start


RickP & Michael,

Light bulb finally went on! Great tip and ditto for the thread.

Much appreciated,


_____________________________

Larry M.

Reality is the leading cause of stress among those few in touch with it

(in reply to RickP)
AMysticWeb

 

Posts: 855
Joined: 10/23/2002
Status: offline

 
RE: How to disable mouse wheel on a form page - 12/5/2004 20:34:32   
Hi Larry,

We should thank our lucky stars for Edison, huh?

Without him we'd all still be looking for a match to turn the candle on.:)

_____________________________

Hope I have been of some help,
Micheal

[URL=http://web.archive.org/web/20060101013129/http://www.frontpageforms.com/]FrontPageForms.com-Archive Version[/URL]
I am living Proof that Viral Procrastination exists!

(in reply to Larry M.)
AlexWhitcombe

 

Posts: 1
Joined: 3/24/2006
Status: offline

 
RE: How to disable mouse wheel on a form page - 3/24/2006 15:33:50   
Sadly, this neat little piece of code doesn't seem to work. Yes, while the customer drops the list and is selecting his requirement the scroll mouse input is inactive but as soon as he selects one and the box closes up, the protection is lost and any further movement of the wheel, before focus is moved, changes the selection again and activates the onChange event handler without a click being required.

I have also tried applying the onMouseWheel handler to the whole form but without success.

(in reply to jackfd)
dpf

 

Posts: 7126
Joined: 11/12/2003
From: India-napolis
Status: offline

 
RE: How to disable mouse wheel on a form page - 3/24/2006 15:50:44   
it works for me - lets see your code

_____________________________

Dan

(in reply to AlexWhitcombe)
Page:   [1]

All Forums >> Web Development >> General Web Development >> How to disable mouse wheel on a form page
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts