Showing posts from November 23, 2006

JSON: Breaking the same-server-policy Ajax barrier

The same origin policy prevents document or script loaded from one origin from getting or setting properties ( XMLHttpRequest ) of a document from a different origin. The policy dates from Netscape Navigator 2.0. This is a very important security restriction which disables rogue third-party javascripts from getting information from your authenticated banking server session. Unfortunately, this also almost completely shuts down any possibility of data sharing between multiple servers. Note the use of the word "almost", because "JSON" is the new Saviour of web2.0 world. JSON or Javascript Object Notation , is nothing but a simple data interchange format which can be easily used by javascript applications. Whats different here is that unlike XMLHttpRequest which can send back answers in any format the javascript application wants, JSON requires the answers to be in JSON format, which is basically a subset of Javascript Programming language , or to be more spec

Ajax/Web debugging with Firebug

I've been using Firefox for a long time, and have always had Web developer plugin by my side for those miserable days. This tool which can save your ass at a time when you really need to understand what the heck your Ajax code is up to. A couple of days ago I came across another such tool called  Firebug . All I have to say is that I was completely blown away by its intutive debugging style Cleaning up my messy Ajax generated code could have been a lot worse if this guy wasn't around. Here is a quick feature list * JavaScript debugger for stepping through code one line at a time * Status bar icon shows you when there is an error in a web page * A console that shows errors from JavaScript and CSS * Log messages from JavaScript in your web page to the console (bye bye "alert debugging") * An JavaScript command line (no more "javascript:" in the URL bar) * Spy on XMLHttpRequest traffic * Inspect HTML source, computed style, events, layout and the DOM

Thanksgiving updates

I played around with two interesting javascript toolkits which help you make rounded-corners in your html pages without using images. Rico and Trancorners . DD-WRT is a opensourced kernel for Broadcom based wireless routers . During my work using CSS I found some interesing CSS tips and tricks sites . OpenSuse is finally here. Release Candidate 1 (RC1) of openSUSE 10.2 is codename Basilisk Lizard. 130 Ajax Tutorials Google is planning to add its blog search engine to its main google search website Zune didn't have a USB drive mode, but now it been hacked