Customize JQuery Autocomplete

Sunday, June 10, 2012

A few month ago I wrote a post about “Search Facebook Friends With Jquery Autocomplete”. The problem that after a while it become not relevant due to the changes in the jquery autocomplete API. Due to many requests that I got (in comments,emails, facebook, twitter) I decided to update it. So here we go...Before I start I have to admit that I don’t like the new API it is too hacky to make a custom autocomplete and it is not documented!.Before we implements "Search Facebook Friends With jQuery" we need to look at the jQuery autocomplete source code, https://github.com/jquery/jquery-ui/blob/master/ui/jquery.ui.autocomplete.js#L507....
one comment

Node.js Socket.IO and the Real-Time Web

Thursday, February 2, 2012

Today we had our 1st developers meet-up @conduit. I made a session on node.js Socket.IO and the Real-time web. You can find the slides here: http://www.slideshare.net/alonnativ/nodejs-socketio It was fun!   Keep Writing, Compiling, and Debugging Alon Nativ Follow @anativ
2 comments

Enable cross origin request with ASP.NET MVC

Wednesday, October 5, 2011

As you know you can’t make an Ajax cross domain request. The browser block this kind of requests. To enable Cross-Origin Requests (CORS) you need to add some headers to the server response: “Access-Control-Allow-Origin” and “Access-Control-Allow-Methods”. So I made a MVC filter that will allow cross domain calls: public class AllowCrossDomain : ActionFilterAttribute { public const string AllDomains = "*";   private readonly string _allowMethods; ...
tags: , , ,
7 comments

Get Detailed Notification From Facebook API

Monday, August 8, 2011

Recently I was asked question how to get the image or the comment when using Facebook FQL API to get notification. http://developers.facebook.com/docs/reference/fql/notification/ It is very easy to make an application that will show the basic notification like that looks like: “David has comment on your link” “James liked your photo” You can see more samples at this link: http://www.facebook.com/notifications.php Well there is no documentation of how to do it (and there is not even a clean way to do it) there is no column that points the the original link\image\comment. So… do we...
tags: , ,
no comments

ASP.NET MVC ImagePixel ActionResult

Sunday, July 10, 2011

Just wanted to create a web logger in MVC. The idea is the same as Google analytics that a client will send data from the "client side" to the server. The server will save the data and return “Image Pixel” just like any other normal web logger. In order to do that I have created an ImagePixel ActionResult. The server logger method will look something like that: public ActionResult Logger(string trackingData) { Log(trackingData); ...
tags: , , ,
2 comments

Google +1

Thursday, June 2, 2011

Just added Google +1 to my blog. The +1 is the Google "like" button. It should help Google to find what kind of pages people are interested in and improve the search experience.   In order the add the +1 button go to the documentation add to your page: <!-- Place this tag in your head or just before your close body tag --><script type="text/javascript" src="http://apis.google.com/js/plusone.js"></script><!-- Place this tag where you want the +1 button to render --><g:plusone></g:plusone> In some pages (this blog platform for example) you can’t add this code so you must use...
tags: , ,
one comment

Search Facebook Friends With Jquery Autocomplete

Monday, May 30, 2011

Just made a small autocomplete textbox that search a user friends from Facebook. it is a pretty simple implementation that allow the user to search for his friends. In order to use it you will need to get a valid access_token from Facebook (but you can read more in how to use the Facebook graph API at http://developers.facebook.com/docs/reference/api/ – or get a sample one). There are a few tricks in the implantation Use dataType: ‘jsonp’ – undocumented option that allow us to use jsonp instead of json Use Facebook...
23 comments