Sorry for my lack of imagination here folks and thanks for the code
example Walter. There's some tricky and interesting prototype code in
your reply. Sometimes you just need a fresh set of eyes and a bit of
humility.
Thanks Everyone,
Josh Robinson
On Sep 30, 9:22 am, Walter Lee Davis <[EMAIL PRO
If you can put the A inside the TD, like the W3 would prefer, then
this is probably very very solveable.
If you had this:
I'm a Cell
Then you could do something like this (further down the page, or
wrapped in a document listener):
$$('a[rel~="lightbox"]').each(function(elm){
var td
Hi,
> The reason why I have an anchor around a td is because the client has
> specified to me they want to use one of these "lightbox"
> implementations.
I'm not seeing why you need to put an anchor *around* the table cell
to use lightbox.
Echoing what Justin said: What's the real requirement,
The reason why I have an anchor around a td is because the client has
specified to me they want to use one of these "lightbox"
implementations. There's a bunch of unstandardized implementations out
there, but they are quick and easy to use. For me, I'd prefer to use
some form of prototype object t
A structure like that is not valid markup and should be avoided as it
can/will produce unexpected behavior. A TD cannot have an anchor as a
parent and a TR cannot have an anchor as a direct descendent.
Furthermore, outerHTML is a proprietary Microsoft method and is not
supported in other browsers
Hi,
There are several problems with that markup. 1. You use double quotes
in your JavaScript alert when the attribute is wrapped in double
quotes. 2. You don't have a closing double quote on something (hard
to say what, given #1). 3. is not a valid child of . That's
off the top of my head, t