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] 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

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

2006-10-03 Thread Dave Benjamin
7;s not kidding, however, when he says "It cannot be easily fixed because the whole advertising infrastructure depends on the hole.". This includes Google. =) -- .. Dave Benjamin - Software Developer - ramenlabs.com .. AIM: ramenlabs / MSN: [EMAIL PROTECTED] __

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 s

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() be

[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] 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 >

Re: [jQuery] Widget Challenge

2006-09-26 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. et

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 rece

Re: [jQuery] Ready blocks not always firing

2006-09-25 Thread Dave Benjamin
On Mon, 25 Sep 2006, Brandon Aaron wrote: > I don't see the 'more' in IE but I do in Safari and Firefox. I noticed > that in Firebug the console.log statment seems to get called twice but > I could only find it once in all the javascript loaded for the home > page. Does firebug double log or is th

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

[jQuery] Ready blocks not always firing

2006-09-25 Thread Dave Benjamin
On Mon, 25 Sep 2006, Matt Stith wrote: > > On 9/25/06, Dave Benjamin <[EMAIL PROTECTED]> wrote: >> >> Am I the only one here that finds $(document).ready() to be completely >> unreliable? IE seems to be the main culprit. If I don't put the >> $(document)

Re: [jQuery] Multiple Ready Blocks

2006-09-25 Thread Dave Benjamin
On Mon, 25 Sep 2006, Michael Geary wrote: >> Is it permissable to have more than one >> $(document).ready(function() {}) >> per page? > > Yes, as many as you want. They will be called in the same order that the > $(document).ready() calls were made. If it gets called at all. Am I the only one he

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 p

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] Interface Library, Firefox on Mac

2006-09-03 Thread Dave Benjamin
On Sun, 3 Sep 2006, Arash Yalpani wrote: > And I have found another error on Firefox/Mac: > > > Error: missing name after . operator > > In isortables.js on line 92: > >shs.float = 'none'; > "float" is a reserved word in JavaScript. Th

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 :-) Rig

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 app

[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 scro

Re: [jQuery] jQuery 1.0

2006-08-26 Thread Dave Benjamin
On Sat, 26 Aug 2006, John Resig wrote: > I'd like to thank everyone who made this release possible. It's been a > lot of work, but the journey is only just beginning. I can't wait to > delve into some of the very exciting advances that we have planned. > Happy Coding! Thank *you*, John! Congrats

Re: [jQuery] CSS Style Plugin Idea

2006-08-11 Thread Dave Benjamin
On Thu, 10 Aug 2006, Franklin Davenport wrote: > It would be nice if there was a JQuery Plugin for handling Styles. I > found a script that is made to change styles (such as to stylesheets). > > Here it is:http://developer.apple.com/internet/webcontent/styles.html jQuery does style changes alrea

Re: [jQuery] Early Docs Prorotype

2006-08-08 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 http:/

Re: [jQuery] Early Docs Prorotype

2006-08-08 Thread Dave Benjamin
On Wed, 9 Aug 2006, John Resig wrote: > I've been busy the past couple nights working on the new > documentation. You can see it being generated on the fly here (this is > also in SVN, rev 172 - look in the docs folder): > http://john.jquery.com/jquery/docs/ Very nice, John. I have a couple of s

Re: [jQuery] cant parseInt

2006-08-08 Thread Dave Benjamin
ont = parseInt(cont) + 5 The input value is a string. 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.c