maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

App converted to new builder a mess

[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?

Barbara
Posts: 0
Joined: Mon Sep 17, 2012 8:42 am

App converted to new builder a mess

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

Barbara
Posts: 0
Joined: Mon Sep 17, 2012 8:42 am

App converted to new builder a mess

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);	}}

Barbara
Posts: 0
Joined: Mon Sep 17, 2012 8:42 am

App converted to new builder a mess

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.

Barbara
Posts: 0
Joined: Mon Sep 17, 2012 8:42 am

App converted to new builder a mess

Here's a screenshot

Image

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

App converted to new builder a mess

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?

Barbara
Posts: 0
Joined: Mon Sep 17, 2012 8:42 am

App converted to new builder a mess

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!!!

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

App converted to new builder a mess

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.

Barbara
Posts: 0
Joined: Mon Sep 17, 2012 8:42 am

App converted to new builder a mess

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?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

App converted to new builder a mess

Unconverted - you mean the one from Flash builder?

Return to “Issues”