[jQuery] Re: class weirdness in loaded XML?!?

2009-02-16 Thread Liam Potter
why not do this $('span.mycategory').length (I've not worked with jquery and xml so I don't know anything about it) ml1 wrote: I have something very strange going on trying to create a wrapped set of elements from an xml file loaded via jquery's xmlhttprequest. The xml has a number of

[jQuery] Re: class weirdness in loaded XML?!?

2009-02-16 Thread Michael Lawson
You should wrap your string in '? so your code would be $('span[class*='mycategory'],xml).length cheers Michael Lawson Content Tools Developer, Global Solutions, ibm.com Phone: 1-919-517-1568 Tieline: 255-1568 E-mail: mjlaw...@us.ibm.com 'Examine my teachings critically, as a gold assayer

[jQuery] Re: class weirdness in loaded XML?!?

2009-02-16 Thread ml1
Thank you for the reply, but I'm afraid that doesn't work either. Using your code (after correcting the small typos with the quotes) I tried this: $(span[class*='mycategory'],x).length It still returns zero. On Feb 16, 11:15 am, Michael Lawson mjlaw...@us.ibm.com wrote: You should wrap

[jQuery] Re: class weirdness in loaded XML?!?

2009-02-16 Thread Karl Swedberg
The string does not need to be wrapped in single quotation marks. Also, why does the selector begin with a single quotation mark and end with a double? Are these just typos in the emails? Try this: $('span[class*=mycategory]',xml).length Just one set of single quotation marks, and the

[jQuery] Re: class weirdness in loaded XML?!?

2009-02-16 Thread Michael Lawson
Subject:[jQuery] Re: class weirdness in loaded XML?!? The string does not need to be wrapped in single quotation marks. Also, why does

[jQuery] Re: class weirdness in loaded XML?!?

2009-02-16 Thread ml1
@googlegroups.com                                                                             Date:       02/16/2009 11:31 AM                                                                                   Subject:    [jQuery] Re: class weirdness in loaded XML

[jQuery] Re: class weirdness in loaded XML?!?

2009-02-16 Thread John Resig
accept them.' From: Karl Swedberg k...@englishrules.com To: jquery-en@googlegroups.com Date: 02/16/2009 11:31 AM Subject:[jQuery] Re: class weirdness in loaded XML?!? The string does not need to be wrapped in single quotation marks. Also, why does the selector

[jQuery] Re: class weirdness in loaded XML?!?

2009-02-16 Thread ml1
: class weirdness in loaded XML?!? The string does not need to be wrapped in single quotation marks. Also, why does the selector begin with a single quotation mark and end with a double? Are these just typos in the emails? Try this: $('span[class*=mycategory]',xml).length Just one set

[jQuery] Re: class weirdness in loaded XML?!?

2009-02-16 Thread John Resig
harm yourself or others, only then should you accept them.' From: Karl Swedberg k...@englishrules.com To: jquery-en@googlegroups.com Date: 02/16/2009 11:31 AM Subject:[jQuery] Re: class weirdness in loaded XML?!? The string does not need