Posts

Showing posts from November, 2012

How to Create Cross Domain Javascript API

I need to create a simple Javascript cross domain API so that I can share data across a few web sites, and also allow other websites to consume my data through Javascrript API. The following article is a good start point:   Javascript: Cross-Domain API For Your Website , or  Javascript cross-domain api for your website An example of Cross Domain Javascript API is disqus, other than many successful Google Javascript API. The complete disqus javascript API can be found from this page:    disqus embed.js . It provides good example of how to handle different browser and perform cross domain call. Note: In Asp.net, you can allow cross domain call by using following: Response . AppendHeader ( "Access-Control-Allow-Origin" , "*" ); Or you can set the cross-origin resource sharing in web.config file as indicated in article   cross-origin resource sharing How ever, IE doe not support COSR accroding to the discussion, therefore, Proxy service is required. ...

Responsive Web Design

Google has an document about  How to Building Smartphone-Optimized Websites . In this document, responsive web design is the first suggestion. I have been looking for a easy to implement responsive css framework that can change my websites layout so that they can fit to smart phone device for quite a little while. However, most of them requires more than a css file.  After searching aroung, I found a good article that introducts 10 well adopted grid frameworks  10 Lightweight & Minimal Responsive Grid Frameworks Among them, the  Simple Grid  is very clean and simple. It does not work well on IE 7 or IE 8. Other than that, it works fine.  The  Proportional Grids  is also a quite stable and simple one. For a website that involves user input, I would recommend  Base Framework which is almost ready to use so that you do not have to worry about the user input formatting. It is very important to add following line to the he...