[jQuery] (autocomplete) how to keep the suggestion list when on blur
jQuery 1.3.2 jQuery Autocomplete plugin 1.1 I would like to - keep the suggestion list when user click outside the text field. - hide the suggestion list when user select item from the suggestion list I found a possible way, remove these lines of codes if (!config.mouseDownOnSelect) { hideResults(); } Is there any better ways to achieve this ?
[jQuery] Re: Does the ready event wait for JavaScript files to be downloaded?
Thanks to both of you. Your answers are very helpful. Sincerely, Angus On Mar 10, 9:22 pm, Iair Salem iairsa...@gmail.com wrote: I think you can use the getScript method (http://docs.jquery.com/Ajax/ jQuery.getScript) Although It does not work perfect in Safari 2 (Hey, Safari 4 is almost here!) you can use the callback function as the ready function you were asking for. It works all between the same domain, but If you want some cross domain scripts, you'll have to use what Ricardo pointed (JSONP). Iair. On 10 mar, 17:32, Angus trimk...@sbcglobal.net wrote: I am working on a Web app that will consist of virtually empty html pages to be downloaded with references in the head tag to JS files that will be used to dynamically construct the elements of the page. I have read that the ready event waits until the DOM is loaded and manipulable. Would this mean waiting until all of the JS includes have been downloaded? Thanks.- Hide quoted text - - Show quoted text -
[jQuery] Does the ready event wait for JavaScript files to be downloaded?
I am working on a Web app that will consist of virtually empty html pages to be downloaded with references in the head tag to JS files that will be used to dynamically construct the elements of the page. I have read that the ready event waits until the DOM is loaded and manipulable. Would this mean waiting until all of the JS includes have been downloaded? Thanks.
[jQuery] use jQuery selector on IE5.5
I just know that in jQuery + IE5.5 most selectors return empty array. After digging into source code I found that it will try to get the nodeName and nodeType of document (nodeType=9) which IE 5.5's document element doesn't have these two attributes. As a quick fix I add the following lines at the beginning of my HTML: if (document) { if (!document.nodeType) document.nodeType = 9; if (!document.nodeName) document.nodeName = '#document'; } and all of my selector works. Of course there should be other cases failed in IE 5.5 but at least simple selectors will work Hope this help