BAlexandre Plennevaux wrote:
Hello Klaus,
great: although i used TB2 quite a lot (that's what got me into jquery in
the first place), as i grew more used to the jquery way of coding, i prefer
the reloaded code.
$("element").thickbox();
I'm now trying to hack your implementation so that it allows relative width
and height (in percentage).
That should already be supported, because you're able to specify the
width and height for each thickbox, like:
$("element").thickbox({ width: '50%', height; '50%' });
Doing so, i discovered your implementation does not allow the use of iframes
if the target sits on the same domain. Am i correct?
Yes. I don't see the need for the usage of an iframe if you're in the
same domain.
Personally, i would use the rel attribute to specify manually what kind of
thickbox i want to have, I find automatic detection quite magickal but it
gets in my way in this particular case.
The rel attribute actually has some meaning and I don't think it should
be used for such kind of processing (I'd consider that as obtrusive). A
user agent may provide some useful information depending on the value of
the rel attribute, whereas a value of say "iframe" is obtrusive/useless
for a user.
But don't worry, I'm planning to make thickbox reloaded extensible, e.g.
next to the 5 build-in thickbox builders, you can provide your own,
overwrite the existing ones that is.
-- klaus