[jQuery] Re: load() event on a tag?

2009-08-10 Thread ebakunin
> > > > > > > function() { > >        $("body").prepend(' > id="example" href="css/jquery-ui.min.css" />'); > >        $.getScript("js/mail.js"); > >        $("#say_hello_box").dialog("open&

[jQuery] load() event on a tag?

2009-08-10 Thread ebakunin
Hello, When a user clicks a button I dynamically load large CSS and JS files. I handle it in this way: $("#say_hello").click(function() { $("body").prepend(''); $.getScript("js/mail.js"); $("#say_hello_box").dialog("open"); }); It works great, but the problem is that som

[jQuery] Re: Preemptively getting the "auto" height of a

2009-07-21 Thread ebakunin
Your approach worked great! Thanks a lot for the help. On Jul 21, 2:00 am, Liam Potter wrote: > take off the height in the CSS, store the computed height in a var, and > on page load set the div to the 300px, then animate to the height > contained in the var. > > ebakunin w

[jQuery] Preemptively getting the "auto" height of a

2009-07-20 Thread ebakunin
Hello, I have a with a height of 300px, overflow hidden, and a lot of text -- more than can be displayed in the . I would like to .animate() the to display the entire text. Without animation I could just use .css("height", "auto"). When I use the same code in animation -- .animate({"height":"au

[jQuery] IE focus issues when a drop-down is filled via Ajax

2008-12-22 Thread ebakunin
Hello, I have a a drop-down box ( and ) that is empty until clicked, at which time $.getJSON() adds a number of option tags. The problem is how Firefox and IE behave after the data is inserted into the down-down. FF keeps the drop-down "open" so the user can immediately view all the options. IE,

[jQuery] Re: Using $(this) in :has()

2007-12-10 Thread ebakunin
ld get you what you're looking for. > > --John > > On Dec 9, 2007 7:53 PM, ebakunin <[EMAIL PROTECTED]> wrote: > > > > > I am having trouble understanding how to use $(this) in a function. I > > would like to refer to a div container by an

[jQuery] Using $(this) in :has()

2007-12-09 Thread ebakunin
I am having trouble understanding how to use $(this) in a function. I would like to refer to a div container by an image in that container. The architecture is something like this: Ideally I would use: $(".trigger").click(function () { $(".container:has(this)").hide("slow"); }); But