Re: [jQuery] Dynamic call

2006-10-16 Thread Dave Benjamin
On Mon, 16 Oct 2006, Aaron Heimlich wrote: On 10/16/06, Blair McKenzie [EMAIL PROTECTED] wrote: $(#div)[call]() Blair's right. $(#div).call() tries to call the call method on $, but since there is no call method (that I know of), it's not working. Actually, there is:

Re: [jQuery] Dynamic call

2006-10-16 Thread Dave Benjamin
On Mon, 16 Oct 2006, Michael Geary wrote: The return value from $() isn't a function and doesn't have a call method. In any case, Blair's code is the way to do it: $(#div)[call](); Right - I should have been more clear. To use call/apply, you'd have to do it like this: var obj =

Re: [jQuery] Single Value Attributes

2006-10-03 Thread Dave Benjamin
On Tue, 3 Oct 2006, Michael Geary wrote: No need to go to the extra work. jquery.js begins with this: window.undefined = window.undefined; So undefined exists in every browser. This is a handy line of code to put in any JavaScript - it's completely compatible with both old and new

[jQuery] Getting x- and y-positions of elements

2006-10-03 Thread Dave Benjamin
Is there any plan to add jQuery methods to retrieve and set the coordinates of an element on the page? It seems like a good addition to dimensions.js, perhaps. Here's what I currently use: $.fn.x = function(n) { var result = null; this.each(function() { var o = this;

Re: [jQuery] Getting x- and y-positions of elements

2006-10-03 Thread Dave Benjamin
On Tue, 3 Oct 2006, Brandon Aaron wrote: jQuery has two methods named .top() and .left() for setting the top and left offset via css. I just wrote a plugin for getting the offset of an element and did some pretty extensive cross-browser testing. I'm not too crazy about .top() and .left()

Re: [jQuery] Getting x- and y-positions of elements

2006-10-03 Thread Dave Benjamin
On Tue, 3 Oct 2006, Brandon Aaron wrote: On 10/3/06, Dave Benjamin [EMAIL PROTECTED] wrote: I'm not too crazy about .top() and .left() because of the need to concatenate and un-concatenate 'px' everywhere. I can understand this and it is something I'm trying to decide how I want to handle

Re: [jQuery] NEWS: JQuery being used for Bookmarklets

2006-10-03 Thread Dave Benjamin
the whole advertising infrastructure depends on the hole.. This includes Google. =) -- .. Dave Benjamin - Software Developer - ramenlabs.com .. AIM: ramenlabs / MSN: [EMAIL PROTECTED] ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Widget Challenge

2006-09-27 Thread Dave Benjamin
On Wed, 27 Sep 2006, Paul Bakaus wrote: as you may know, the jQuery website is going to be updated soon, supported by a famous cms. Maybe it would be good to build in a plugins platform into the page, where every developer can add his plugin, like for example Firefox Plugins, mozdev. etc.

Re: [jQuery] Form plugin - move to core?

2006-09-25 Thread Dave Benjamin
On Mon, 25 Sep 2006, Rey Bango wrote: I refer back to EasyDOM that, at the moment, will only work on v1.0a. The upgrade to v1.0.1 broke the functionality. Further, I recall an email that I sent out early this month that referred to the set() method, which is used in EasyDOM, to which John

Re: [jQuery] Digg push

2006-09-25 Thread Dave Benjamin
On Mon, 25 Sep 2006, Yehuda Katz wrote: Good fyi. I'd quibble about the front-page of the programming section. I'm sure there are *some* people that check sections of interest to them. May not be a whole lot of people, but there are certainly *some.* Am I missing something? I get the

Re: [jQuery] Ready blocks not always firing

2006-09-25 Thread Dave Benjamin
On Mon, 25 Sep 2006, Brandon Aaron wrote: The current revision in SVN is 346. A quick glance over the check-ins didn't show a particular reversion # that the issue you are having was fixed in. I have been using the latest SVN revision since around 289 and haven't seen this issue. I can't

Re: [jQuery] Ready blocks not always firing

2006-09-25 Thread Dave Benjamin
Well, I removed some code that was creating the Flash-based MP3 player and the erratic behavior on IE went away. The other site that I had this problem with had Flash as well, and in both sites I was using the SWFObject JavaScript library according to the instructions, by creating a DIV to

Re: [jQuery] Synchronizing

2006-09-02 Thread Dave Benjamin
On Sat, 2 Sep 2006, John Resig wrote: Neil Mix has released a library that lets you write Javascript code just like that: http://www.neilmix.com/narrativejs/doc/index.html Wow, that is really impressive. I've been thinking about different ways to approach the sync vs. async barrier. One

Re: [jQuery] Synchronizing

2006-09-02 Thread Dave Benjamin
On Sat, 2 Sep 2006, John Resig wrote: Lately I've been experimenting with Parenscript, which is a Lisp-to-JavaScript translator that allows you to write macros; if anyone's interested I can post some sequencing macro code I've been working on... Go ahead! I'm interested :-) Right on.

[jQuery] Interface Sortables scrollbar issue

2006-08-27 Thread Dave Benjamin
On Thu, 24 Aug 2006, Stefan Petre wrote: Great news. I can finally release the Interface with the new changes, website and plugins. Hi Stefan, I'm trying out your new Sortables demo: http://interface.eyecon.ro/demos/sort.html If you make your browser window smaller than the content and

Re: [jQuery] Early Docs Prorotype

2006-08-09 Thread Dave Benjamin
If you put an overflow-y: scroll on the body, it'll keep the page from jumping around when the scrollbar appears. This works in recent versions of FireFox, though it started out as an IE-only extension. ___ jQuery mailing list discuss@jquery.com

Re: [jQuery] cant parseInt

2006-08-08 Thread Dave Benjamin
. To ensure that it is treated like a number, you have to convert it before you use the + operator, since + is overloaded for numbers and strings. -- .. Dave Benjamin - Software Developer - ramenlabs.com .. AIM: ramenlabs / MSN: [EMAIL PROTECTED