[jQuery] Re: Nested :eq selector issue?

2009-10-27 Thread vtjiles
This is the entire html. I would expect it would return the HTML tag as it does with :first, but it errors on the second alert when using :eq(0) html head script language=javascript src=jquery-1.3.2.js/script script $().ready(function() {

[jQuery] Re: Nested :eq selector issue?

2009-10-27 Thread vtjiles
I just tested against 1.2.6 and it works. Would this now be considered a bug in Sizzle?

[jQuery] Nested :eq selector issue?

2009-10-26 Thread vtjiles
Shouldn't :first be the same as :eq(0)? I set up a basic test page with one div in the body. I ran the following statements to get the HTML element and the first works, but the second actually throws an error. alert($(*:has(BODY *:first)).eq(0)[0].tagName); alert($(*:has(BODY

[jQuery] jQuery selector return parent

2009-10-21 Thread vtjiles
Is there anyway to write a custom filter which returns the parent nodes of the selector? ie) div.someClass:parentNode or ancestor: div.someClass would return the parent element of div.someClass. I know you can use .parent() in jQuery, but am using Selenium RC and am limited to using selector

[jQuery] Re: jQuery selector return parent

2009-10-21 Thread vtjiles
Thanks Dave I think you may be on to something. I think $(*:has( div.someClass)) would work. Won't be fast, but that's not a concern. I'll give it a shot tomorrow. On Oct 21, 12:40 pm, Dave Methvin dave.meth...@gmail.com wrote: Is there anyway to write a custom filter which returns the parent

[jQuery] Re: Change URL in beforeSend

2009-01-30 Thread vtjiles
: { field1:[some value] }, url:[new url] } )); return false; }; } }); vtjiles wrote: I

[jQuery] Change URL in beforeSend

2008-12-12 Thread vtjiles
I have an app and want to change the url for all ajax requests to give them a relative path. I tried to set up a global change using ajaxSetup and beforeSend, but the url was only updated in the config, not the request object. Any thoughts on how to do this? code $.ajaxSetup({ beforeSend :

[jQuery] find, not selector not working

2008-09-18 Thread vtjiles
I have the fairly simple markup below and am trying to only get only the checkboxes under the first level LI (Main 1 and Main 2), not the deeper ones. ul id=el li input type=checkbox value=1 / - Main 1 ul li

[jQuery] Re: find, not selector not working

2008-09-18 Thread vtjiles
() to .children(). - Richard On Wed, Sep 17, 2008 at 11:56 PM, vtjiles [EMAIL PROTECTED] wrote: I have the fairly simple markup below and am trying to only get only the checkboxes under the first level LI (Main 1 and Main 2), not the deeper ones. ul id=el        li                input type