[jQuery] Re: 1.2 and XPath Contains Predicate Selector

2007-10-09 Thread corpore


checked it today - Yep - it did the trick! 

Thanks Karl!



Karl Swedberg-2 wrote:
 
 Hi there,
 
 In 1.2.x, you would use the CSS equivalent:
 
   $(a[id *= smenu])
 
 Or, you could use the Basic XPath plugin.
 
 http://jquery.com/plugins/project/xpath
 
 Hope that helps,
 
 --Karl
 _
 Karl Swedberg
 www.englishrules.com
 www.learningjquery.com
 
 
 
 On Oct 2, 2007, at 11:54 AM, corpore wrote:
 


 ..mmh, have a bit of a problem with the  XPath Contains Predicate  
 Selector..

 Updating code based on jQuery-1.1.3 to jQuery-1.2.1 and changing
 aforementioned selectors I've found that
 where something like this used to work:

 $([EMAIL PROTECTED] *= smenu])

 the, obviously only apparent, equivalent:

 $(a:has(@id *= smenu))

 does not. Where do I go wrong?







 -- 
 View this message in context: http://www.nabble.com/1.2-and--XPath- 
 Contains-Predicate-Selector-tf4555667s27240.html#a13001553
 Sent from the jQuery General Discussion mailing list archive at  
 Nabble.com.

 
 
 

-- 
View this message in context: 
http://www.nabble.com/1.2-and--XPath-Contains-Predicate-Selector-tf4555667s27240.html#a13119039
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: 1.2 and XPath Contains Predicate Selector

2007-10-02 Thread Karl Swedberg

Hi there,

In 1.2.x, you would use the CSS equivalent:

$(a[id *= smenu])

Or, you could use the Basic XPath plugin.

http://jquery.com/plugins/project/xpath

Hope that helps,

--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Oct 2, 2007, at 11:54 AM, corpore wrote:




..mmh, have a bit of a problem with the  XPath Contains Predicate  
Selector..


Updating code based on jQuery-1.1.3 to jQuery-1.2.1 and changing
aforementioned selectors I've found that
where something like this used to work:

$([EMAIL PROTECTED] *= smenu])

the, obviously only apparent, equivalent:

$(a:has(@id *= smenu))

does not. Where do I go wrong?







--
View this message in context: http://www.nabble.com/1.2-and--XPath- 
Contains-Predicate-Selector-tf4555667s27240.html#a13001553
Sent from the jQuery General Discussion mailing list archive at  
Nabble.com.