3 messages in com.googlegroups.opensocial-apiRe: Passing Parameters
FromSent OnAttachments
raj20 Feb 2008 04:03 
Paul Lindner20 Feb 2008 10:58 
raj21 Feb 2008 20:59 
Subject:Re: Passing Parameters
From:raj (podt@gmail.com)
Date:02/21/2008 08:59:40 PM
List:com.googlegroups.opensocial-api

Thanks Paul. but still i could not get. Let me explain my problem.

This is my url .....friend/apps/displayAppCanvas.do? appId=xxx&userid=xxx&up_page=something.

In my xml, I am getting the page value as follows. var prefs = new gadgets.Prefs(); var page=prefs.getString("page"); alert("Page-"+page);

But always I am getting the alert box with Page=undefined. Plz help me.

On Feb 20, 11:59 pm, Paul Lindner <plin@hi5.com> wrote:

On Wed, Feb 20, 2008 at 04:04:15AM -0800, raj wrote:

I am a novice to open social. How to pass the parameters as query string and how to get that parameters using open social 0.7? Kindly help me

gadgets.views.getParams() will return data submitted as part of a requestNavigateTo request.

The Shindig gadget server supports this by adding a view-params attribute to the query string with escaped json content. For hi5 we're allowing the same view-params attribute for our canvas display url, other container implementations may differ.

Otherwise you can also use UserPrefs to accomplish the same thing. Just add up_attribute=value to the query string and proceed from there.

application_pgp-signature_part