[jQuery] Re: How to access xml attribute values with Jquery?? ...that have a namespace. Ex = name:funny

2008-07-11 Thread Karl Swedberg
Glad to hear that it worked for you, Ed! For future reference, the FAQ has answers to a bunch of questions like this one. Just thought I'd point it out because sometimes the FAQ gets lost amid the large amount of documentation. http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_sele

[jQuery] Re: How to access xml attribute values with Jquery?? ...that have a namespace. Ex = name:funny

2008-07-11 Thread Ed
Worked like a charm! I used this one: $this.find("name\\:funny").attr("post"); Thanks! -Ed On Jul 11, 6:23 pm, Ariel Flesler <[EMAIL PROTECTED]> wrote: > I can think of 2 options: > > $this.find("name\\:funny").attr("post"); > > I'm not sure that will work. The other one: > > this.getElements

[jQuery] Re: How to access xml attribute values with Jquery?? ...that have a namespace. Ex = name:funny

2008-07-11 Thread Ariel Flesler
I can think of 2 options: $this.find("name\\:funny").attr("post"); I'm not sure that will work. The other one: this.getElementsByTagName('name:funny')[0].getAttribute('post'); A non jQuery solution. Sometimes the only solution available. -- Ariel Flesler http://flesler.blogspot.com/ On 11 ju