Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-31-2005, 09:26 AM   PM User | #1
Ramy
New Coder

 
Join Date: Jan 2005
Location: Toronto
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Ramy is an unknown quantity at this point
Stop Scrolling behavior to the onmousewheel event

hi all,

I am building a website using jsp.
I create a form which contains 3 tables. Everything work fine except the only problem is that when i use the mouse wheel over the table area, the table scroll/move with the mousewheel instead of the web page.

Is there a way to overcome this problem such that when I use the mousewheel over the table the web page scroll/move ONLY instead of the table in the form or unless I click on the table area or move the vertical scrollBar then it makes sense for the table to scroll/move with the mousewheel.

I tried <Form onMouseWheel="return false"> but it doesn't work.

Thank you very much for your help.

Sincerely,
RT.

Last edited by Ramy; 01-31-2005 at 05:16 PM.. Reason: typo
Ramy is offline   Reply With Quote
Old 01-31-2005, 02:09 PM   PM User | #2
jaywhy13
Regular Coder

 
Join Date: Dec 2004
Location: Jamaica
Posts: 592
Thanks: 2
Thanked 0 Times in 0 Posts
jaywhy13 is an unknown quantity at this point
hey u wanna post a link and let us see exactly wot u mean. Have you set your css overflow properties correctly?
__________________
I'm gonna find a way to download the internet if its the last thing I do...
Prepare to bow down to me (or my grave) and call me almighty when the algorithm is finished
jaywhy13 is offline   Reply With Quote
Old 01-31-2005, 02:44 PM   PM User | #3
jbot
Senior Coder

 
Join Date: Feb 2004
Location: Edinburgh
Posts: 1,352
Thanks: 0
Thanked 0 Times in 0 Posts
jbot is an unknown quantity at this point
for IE only:

PHP Code:
<table onmousewheel="return false"
__________________
*keep it simple (TM)
jbot is offline   Reply With Quote
Old 02-01-2005, 03:00 AM   PM User | #4
Ramy
New Coder

 
Join Date: Jan 2005
Location: Toronto
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Ramy is an unknown quantity at this point
Replying to jaywhy13

Hi,

Thanks.
Could you please look under the heading "Mouse Over Gives Popup" in the Threads in Forum: Javascript Programming where rgn1703 post a table and when we use the mouseWheel within the table, the table scroll/move. Is there a way such that when I have not click on the table and use the mouse wheel ONLY the web page move and ONLY when I click on the table then it should scroll/move. Thanks for any ideas or hint.
once again, thanks.

Ramy.
Ramy is offline   Reply With Quote
Old 02-01-2005, 04:37 AM   PM User | #5
hemebond
Senior Coder

 
Join Date: Jul 2004
Location: New Zealand
Posts: 1,315
Thanks: 0
Thanked 2 Times in 2 Posts
hemebond is an unknown quantity at this point
That's a behaviour of the browser.
hemebond is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 05:27 AM.


Advertisement
Log in to turn off these ads.