why are you useing double dollar ...

have you tried with single ...

$('pb:liveupdate')....

I dont know about namespacing but $$ returns an array as far as i know ... 
to get the first element of such an array you need to do $$('.classname')[0]

Alex

----- Original Message ----- 
From: "chillidonut" <chillido...@gmail.com>
To: "Prototype & script.aculo.us" <prototype-scriptaculous@googlegroups.com>
Sent: Monday, June 01, 2009 2:23 PM
Subject: [Proto-Scripty] xml namespacing and selecting with $$()


>
> A quick question about using the $$() function with namespaced xhtml
> elements. Basically, I have my normal xhtml as normal xhtml, but I've
> added some custom elements that I pick up with javascript and play
> with. My document looks a bit like this:
>
> <html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en"
> xmlns:pb="http://pb/ns";>
> <head>
> <!-- scripts -->
> </head>
> <body>
> <pb:liveupdate object="posts" since="1243774162" />
> </body>
>
> but calling $$('pb:liveupdate') or $$('liveupdate') yield no elements.
> I believe (speculate) that prototype tries to parse out a selector
> from 'pb:liveupdate' (and thus finds nothing), and finds nothing from
> 'liveupdate' because the element isn't called that.
>
> Can anyone shed some light on this issue?
>
> >
> 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to