[jQuery] Re: document.ready - how to make sure all js is loaded?
check if there is callback for cometchat and attach your events there On Jul 13, 10:12 am, Veeru swamyve...@gmail.com wrote: I have an example for the scenario I am using cometchat in my application. Its a third party script, that provides a chat interface to the website. It adds some containers to the body of the document. One such container is cometchatbase. I want attach something to this container on document.ready. But by the time document.ready is fired, the container is not generated, so $j (#cometchatbase) returns null. Does this mean, before the cometchat.js has finished executing document.ready has already fired? Thanks Vru
[jQuery] Get jQuery object from collection
I have collection: var collection = $(input); var i = 3; Is there easier way to get third jquery object from collection. Currently i'm using method like $(collection.get(i)) or $(collection[i]) But i think something like this could be more comfort: example: collection.get(i).addClass('blah');
[jQuery] Re: Get jQuery object from collection
Not really. My question is there function like .get() that returns jQuery object instead of dom element On Jun 16, 2:04 pm, waseem sabjee waseemsab...@gmail.com wrote: var collection = $(input); collection.each(function(i) { collection.addClass(blah); if(i == 3) { } }); did you mean something like that ? On Tue, Jun 16, 2009 at 12:59 PM, Lauri B. lau...@gmail.com wrote: I have collection: var collection = $(input); var i = 3; Is there easier way to get third jquery object from collection. Currently i'm using method like $(collection.get(i)) or $(collection[i]) But i think something like this could be more comfort: example: collection.get(i).addClass('blah');
[jQuery] Re: Get jQuery object from collection
i guess that is .eq(i) :)
[jQuery] Iframe auto height
I can't find any cross browser solution for setting iframe height depending on its content.
[jQuery] Re: findValue
Didn't try it, but maybe you should use if($Suggest == ''){ alert(we donot have any matching result); }