View Single Post
Old 11/17/2009, 04:32 AM   #10 (permalink)
Laxidasical
Member
 
Laxidasical's Avatar
 
Join Date: Jul 2004
Location: Chicago
Posts: 539
Thanks: 58
Thanked 51 Times in 36 Posts
Default

Quote:
Originally Posted by webostech View Post
Hi,

I have modified my stageAssistant to
Code:
function StageAssistant () {savemenu = {}; }
and my switch menu to
Code:
 switch(event.command) 
	{
case 'save-items':
		savemenu.text1 = $('textField1').value;
		savemenu.text2 = $('textField2').value;
		savemenu.text3 = $('textField3').value;
		savemenu.text4 = $('textField4').value;
Mojo.Controller.stageController.pushScene("saveitems", savemenu.text1, savemenu.text2,  savemenu.text3, savemenu.text4 );
break;
}
when i call the argument it gives me undefined.

Kindly suggest
Sorry for the LATE reply, happened to come across this again. I saved my namespace in the setup function of the stage controller in order to make it global. I did the same thing in an app controller as well.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
- Track your lost or stolen webOS device from anywhere!
Laxidasical is online now   Reply With Quote