Ah, right. I didn't look at it that closely. See here for more info on what
Karl is referring to:
http://docs.jquery.com/DOM/Traversing/Selectors#Supported_Predicates.2C_but_differently
--Erik
On 9/16/07, Karl Swedberg <[EMAIL PROTECTED]> wrote:
>
> Even with the XPath plugin, you won't be able
Even with the XPath plugin, you won't be able to use that selector.
jQuery always only supported a subset of XPath, not the full spec.
The "div[2]" part, for example, won't be recognized correctly by
jQuery, in any version.
--Karl
_
Karl Swedberg
www.englishrules.com
www.le
If you're using jQuery 1.2, you need the XPath plugin, available here:
http://docs.jquery.com/Release:jQuery_1.2#XPath_Compatibility_Plugin
See here for more info:
http://docs.jquery.com/Release:jQuery_1.2#Removed_Functionality
--Erik
On 9/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
Thanks Jörn.
On 4/6/07, Jörn Zaefferer <[EMAIL PROTECTED]> wrote:
Benjamin Sterling schrieb:
> right now I am doing something like:
>
>
$('/modules/module:eq('+currentModule+')/groups/group:eq('+currentGroup+')')
>
> And that is working, should I change that to something like:
>
>
$('/modules/
Benjamin Sterling schrieb:
right now I am doing something like:
$('/modules/module:eq('+currentModule+')/groups/group:eq('+currentGroup+')')
And that is working, should I change that to something like:
$('/modules/module:nth-child('+currentModule+')/groups/group:nth-child('+currentGroup+')')
right now I am doing something like:
$('/modules/module:eq('+currentModule+')/groups/group:eq('+currentGroup+')')
And that is working, should I change that to something like:
$('/modules/module:nth-child('+currentModule+')/groups/group:nth-child('+currentGroup+')')
What would be the difference
Blair Mitchelmore schrieb:
I heard John talking about adding in the "/modules/module[1]" syntax
on the list a little while ago for jQuery 1.1.3 but that might have
been pushed back to 1.2
Actually that is implemented in the latest revision. From what I
understood, it isn't the same as :eq(n)
Blair,
Thanks for the heads up, much appreciated.
--
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com
I heard John talking about adding in the "/modules/module[1]" syntax on
the list a little while ago for jQuery 1.1.3 but that might have been
pushed back to 1.2
-blair
[EMAIL PROTECTED] wrote:
Ok, after re-reading http://docs.jquery.com/DOM/Traversing/Selectors I
figured out that I should b
Ok, after re-reading http://docs.jquery.com/DOM/Traversing/Selectors I
figured out that I should be using :eq(n)
example:
$('/modules/module:eq(1)', docXML[0]).attr('name')
--
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com
10 matches
Mail list logo