[jQuery] Include order for uncompressed Interface files

2007-03-30 Thread Nate Cavanaugh
Hi All, Interface comes with a nice source package, but what I need is one really big file combined. I have join utilities on my computer, so joining them is not a big deal, but I was curious as to whether or not there is a specific order that they should be included in? Anyone know? Thanks in

[jQuery] Best way to find current position in DOM stack?

2007-03-23 Thread Nate Cavanaugh
Hi all, I'm looking to find the current numeric position of a certain element amongst it's siblings. Let's say I have a list like so: ul liTest 1/li liTest 2/li li class=selectedTest 3/li liTest 4/li liTest 5/li /ul So, I grab $('li.selected'). I now want to find out what number it is (in this

Re: [jQuery] Best way to find current position in DOM stack?

2007-03-23 Thread Nate Cavanaugh
You are teh hotness John :D Thanks for that. I've been racking the cabeza for quite a while trying to get that one :) John Resig wrote: You want the index() function: var item = $(li.selected)[0]; var position = $(li).index( item ); On 3/23/07, Nate Cavanaugh [EMAIL PROTECTED] wrote

Re: [jQuery] jQBrowser error

2007-03-22 Thread Nate Cavanaugh
Hi Cal, I released an update to jQBrowser, called, jQBrowser² :) Basically, jQBrowser broke the normal way in which you grab the browser properties. I went ahead and fixed it, along with adding some functionality. So, to summarize: in jQuery, you grab the browser info like this: $.browser.msie.

Re: [jQuery] What is wrong with this jQuery code?

2007-02-04 Thread Nate Cavanaugh
It works just fine on my end. Can you post an example online? Tracerbullet wrote: What is exactly is wrong with this jQuery code? I've tried for hours, but something seems to be wrong with it. Is my logic incorrect? $(document).ready(function(){ $(a).toggle(function(){

Re: [jQuery] jQuery and Object Notation... confused with this

2007-02-04 Thread Nate Cavanaugh
Hey there, This was one of my big issues when I started jQuery, but there is now a solution as of 1.1. When you bind your method to an event, you can pass in your current object, and still reference it in your event function. Basically, you can pass in ANY data to your event function, and you

[jQuery] Checking length/size of hash object

2007-01-30 Thread Nate Cavanaugh
Hi All, is there a native, or jQuery way to check the size/length of a hash object? For instance to check the length of an array, you would do something like: var x = [1,2]; x.length; // is 2 But how would I check this: var x = {n:2,m:4}; Thanks in advance :) -- View this message in context:

Re: [jQuery] jQDOM - My entry into the jQuery DOM creation foray

2007-01-27 Thread Nate Cavanaugh
I didn't take it that way, so don't worry :) The problem I have with jQuery's native methods is that sometimes, you want to be able to operate on a specific object while you're creating it. So, for instance, with that link inside that div, sometimes as I create it, I'd like to attach an event to

[jQuery] jQDOM - My entry into the jQuery DOM creation foray

2007-01-26 Thread Nate Cavanaugh
Personally, I didn't like any of the current DOM creation plugins out there for jQuery. So I created my own, and here it is :) http://www.alterform.com/resources/jqdom Examples and documentation are on the page, but a simple example of adding some dom Elements to the page:

Re: [jQuery] What tools should I use to troubleshoot jquery problems? (John Resig, jquery team, other gurus please share your tricks...)

2007-01-23 Thread Nate Cavanaugh
*EDIT* I have a feeling you're either coming from Prototype, or straight from DOM scripting. I had the same preconceived notions when I first started with jQuery... So here is my attempt to do what you're trying to do (and from my testing, it all works :)) $('#test textarea').each(function(){

Re: [jQuery] make a div disappear after 2seconds?

2007-01-23 Thread Nate Cavanaugh
To steal an idea from http://www.learningjquery.com/2007/01/effect-delay-trick $(div).animate({opacity: 1.0}, 1000).hide('fast'); Nice little hack :) ronaldo wrote: Hi, should be a simple question but its been doing my heading for 1 day now!! how can i make a div disappear after 2

[jQuery] Thickbox CSS - Including in Thickbox.js?

2007-01-16 Thread Nate Cavanaugh
Hi all, Here is a question I have, and perhaps this is doable (I can't see why not), but why don't the *box scripts like Thickbox, Lightbox, etc, just write the CSS in the Javascript file, and eliminate the need to include a CSS file (or it's contents in your CSS)? For instance, I know Safari

Re: [jQuery] Select third column of the table

2007-01-13 Thread Nate Cavanaugh
You actually can do it this way: $('trtd:nth-child(3)'); The reason why eq(N) returns just one, is that you're telling it grab the nth one you find out of a set. The code I pasted above grabs the nth CHILD of the tr, so it will return what you want. Hope that helps :) Jacky-10 wrote: Dear

[jQuery] Refactoring code from Prototype ( $() type ambiguity)

2007-01-11 Thread Nate Cavanaugh
John told me to post this here, so here it is I am currently refactoring a large amount of code over to jQuery. Against better principles, the HTML is rife with onclick=fn(), etc, so I am having to convert over the functions themselves. Prototype's $() will take a string or an object, just

Re: [jQuery] Refactoring code from Prototype ( $() type ambiguity)

2007-01-11 Thread Nate Cavanaugh
only worried about those two. Blair McKenzie-2 wrote: You're handling a case where arg1 isn't a string. What is the alternative? Blair On 1/12/07, Nate Cavanaugh [EMAIL PROTECTED] wrote: John told me to post this here, so here it is I am currently refactoring a large amount

Re: [jQuery] Such a Newbie question

2006-12-31 Thread Nate Cavanaugh
Hi Jamie, this is pretty easy :) jQuery uses CSS Selectors, so this will work: $(input, select).click(function() { jamester wrote: Hi all, I've just entered the wonderful world of jquery, and being from a mainly php only background the whole JS thing is very new and exciting to me, but

[jQuery] jQBrowser²

2006-12-29 Thread Nate Cavanaugh
My very first plugin, but of course, I only compiled it from two other scripts, so much kudos to the original authors. Just consider this an improvement on their work :) http://www.alterform.com/resources/jqbrowser-2 -- View this message in context: