I have developed an iGoogle gadget. I have to access the spreadsheet of the logged in user.
First of all, how do I check whether user is logged in or not using JavaScript? Later, from the gadget, how will I implement OAuth to grant access to user's spreadsheet using JavaScript?