[jQuery] 1.1 add(this) bug?

2007-01-15 Thread Ⓙⓐⓚⓔ
previously I coded $(this).parents().add(this) inside a bind('click' function... then continue the chain to look at 'me and my parents' on 1.1 the chain only has the parents, this did not get added. when I break it up , with an .end() and continue the chain, it brings 'me' back to the chain,

Re: [jQuery] jQuery addClass problems

2007-01-15 Thread Christopher Jordan
Olaf, thanks for responding. Olaf Bosch wrote: Christopher Jordan schrieb: It's swapping out the text color, but not the background color. I'm puzzled. Is there some reason I could be seeing these sorts of results? Is this online, cane i see this? Unfortunately, this is not in

Re: [jQuery] The $( exp, jQuery ) syntax is not working in 1.1

2007-01-15 Thread Karl Rudd
Hmmm that's all well and good but can someone please post a patch so that $/jQuery will work with a jQuery object as the context? That's how it's worked in the past and that's how the API reference says it works... Karl Rudd On 1/15/07, limodou [EMAIL PROTECTED] wrote: Yeah, I also encountered

Re: [jQuery] .height(val) - what am I missing?

2007-01-15 Thread Theo Welch
I'm not sure if this is the issue, Adam, but have you tried using a string for the height value instead of an integer...and in doing so, also specifying an explicit unit of measure (such as pixels)? Generally, CSS rules won't honor values that don't have units (unless the value is zero in which

Re: [jQuery] The $( exp, jQuery ) syntax is not working in 1.1

2007-01-15 Thread John Resig
Yeah, this is a bug. We should have a fix posted (aka 1.1.1) by this next weekend. --John On 1/15/07, Karl Rudd [EMAIL PROTECTED] wrote: Hmmm that's all well and good but can someone please post a patch so that $/jQuery will work with a jQuery object as the context? That's how it's worked in

Re: [jQuery] Preloading images in jcarousel

2007-01-15 Thread Ⓙⓐⓚⓔ
preloading images for jcarousel and other 'slide shows' was the reason I wrote traverseDir it takes removes the need for jcarousel's built in external file of images for the automatically generated pages from my apache server. I didn''t like the delays that were present when it went to get the

Re: [jQuery] self.attr(innerHTML, res.responseText) - IE 7 failing

2007-01-15 Thread lukas | dressy vagabonds
hei mike :-), thanks for the very fast help :-) best regards lukas Am 16.01.2007 um 00:34 schrieb Mike Alsup: Hi Lucas, Issue 2: $(#el).load doesn't support post params any longer This is a bug and will be fixed. You can fix it in your own copy by editing this line in the load

Re: [jQuery] 1.1 add(this) bug?

2007-01-15 Thread John Resig
Yep, this has been reported: http://jquery.com/dev/bugs/bug/806/ We should have a full fix (1.1.1) by this next weekend. --John On 1/15/07, Ⓙⓐⓚⓔ [EMAIL PROTECTED] wrote: previously I coded $(this).parents().add(this) inside a bind('click' function... then continue the chain to look at 'me

Re: [jQuery] 1.1 add(this) bug?

2007-01-15 Thread Ⓙⓐⓚⓔ
great! I'll keep a watch out for that bug close, and pick it up the svn! On 1/15/07, John Resig [EMAIL PROTECTED] wrote: Yep, this has been reported: http://jquery.com/dev/bugs/bug/806/ We should have a full fix (1.1.1) by this next weekend. --John On 1/15/07, Ⓙⓐⓚⓔ [EMAIL PROTECTED]

[jQuery] IE 7 fadeIn, fadeOut problem

2007-01-15 Thread lukas | dressy vagabonds
hi list, i'm terribly sorry to litter this list with all IE7 problems, but unfortunately i have to have my sites working in that s browser too, so i can't hesitate to ask. fadeOut doesn't seem to work on divs if triggered twice or more times. it works if only triggered once, but it

Re: [jQuery] jquery1.1 and modalContent problem

2007-01-15 Thread mohd khairi
Maybe change it to $('#modalContent') On 1/16/07, Ámon Tamás [EMAIL PROTECTED] wrote: Hello, I try to upgrade my little project from jquery 1.04 to jquery 1.1 . (naturally with jquery.compat-1.0). And with modalContent I get the following error: $(#modalContent).top is not a function (line

Re: [jQuery] jQuery addClass problems

2007-01-15 Thread Olaf Bosch
Christopher Jordan schrieb: I should probably also mention, that the initial colors on the calendar are set in-line as ColdFusion builds the page. It is this way that I make the weekend cells a different color from the weekday cells. Now this cane also not overwrittten, you must this delete

[jQuery] Trapping the onclose event

2007-01-15 Thread Robert James
I have some code which responds to the onclose event. The problem is that it is being triggered by the Back button as well. Can you think of anyway to run JS onclose but not on the Back button? (I might be able to do this with frames, but do not want to resort to them...)

[jQuery] Hitting an error doing ajax in 1.1

2007-01-15 Thread Doug Tabacco
Anyone know if this is my doing or a bug? I have a piece of code that fades out a div, loads some new content using ajax, and then fades it back in. I just tested out the new 1.1 release and started getting an error: fn.apply is not a function Here's the relevant chunk of code:

Re: [jQuery] Hitting an error doing ajax in 1.1

2007-01-15 Thread Mike Alsup
Anyone know if this is my doing or a bug? There's a bug in the load function. See this thread for a temporary work-around: http://jquery.com/discuss/2007-January/021767/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] jQuery addClass problems

2007-01-15 Thread Marc Jansen
Hi Christopher, this is rather important due to the css cascade: I should probably also mention, that the initial colors on the calendar are set in-line as ColdFusion builds the page. It is this way that I make the weekend cells a different color from the weekday cells. Your inline css

Re: [jQuery] Hitting an error doing ajax in 1.1

2007-01-15 Thread Doug Tabacco
Aha, thanks! -doug Mike Alsup wrote: Anyone know if this is my doing or a bug? There's a bug in the load function. See this thread for a temporary work-around: http://jquery.com/discuss/2007-January/021767/ ___ jQuery mailing list

Re: [jQuery] jquery1.1 and modalContent problem

2007-01-15 Thread Gavin M. Roy
I'll work through the 1.1 issues in modalContent in the next few days and release a version compatible with 1.1. Gavin On 1/15/07, mohd khairi [EMAIL PROTECTED] wrote: Maybe change it to $('#modalContent') On 1/16/07, Ámon Tamás [EMAIL PROTECTED] wrote: Hello, I try to upgrade my little

[jQuery] Get first ancestor of type

2007-01-15 Thread Chris Domigan
Hi there, How would I select the first ancestor of a certain type? Eg if I want to select the first div that is found while searching up the DOM from an element. Cheers, Chris ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] jQuery addClass problems

2007-01-15 Thread Christopher Jordan
Olaf Marc, Thanks so much for helping me with my CSS. It hadn't occurred to me to first empty the style like you suggest Marc. What about using the !important command in my CSS? Which would be better? I'm gonna run out to the web and do some reading on the use of !important. Thanks for

Re: [jQuery] Get first ancestor of type

2007-01-15 Thread Matt Stith
easy, try something like this: $(#someElement).parent(tr).doSomething(); That would select the first 'tr' element that is above #someElement. On 1/15/07, Chris Domigan [EMAIL PROTECTED] wrote: Hi there, How would I select the first ancestor of a certain type? Eg if I want to select the first

Re: [jQuery] Get first ancestor of type

2007-01-15 Thread Karl Rudd
If you want the parent as a jQuery object: $('#something').parents('div').eq(0) If you want it as a raw DOM element: $('#something').parents('div')[0] Note that parent() only returns the parent object, not the parent, grandparent, great-grandparent, etc objects. Karl Rudd On 1/16/07,

Re: [jQuery] The $( exp, jQuery ) syntax is not working in 1.1

2007-01-15 Thread Karl Rudd
Thanks John. I should have looked in the bug tracker for the relevant bug ( http://jquery.com/dev/bugs/bug/804/ ). In the mean time I've added a temporary fix to my version. find: function( t, context ) { // Quickly handle non-string expressions if (

Re: [jQuery] Get first ancestor of type

2007-01-15 Thread Chris Domigan
Karl - excellent, works a charm! Thanks, Chris ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Get first ancestor of type

2007-01-15 Thread Chris Domigan
Matt - I want the first ancestor of a certain type, not the first parent. Yehuda - won't this just select all tr's that are the first tr's in their table? To clarify, say I have this structure: table tr td table tr td a id=fooDemo/a /td /tr

Re: [jQuery] Get first ancestor of type

2007-01-15 Thread Karl Rudd
Chris, Either Yehuda or my solution will work for you. Take a look at http://docs.jquery.com/DOM/Traversing/Selectors#Custom_Selectors_2 for more info about the :first selector. To use your example: $('#foo').parents('tr:first') or $('#foo').parents('tr').eq(0) Karl Rudd On 1/16/07,

Re: [jQuery] Is trigger workable in Safari!?

2007-01-15 Thread 沈志川 (Benx)
Thank you. But, is there no better way!? The compatibilities of browsers are really troublesome On 1/16/07, Jörn Zaefferer [EMAIL PROTECTED] wrote: 沈志川 (Benx) schrieb: I tried, but not work! Here is my code snip: jQuery(#hello).blur(function() { //... some form validation code

Re: [jQuery] [plugin] jdMenu - Finally Released!

2007-01-15 Thread Aaron Heimlich
On 1/15/07, Jonathan Sharp [EMAIL PROTECTED] wrote: Is jQuery's even object that gets passed in standard or would I have to code around W3C/IE target vs. srcElement? jQuery does some basic normalization to ensure the event object you receive complies with the W3C DOM2 Spec (and yes,

[jQuery] Testing for presence of ID

2007-01-15 Thread Gerry Danen
In this piece of code (common to a number of pages) I want to set focus to a second input field if there is one. $(function() { $(#first_field_to_enter)[0].focus(); $(#second_field_to_enter)[0].focus(); }); If the second input field is present, focus is on the second field. If

[jQuery] SVN Broken???

2007-01-15 Thread Stephen Woodbridge
Hi, Just tried to update update svn got the following: svn: No repository found in 'svn://jquery.com' -Steve ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] SVN Broken???

2007-01-15 Thread Arrix
I had the same problem. But the online trac browser seems OK. jquery.comappeared to be unstable last night, some error info was displayed. On 1/16/07, Stephen Woodbridge [EMAIL PROTECTED] wrote: Hi, Just tried to update update svn got the following: svn: No repository found in

[jQuery] Strange error message

2007-01-15 Thread Stephen Woodbridge
Hi, I am getting a very strange error message: Node cannot be inserted at the specified point in the hierarchy code: 3 This is using jquery and the blockUI plugin. I assume it is because I'm doing something wrong, but the error message does not point to a line number or anything else. Any

Re: [jQuery] Testing for presence of ID

2007-01-15 Thread Erik Beeson
Try: if($(#second_field_to_enter).size() 0) { $(#second_field_to_enter)[0].focus(); } I'd be interested to hear if there's a better way. --Erik On 1/15/07, Gerry Danen [EMAIL PROTECTED] wrote: In this piece of code (common to a number of pages) I want to set focus to a second input field

Re: [jQuery] SVN Broken???

2007-01-15 Thread John Resig
Sorry everyone, it's been fixed now. We had some difficulties while we got hit with the influx of Digg users. It should be working ok now. --John On 1/15/07, Arrix [EMAIL PROTECTED] wrote: I had the same problem. But the online trac browser seems OK. jquery.com appeared to be unstable last

Re: [jQuery] Testing for presence of ID

2007-01-15 Thread John Resig
I'd try something like this: $(function() { var field = $(#second_field_to_enter)[0]; if ( field ) { field.focus(); } else { $(#first_field_to_enter)[0].focus(); } }); That might get you at your desired goal. --John On 1/15/07, Gerry Danen

Re: [jQuery] Testing for presence of ID

2007-01-15 Thread Gerry Danen
Thank you, Erik. Works great, and no more errors! There may be a better way (seems like there are several ways to do the same thing, from what I've seen so far), but I'll stick with this until something slick comes along. Gerry On 1/15/07, Erik Beeson [EMAIL PROTECTED] wrote: Try:

Re: [jQuery] Strange error message

2007-01-15 Thread Stephen Woodbridge
Stephen Woodbridge wrote: Hi, I am getting a very strange error message: Node cannot be inserted at the specified point in the hierarchy code: 3 This is using jquery and the blockUI plugin. I assume it is because I'm doing something wrong, but the error message does not point to a

Re: [jQuery] Testing for presence of ID

2007-01-15 Thread Karl Rudd
Or try $(function() { $('#second_field_to_enter,#first_field_to_enter')[0].focus(); }); Karl Rudd On 1/16/07, Gerry Danen [EMAIL PROTECTED] wrote: In this piece of code (common to a number of pages) I want to set focus to a second input field if there is one. $(function() {

Re: [jQuery] Trying to show/hide table row...

2007-01-15 Thread Blair McKenzie
1. Add the row to the table - all of the content should be contained in hidden divs 2. Run animations on the divs - show, slide down, fade in, etc Blair On 1/16/07, James Thomas [EMAIL PROTECTED] wrote: Yes, but it just appears, we haven't yet experimented with applying effects. We

Re: [jQuery] Testing for presence of ID

2007-01-15 Thread Gerry Danen
That works too, Karl. Can you explain how it works? An interesting thing I just noticed in IE7 is that on http://test.danen.org/secure/register.htm the first, second, and fourth fields are yellow. Bizarre. If this list allows attachments, I can share a partial screenshot. Otherwise check the

Re: [jQuery] Testing for presence of ID

2007-01-15 Thread Karl Rudd
A jQuery object is an array of 1 or more objects. I'm going to simplify things down a little. $('#B, #A')[0].focus(); The selector #B, #A tries to find objects with ids of B and A (in that order). If B is not present in the document then it's just not in the list, so A is the first element

Re: [jQuery] Testing for presence of ID

2007-01-15 Thread Gerry Danen
Thank you, Karl. As I learn, I'm sure this will make perfect sense. Actually, the logic does make sense, just got to figure out where DOM fits in. Just posted a rant about IE7. I think it's broken... http://blog.danen.org/ Gerry On 1/15/07, Karl Rudd [EMAIL PROTECTED] wrote: A jQuery object

Re: [jQuery] Testing for presence of ID

2007-01-15 Thread Sam Collett
On 16/01/07, Gerry Danen [EMAIL PROTECTED] wrote: Thank you, Karl. As I learn, I'm sure this will make perfect sense. Actually, the logic does make sense, just got to figure out where DOM fits in. Just posted a rant about IE7. I think it's broken... http://blog.danen.org/ Gerry In

Re: [jQuery] jquery1.1 and modalContent problem

2007-01-15 Thread Ámon Tamás
Gavin M. Roy wrote: I'll work through the 1.1 issues in modalContent in the next few days and release a version compatible with 1.1. I changed every .top(something) declaration to .css('top', something) and now it is working. Gavin On 1/15/07, *mohd khairi* [EMAIL PROTECTED]

Re: [jQuery] jQuery addClass problems

2007-01-15 Thread Olaf Bosch
Christopher Jordan schrieb: Olaf Marc, Thanks so much for helping me with my CSS. It hadn't occurred to me to first empty the style like you suggest Marc. What about using the !important command in my CSS? Which would be better? I'm gonna run out to the web and do some reading on the

[jQuery] ID (or name) of current tab

2007-01-15 Thread Bruce MacKay
Hello folks, I'm trying to retrieve the ID of the current tab (a la Klaus) to pass to a function (tFocus). My attempt thus far... $(#editor).tabs({fxFade: true, fxSpeed: fast, onShow: tFocus($(this).attr(id))}); but this just returns undefined to tFocus - which I'm sure won't surprise

<    1   2