Skip to main content

Posts

How to improve performance of Jquery autocomplete

I was planning to use jquery autocomplete for a site and have implemented a test version. Im now using an ajax call to retrieve a new list of strings for every character input. The problem is that it gets rather slow, 1.5s before the new list is populated. What is the best way to make autocomplete fast? Im using cakephp and just doing a find and with a limit of 10 items. Source: Tips4all

HTML/JavaScript UI widgets GUI builder

I've heard and used some of the libraries like Ext JS, qooXdoo, jQuery UI, dijit. I know there are unofficial attempts to create GUI builders but they are not really great. Any chance there is a HTML/JavaScript UI widget library with a decent GUI builder? Source: Tips4all

Javascript: undefined !== undefined?

Update - As of October 2011, some browsers (Safari 5.1, Firefox 7) no longer seem to let you change window.undefined, but some still do (Chrome 14) When I recently integrated Facebook Connect with Tersus , I initially received the error messages Invalid Enumeration Value and Handler already exists when trying to call Facebook API functions. It turned out that the cause of the problem was object.x === undefined returning false when there is no property 'x' in 'object'. I worked around the problem by replacing strict equality with regular equality in two Facebook functions: FB.Sys.isUndefined = function(o) { return o == undefined;}; FB.Sys.containsKey = function(d, key) { return d[key] != undefined;}; This made things work for me, but seems to hint at some sort of collision between Facebook's Javascript and my own. Any ideas what could cause this? Hint: It is well documented that undefined == null while undefined !== null . This is not the issue

What is the difference between " and " in JavaScript?

I saw this question and I am wondering about the same thing in JavaScript. If you use the character ' or the character " when making strings in JavaScript, the application seems to behave the same. So what is the difference between these two characters? The only advantage I have seen in using ' to build strings is that I can do stuff like: var toAppend = '<div id="myDiv1"></div>'; Instead of: var toAppend = "<div id=\"myDiv1\"></div>"; Is there any significant difference between them that I should be aware of? Source: Tips4all