var my_params = {
 thumUrl : thumb
};
if(viewer != null){
 document.getElementById("some_id").onclick = function(){gotoCanvas(gadgets,my_params);};
}
/*********************************************************/
//function definition...
function gotoCanvas(gadg,params) {
 var canvas_view = new gadg.views.View("canvas");
 gadg.views.requestNavigateTo(canvas_view, params);
}
/*********************************************************/
retrieve this on canvas page using :
// name matches the myparams variable declared on top...
var xx = prefs["thumUrl"];
Wednesday, February 27, 2008
OS: passing params to views..
Subscribe to:
Post Comments (Atom)
 

No comments:
Post a Comment