Might be a bug. Another user reported a similar problem on July 11th,
and no good resolution was offered.
Search for a ticket. If you don't find one, I think it's worth
opening one.
TAG
On Jul 30, 2007, at 11:44 AM, Ken Snyder wrote:
>
> I'm trying to do an attribute selector with a bracket, but am
> getting an
> error in IE7, FF2 on Win (see below). Are brackets in attribute
> selectors disallowed? Can I escape brackets somehow? Or maybe
> this is
> a bug?
>
> I'm calling $$('input[name="perms[9][]"]');
>
> Thanks,
>
> Ken Snyder
>
>
>
> Firebug backtrace when calling $$('input[name="perms[9][]"]'):
> - template has no properties
> initialize(undefined, undefined)
> create()
> attr(["[9]", "9", undefined, 4 more...]) <-- looks like a regex that
> doesn't allow brackets
> compileXPathMatcher()
> compileMatcher()
> initialize("input[name="perms[9][]"]")
> create()
> findChildElements(Document perms.php, ["input[name="perms[9][]"]"])
> $$()
> toggleByItem(9)
> onclick(click clientX=0, clientY=0)
> this.template = template.toString();
>
>
> I'm using it in a situation where I have a matrix of checkboxes
> with an
> "all" button column. Simplified example here:
> http://snippetsnap.com/snippets/354 (Note please ignore the space
> in "$
> $()"--snippetsnap.com can't handle "$$()" for some reason)
>
> For now, I've switched to using tr ids to identify the checkboxes, but
> using the name attribute is nice because it is less markup.
>
>
>
>
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---