>> " 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."

In fact, why not have it simply as an option in the plugin parameters?

It would lead to let the developer specify its own class names that seems
quite clean to me

$("a.ajaxModal").thickbox({mode: 'ajax'});

$("a.iframeModal").thickbox({mode: 'iframe'});

$("a.innerModal").thickbox({mode: 'inner'});

...

Of course, the automagick detect is wonderful. I'm just considering a way to
bypass it for the sake of flexibility.
 








-----Original Message-----
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Klaus Hartl
Sent: mardi 15 mai 2007 17:19
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: thickbox reloaded?



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

Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.467 / Base de données virus: 269.7.0/804 - Date: 14/05/2007
16:46
 

Reply via email to