Karl,
Thanks. I do plan to continue it. If you have any specific suggestions for improvement I can get on them ASAP.
And yes; the idea was that creating a widget with this mini-library would be ridiculously easy (I had to read all of the API to create this, and let me tell you that it is *not* easy as it currently stands).
-- Yehuda
<div><span class="gmail_quote">On 1/14/07, <b class="gmail_sendername">Karl Swedberg</b> <<a href="mailto:karl@englishrules.com">
karl@englishrules.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style="">Hey Yehuda,<div>I've been meaning to respond to this for a while. Just wanted to say that I'm really impressed with the initial work you've put into this and hope that you'll continue developing it. It shows a lot of promise, and the tiny bit of code that would be needed, along with
jquery.js and your plugin, to create a widget is remarkable. Keep up the great work!
<div> <span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">
<span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">
<div>
</div><div>--Karl</div><div>_________________</div><div>Karl Swedberg</div><div><a href="http://www.englishrules.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">www.englishrules.com</a>
</div><div><a href="http://www.learningjquery.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">www.learningjquery.com</a></div><div>
</div>
</span></span> </div>
<div><div><span class="e" id="q_1102178fdf5e4b17_1">
<div>On Jan 11, 2007, at 5:11 AM, Yehuda Katz wrote:</div>
</span></div><blockquote type="cite"><div><span class="e" id="q_1102178fdf5e4b17_3">I've begun work on a Safari widget pack, that allows you to work with Safari widgets in a way more jQuery way.
For example:
var y = $("#scrollArea").makeScrollAreaWithBars({singlepressScrollPixels: 50}, {id: "scrollBar"}, {id: "horizBar"})
.bind("mouseover", function() {
y.focus(); }).bind("mouseout", function() { y.blur(); })
z = $("button").makeGlassButton();
z[0].click(function() { y.horizontalScrollbar ().toggleAutohide(); });
z[1].click(function() {
y.verticalScrollbar().toggle(); })
The above code does the following:
Line 1: Converts a div with id scrollArea into an AppleScrollArea with horizontal and vertical scrollBars (with attributes provided)
Line 2: binds a mouseover event to the newly created scrollArea widget and then a mouseout event
Line 3: Converts all buttons on the page into glass buttons, and returns an array of the new glass buttons
Line 4: Gets the first glassButton and binds a click handler which toggles the autohide on the scrollArea's horizontal scrollbar
Line 5: Gets the second glassButon and binds a click handler which toggles the vertical scrollbar
This would obviously be way more than 5 lines if you used the Apple API ;)
The files are in the plugins in svn under safari_widgets. There's still a lot of work to do, but I wanted to get some feedback on the work I did. The best way to look at it is to open the HTML file that's packed with the svn. You'll need OSX
10.4.3 or higher.
Thanks!<br clear="all">
--
Yehuda Katz
Web Developer | Wycats Designs
(ph) 718.877.1325</span></div><span class="q"><div style="margin: 0px;">_______________________________________________
</div><div style="margin: 0px;">jQuery mailing list</div><div style="margin: 0px;"><a href="mailto:discuss@jquery.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
discuss@jquery.com</a></div><div style="margin: 0px;">
<a href="http://jquery.com/discuss/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://jquery.com/discuss/</a></div> </span></blockquote></div>
</div></div>
_______________________________________________
jQuery mailing list
<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:discuss@jquery.com">
discuss@jquery.com</a>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://jquery.com/discuss/" target="_blank">
http://jquery.com/discuss/</a></blockquote></div>
<br clear="all">
--
Yehuda Katz
Web Developer | Wycats Designs
(ph) 718.877.1325
_______________________________________________
jQuery mailing list
discuss@jquery.comhttp://jquery.com/discuss/