HI.
I find the jQ  src is compressed. could you tell me what tools can compress
the js myself ?
and  in process of compress what could be problem.
Thank.




2006/11/29, Brice Burgess <[EMAIL PROTECTED]>:



Gavin M. Roy wrote:
>
> Putting my time where my mouth is in the "Stop using thickbox!" I've
> created a "modalContent" plugin.
>
> You can view it and a few examples at http://jquery.glyphix.com/
>

Gavin,

  I agree that there needs to be a good, solid, and fast modal window
framework for jQ. I've run into many downsides with thickbox -- and would
like to see these avoided (or fixed!) in any work that goes into the modal
dialogs.

  For starters; i18n seems to be completely forgotten in these plugins
(thickbox certainly included). Plugins which take strings as parameters
(such as Kelvin Luck's datepicker & rikrikrik's quickseach) make l10n
efforts easy --  in my case I wrap a translation function around the
strings
in the template that is spitting out the $(document).ready() Javascript.
Having to constantly mod plugins so that they take a variable string to
fill
out all those "title", "alt", and link text atrributes they inject is no
fun!

  Secondly, when using inline content inside a modal window -- be sure to
preserve the event bindings if you're cloning the elements! It's kind of a
pain in the ass (for the SERVER!) to resort to using an ajax call to
display
the content in order to preserve a form's customized submit event. When
the
information is already available to display a form (such as fields looked
up
from a database and made available to the template) it is plain
inefficient
to make another request so that you can display the same form but preserve
any binding associated with it. See;
http://www.nabble.com/click-event-not-working---tf2612228.html#a7311920for
clarity ;)

  Lastly, there's much work out there already done. Personally, I mucho
enjoy Thickbox's method of disabling the page (overlay) and center
focusing
the modal window -- while still allowing you to scroll the page. This is
slick -- and Klaus has further enhanced it (and reduced TB size to @ 8k)
http://www.stilbuero.de/2006/11/06/a-smoother-thickbox-with-less-code/

  I'm sure there's other issues out there to be addressed -- like using
CSS
to style the modal window's border ;) These are my pleas.

Thanks,

~ Brice




--
View this message in context:
http://www.nabble.com/Stop-using-thickbox%21-tf2704990.html#a7594544
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/




--
yours 齐永恒
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to