I was trying to follow the first example which is given in the official documentation . I did almost exactly like its there in documentation ( apart from changing the version of integration.js from 20 to 28. Although it didn't work for 20 also ).
When i click on the links browser doesn't respond but following is the errror which i am getting in the chrome console.
Uncaught ReferenceError: openPrimaryTab is not defined
P.S. : I have added the domains which i am accessing in the page in whitelisted domains. Also Integration.js is getting loading properly
Update : As mentioned above almost exactly means apart from changing the version no from 20 to 28 rest everything is same
I have given the reference to the document, so thought of no point in posting code which would be redundant ( nevertheless please find the link http://www.salesforce.com/us/developer/docs/api_console/api_console.pdf which i am referring to and also code is in page no 5 with a small change i.e. using version 28.0 instead of 20.0...Although using version 20.0 didn't work.