[jQuery] Re: Can JQuery solve the iframe height=100% problem?

2009-01-25 Thread dbzz

i have the iframe hardcoded in the html. if you are adding it to the
dom with js, it won't get the load event binding. you might try
livequery or something like it.

On Jan 25, 10:21 am, "laredotorn...@zipmail.com"
 wrote:
> Hi dbzz,
>
> I tried the code you provided, but went from this ...
>
> http://screencast.com/t/W8lOtgKO
>
> to the iframe disappearing entirely ...
>
> http://screencast.com/t/jCTjOLhpeX
>
> I put your code in a $(document).ready() block (below).  Are there any
> other modifications I should make to get it to display at 100%?
>
>         $(document).ready(function() {
>                 $('#fileTreeIframe').load( function() {
>                         var $ifbody = $(this).contents().find
> ( 'body' );
>                         $ifbody.css( 'height','auto' );
>                         $(this).height( $ifbody.height() );
>                 });
>         });
>
> Thanks, - Dave


[jQuery] Re: Can JQuery solve the iframe height=100% problem?

2009-01-25 Thread dbzz

let me change that - i actually went and looked at the place i had
this working and it goes like this -

$('#fileTreeIframe').load( function() {
var $ifbody = $(this).contents().find( 'body' );
$ifbody.css( 'height','auto' );
$(this).height( $ifbody.height() );
});

...need more coffee.

On Jan 25, 7:36 am, dbzz  wrote:
> see if this works. chances are that the iframe content hasn't loaded
> yet when onready runs, so bind the height change to the iframe load
> callback.
>
>         var $ifbody = $('#fileTreeIframe').contents().find( 'body' );
>         $ifbody.bind( 'load', function() {
>                 $('#fileTreeIframe').height( $ifbody.height() );
>         });


[jQuery] Re: Can JQuery solve the iframe height=100% problem?

2009-01-25 Thread dbzz

see if this works. chances are that the iframe content hasn't loaded
yet when onready runs, so bind the height change to the iframe load
callback.

var $ifbody = $('#fileTreeIframe').contents().find( 'body' );
$ifbody.bind( 'load', function() {
$('#fileTreeIframe').height( $ifbody.height() );
});


[jQuery] Re: Get TD Position [X, Y]

2009-01-08 Thread dbzz

maybe you could skip the positioning and just put the sub menu in the
td -
$(".left_menu_td").mouseover(function(){
$("#sub_menu").prependTo( this ).show();
});


[jQuery] Re: Smarter way to write this repetitive code?

2008-12-22 Thread dbzz

and if you have _really_ a lot of elements...
instead of a listener on each, just use one -

var $hl = $('.headline');
$hl.click(function(e) {
$('.article-text').eq( $hl.index(e.target) ).fadeIn();
});

On Dec 21, 5:57 am, Kean  wrote:
> Some performance improvement, especially if you have a lot of
> elements.
>
> var txt = $('.article-text');
>
> $('.headline').each(function(i) {
>   $(this).click(function() {
>     $(txt[i]).fadeIn();
>   })
>
> });


[jQuery] Re: jQuery Forum

2008-09-01 Thread dbzz

some people actually prefer emails. ( i'm not one of them ) but, no
problem, i just signed up here:
http://groups.google.com/group/jquery-en/subscribe
and checked the 'no emails' option.
then you can view threads like this:
http://groups.google.com/group/jquery-en/browse_thread/thread/461a3b577abb59b1#
cheers,
db

On Aug 30, 5:41 am, "Andy Horsman" <[EMAIL PROTECTED]> wrote:
> Will there ever be an official jQuery forum?  Mailing lists are kinda
> annoying and unorganized compared to forums.
>
> --
> Regards,
> Andrew Horsmanhttp://theroboticsuniverse.com


[jQuery] new plugin: jClocke

2007-11-20 Thread dbzz

i have been working on a plugin and have gotten to the point where i
think i need some feedback. i'm sure there are bugs and code that
could be better or is just bad practice. i haven't done any docs or
extensive demos - this is just sort of a proof of concept. so have a
look and feel welcome to reply.

http://briskey.com/jClocke

cheers,
db