Hm, strange effects here: http://www.pixeline.be/experiments/ThickboxToJqModal/ while the window resizes... I don't like them. Can i turn them off and put dowload.gif or something similar instead? I also need gallery with one or more pictures (<img />) preview like in thickbox. Is it possible with jqModal?
On 9 авг, 21:47, LicH <[EMAIL PROTECTED]> wrote: > Oh! Thanks a lot! > > On 9 авг, 22:32, "Alexandre Plennevaux" <[EMAIL PROTECTED]> wrote: > > > hi there, > > > since then i resolved the issue by switching completely to jqModal. > > Very glad i did. If you are interested, I wrote a how-to it's not that > > difficult and it ends up being much more responsive. > > >http://www.pixeline.be/blog/2008/javascript-loading-external-urls-in-... > > > Alexandre Plennevaux > > LAb[au] > > >http://www.lab-au.com > > > 2008/8/9 LicH <[EMAIL PROTECTED]>: > > > > Don't you have any problems with jquery 1.2.6 and thickbox 3.1? > > > I can't run thickbox after jquery 1.2.4. > > > I also use jQuery.noConflict() but I don't think that's it. > > > > On 27 июн, 11:32, "Alexandre Plennevaux" <[EMAIL PROTECTED]> wrote: > > >> Hello! > > > >> I have a strange issue, since Firefox 3 came up: i use thickbox to > > >> launch a > > >> page inside a modal window. On this page runs a custom plugin that > > >> resizes > > >> automatically a div to the available window height. I then use > > >> jscrollpane > > >> to have a good looking custom scrolbar appended to that div. > > > >> What happens now is that on page load the new height calculation amounts > > >> to > > >> 0. If i refresh the page, then the height is correctly evaluated. > > > >> Here is the plugin i made, can someone help me find and correct the bug? > > >> I've tried everything i could to make it work, but so far... failed. The > > >> bug > > >> only occurs with Firefox 3. > > > >> jQuery.fn.setScrollableArea = function(modifier){ > > >> var availableHeight = jQuery(window).height(); > > >> return this.each(function(){ > > >> var offset = jQuery(this).offset(); > > > >> modifier = (typeof modifier == 'undefined') ? 0 : modifier; > > >> var newHeight = availableHeight - offset.top - modifier; > > >> alert('available height='+availableHeight+ "\n > > >> top="+offset.top); // > > >> all values are calculated as 0 until i refresh the page !! > > >> jQuery(this).css({ > > >> height: newHeight, > > >> overflow: 'hidden' > > >> }); > > >> }); > > > >> } > > > >> I call it everytime i need it via: > > > >> $(document).ready(function(){ > > > >> $('#section_content').setScrollableArea(30).jScrollPane({ > > >> scrollbarWidth: 13, > > >> scrollbarMargin: 10, > > >> animateTo: true > > >> }); > > > >> }); > > > >> Any help would be much appreciated. > > >> Thank you, > > > >> Alexandre