Recent Widgets


Register for DashboardWidgets

Recent Forums Posts

Partners


iCompositions

MacDesktops.net

RSS Showcase
RSS Comments
RSS Forums

This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. Posted in: Widget Development

two verticle scrollbars.

Author Message
jonbrown



Joined: 01 Jul 2005
Posts: 56
Location: Silver Spring

Posted: Tue Sep 26, 2006 - 9:08 am    Post subject: two verticle scrollbars. Reply with quote

Hi
I am trying to get 2 verticle scrollbars to work in a widget. The first one works, the second scrollbar shows up all the time regardless of the content in the div. Shows as full as in the full white scrollbar in the track fills the track. And when I click and drag on the second scrollbar it moves the first one around. I need them to be indipendent of each other. Any ideas or help is appreciated! Thanks in advance.

Jon
View user's profile Send private message Send e-mail Visit poster's website Widgets
seb2



Joined: 04 May 2005
Posts: 41

Posted: Thu Sep 28, 2006 - 1:21 am    Post subject: Reply with quote

I assume an issue with IDs of your HTML elements -- namely duplicate ones, we all do copy & paste programming, don't we? Wink

It would help to have access to the widget or at least to see some code.
View user's profile Send private message Send e-mail Widgets
jonbrown



Joined: 01 Jul 2005
Posts: 56
Location: Silver Spring

Posted: Thu Sep 28, 2006 - 1:30 am    Post subject: :) Reply with quote

Yeah, sure if you email me jonbrown2 (at) mac (dot) com, I can email anyone the widget its currently in beta stage, and not on the web yet. I was not sure exactly what to duplicate I have a parent div, and a content div with the scrollbar code that works correctly, so I just duplicated these elements in the side menubar but doesn't work.

Working Code
Code:
<div id='myScrollBar'>


         <div id='myScrollTrack' onmousedown='mouseDownTrack(event);' onmouseup='mouseUpTrack(event);'>
            <div class='scrollTrackTop' id='myScrollTrackTop'></div>
            <div class='scrollTrackMid' id='myScrollTrackMid'></div>
            <div class='scrollTrackBot' id='myScrollTrackBot'></div>
         </div>

         <div id='myScrollThumb' onmousedown='mouseDownScrollThumb(event);'>
            <div class='scrollThumbTop' id='myScrollThumbTop'></div>
            <div class='scrollThumbMid' id='myScrollThumbMid'></div>
            <div class='scrollThumbBot' id='myScrollThumbBot'></div>
         </div>
</div>



Not working code
Code:
<div id='myScrollBar2'>


         <div id='myScrollTrack2' onmousedown='mouseDownTrack2(event);' onmouseup='mouseUpTrack2(event);'>
            <div class='scrollTrackTop2' id='myScrollTrackTop2'></div>
            <div class='scrollTrackMid2' id='myScrollTrackMid2'></div>
            <div class='scrollTrackBot2' id='myScrollTrackBot2'></div>
         </div>

         <div id='myScrollThumb2' onmousedown='mouseDownScrollThumb2(event);'>
            <div class='scrollThumbTop2' id='myScrollThumbTop2'></div>
            <div class='scrollThumbMid2' id='myScrollThumbMid2'></div>
            <div class='scrollThumbBot2' id='myScrollThumbBot2'></div>
         </div>
</div>


As you can see I also duplicated the functions in the Apples class javascript file, I wasnt sure if I needed to do this or not again email me for the widget file for further insight.

Thanks!

Jon
View user's profile Send private message Send e-mail Visit poster's website Widgets
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.

 
Powered by phpBB © 2001, 2002 phpBB Group