My bad
----- Original Message ----- 
From: "T.J. Crowder" <[email protected]>
To: "Prototype & script.aculo.us" <[email protected]>
Sent: Monday, June 01, 2009 4:38 PM
Subject: [Proto-Scripty] Re: xml namespacing and selecting with $$()



@Alex:

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

"pb:liveupdate" is the tag of the element, not its ID.  $$() makes
sense for finding elements by tag name.  He's just saying that it's
not working with namespaced XML tag names for whatever rason.

@OP:

Which Prototype are you using?  The entire selector engine changed
between 1.6.0.3 (the current stable) and 1.6.1 RC2 (the latest RC for
the next release).  If you have't tried 1.6.1, may be worth a go:
http://prototypejs.org/download
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available


On Jun 1, 4:33 pm, "Alex McAuley" <[email protected]>
wrote:
> 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" <[email protected]>
> To: "Prototype & script.aculo.us" 
> <[email protected]>
> 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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to