Page 2 of 9

App converted to new builder a mess

Posted: Fri Mar 08, 2013 5:49 pm
by maxkatz

[quote:]
If I test my app via the test link, the navigateto from my login screen no longer works, instead it goes to my splash page, though it does go to the right page on my phone.
[/quote]
How did you define this navigation?


App converted to new builder a mess

Posted: Fri Mar 08, 2013 11:01 pm
by Barbara

Tiggr.navigateTo('recipe', {
transition: 'slide',
reverse: false
})


App converted to new builder a mess

Posted: Fri Mar 08, 2013 11:08 pm
by Barbara

That's how the code should look, but in my converted app it is part of this code, which looks corrupt to me.

if(value.substring(0,8)=='inactive' value.substring(0,9)=='suspended' value.substring(0,6)=='active' || value.substring(0,9)=='cancelled') {	if(value.substring(0,6)=='active') {		//clear all stored data		localStorage.clear(); 		//store user for later use 		var user = Tiggr('user').val(); 		localStorage["user"] = user; 		//store password details if remember me checked, remove if not	 		if ($("input[type='checkbox']:first").attr("checked")) { 	var pass = Tiggr('pass').val() 	localStorage["pass"] = pass; 		 	localStorage["remember"] = 'yes'; 		} else if (localStorage["pass"] != undefined) { 	localStorage.removeItem("pass"); 		} 		Tiggr.navigateTo('recipe', { 	transition: 'slide', 	reverse: false 		}) 	} else if(value.substring(0,9)=='suspended') {		var parsed = value.split('|');		var susmsg = parsed[1];					localStorage['status']='suspended';					//clear all stored data		localStorage.clear(); 		//store user for later use 		var user = Tiggr('user').val(); 		localStorage["user"] = user; 		//store password details if remember me checked, remove if not	 		if ($("input[type='checkbox']:first").attr("checked")) { 	var pass = Tiggr('pass').val() 	localStorage["pass"] = pass; 		 	localStorage["remember"] = 'yes'; 		} else if (localStorage["pass"] != undefined) { 	localStorage.removeItem("pass"); 		} 		Tiggr.navigateTo('recipe', { 	transition: 'slide', 	reverse: false 		})	 		} else if(value.substring(0,9)=='cancelled') {			toast('Your database and account have been removed.');	} else {		var parsed = value.split('|');		var susmsg = parsed[1];					localStorage['status']='inactive';					//clear all stored data		localStorage.clear(); 		//store user for later use 		var user = Tiggr('user').val(); 		localStorage["user"] = user; 		//store password details if remember me checked, remove if not	 		if ($("input[type='checkbox']:first").attr("checked")) { 	var pass = Tiggr('pass').val() 	localStorage["pass"] = pass; 		 	localStorage["remember"] = 'yes'; 		} else if (localStorage["pass"] != undefined) { 	localStorage.removeItem("pass"); 		} 		Tiggr.navigateTo('recipe', { 	transition: 'slide', 	reverse: false 		})	 		 		}			} else {		if (value.substring(0,2)=='no') {		toast('Invalid User or Password...');	} else if (value.substring(0,8)=='inactive') {		toast('User Not Active...').addClass('messageboxerror');	} else if (value.substring(0,7)=='invalid') {		toast('Please Sign up for Web Recipe Manager...');	} else if (value.substring(0,4)=='nodb') {		toast("Sorry we're having technical issues, please try again soon...");	} else {		toast(value);	}}


App converted to new builder a mess

Posted: Fri Mar 08, 2013 11:11 pm
by Barbara

It doesn't look like that either, as all the escape characters have resolved in the message, so I don't know how to show you how it actually looks.


App converted to new builder a mess

Posted: Fri Mar 08, 2013 11:15 pm
by Barbara

Here's a screenshot

Image


App converted to new builder a mess

Posted: Sat Mar 09, 2013 12:44 am
by maxkatz

code
Tiggr.navigateTo('recipe', {
transition: 'slide',
reverse: false
})
/code

and to what are you actually taken? What if instead of using this JavaScript, you use the Navigate to Page action directly.

As for the code you pasted, did you try replacing the code with the code that has valid syntax?


App converted to new builder a mess

Posted: Sat Mar 09, 2013 8:16 am
by Barbara

I am taken to my splash page. I can't use the navigate to page action directly as it is dependant on what is returned from the rest service.

I shouldn't have to fix the corrupt code - YOU SHOULD!!!


App converted to new builder a mess

Posted: Sat Mar 09, 2013 3:30 pm
by maxkatz

All you need to do is to copy and paste the code. It would be much faster to do it for you than for us to get a backup, update it and send it back to you.


App converted to new builder a mess

Posted: Sun Mar 10, 2013 12:14 am
by Barbara

Judging by Neil's message this will not be the only corrupt code. Can you please tell me if there is a way to change the permissions in my unconverted project?


App converted to new builder a mess

Posted: Sun Mar 10, 2013 4:41 am
by maxkatz

Unconverted - you mean the one from Flash builder?