Featured Posts

jQuery Autocomplete: How To Search From The Start I came across a problem using the autocomplete function in jQuery. I use a search for countries, and I want the result to start with the letter I fill in the textbox, but...

Readmore

ShareGroundz Rss

Like StarCraft 2?

Posted on : 22-05-2011 | By : CasB | In : News

0

After watching some casts by Husky, HD and Matron, I decided to start playing StarCraft 2 myself. Now, I’m hooked, although I’m such a noob. Watching these replays allow me to learn some interesting builds, tactics and hopefully come to my advantage. Also, it’s just very entertaining to watch pro-gamers play.

If you like to watch the best StarCraft 2 replays/casts, check out this site:

http://www.epicstarcraft2replays.com

Share your wifi and get free wifi back

Posted on : 04-05-2011 | By : CasB | In : News

Tags: , , ,

0

Recently, some telephone companies in The Netherlands decided that they are going charge customers for using popular apps like Whatsapp, eBuddy and some more. If you don’t pay, you can’t use that app.

Ubuntu 11.04 is released!

Posted on : 28-04-2011 | By : CasB | In : News

Tags: ,

0

The biannual release of Ubuntu got out today.

You should try it, it’s worth it. Just install it on your windows-partition, reboot, and load Ubuntu. If you don’t like it, reboot again, choose windows, go to software and uninstall. But I suggest to try it for a few days.

http://www.ubuntu.com/

jQuery Autocomplete: How To Search From The Start

Posted on : 21-03-2011 | By : CasB | In : News

Tags: , , , ,

0

I came across a problem using the autocomplete function in jQuery.

I use a search for countries, and I want the result to start with the letter I fill in the textbox, but instead, I got all the results containing the user input.

I spent some time searching for an answer, but I couldn’t find anything, so I started to look in the source (in my case: jquery-ui-1.8.9-custom.min.js).

In the autocomplete function, I ended up changing this:

filter:function(a,b){var f=new RegExp(d.ui.autocomplete.escapeRegex(b),"i");

to this:


filter:function(a,b){var f=new RegExp("^" + d.ui.autocomplete.escapeRegex(b),"i");

Now it finally works properly.

Don’t you just love it when Phil Hellmuth gets a bad beat?

Posted on : 15-02-2011 | By : CasB | In : News

Tags: ,

0

More poker videos