Hi Nitin,
 
try using like this-
 
var params = gadgets.views.getParams();
var video = params.video;
Thanks [EMAIL PROTECTED] http://aakash-bapna.blogspot.com 



Date: Fri, 18 Jul 2008 02:04:45 +0530From: [EMAIL PROTECTED]: [EMAIL 
PROTECTED]: [orkut-developer] gadgets.views.getParams() Doubt!
Hello,

This is how I am trying to use it.


var params = gadgets.views.getParams();
var video = params["video"];
but video is empty

This is the URL that is generated.
http://sandbox.orkut.com/Application.aspx?appId=951686900990&appParams=%7B%22video%22%3A1%7D&uid=16535182715711573215&bpc=1
(there is a video=1 in the URL)
I am using <Require feature="views" /> also.

I guess I am missing something silly. One thing that comes to my mind is I 
switched to canvas view with parameters.

var canvas_view = new gadgets.views.View("canvas");
var params = {};
params["video"] = id;
gadgets.views.requestNavigateTo(canvas_view, params);

But my Application does not have any canvas view (as of yet). It has a generic 
view. So am I loosing params because of that?
(all the other things in view are running fine).

Thanks,
-Nitin
-- -----BEGIN GEEK CODE BLOCK-----Version: 3.12GCS d- s: a23>? C++ UL+>+++ 
P+>+++ L++ E--->+ W++ N- o? K? w+>+++ O? M? V?PS>++ PE- Y? PGP- t+ 5? X? R tv- 
b+ DI+ D G e++ h-- r-- y--------END GEEK CODE BLOCK------I understand my tests 
are popular reading in the teachers' lounge.-Calvin & Hobbes 
_________________________________________________________________
Use video conversation to talk face-to-face with Windows Live Messenger.
http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_Refresh_messenger_video_072008
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to