Page 1 of 1

Uncaught Error: c15r: component not found on Pageload

Posted: Tue Feb 09, 2016 7:38 pm
by JimmyH

Hi there,

I added the following javascript to a page in the my app Apperyio.navigateTo('LoginScreen', {reloadPage: false}); and now when the LoginScreen page opens I get the following error:

Uncaught Error: c15r: component not found.

I have searched all the comments about this error and noticed that this was a bug that was supposed to be fixed.

Can you please indicate how I can fix this issue.

Regards
Jimmy


Uncaught Error: c15r: component not found on Pageload

Posted: Wed Feb 10, 2016 6:09 pm
by Serhii Kulibaba

Hello,

Please look at this topic: https://getsatisfaction.com/apperyio/...


Uncaught Error: c15r: component not found on Pageload

Posted: Wed Feb 10, 2016 9:34 pm
by JimmyH

Hi Serigy,

Yes I have read that post, but can you please provide a little more information.

I don't think the issue is on the current page (the password recovery page like in your tutorial) as when I change the script to: Apperyio.navigateTo('startScreen', {reloadPage: false});

I do not get the error when the startScreen loads. It seems to be specific to my LoginScreen.

On the LoginScreen I have the following JS on load (this script checks if the user has checked the stay logged in, and if so go straight to the startscreen):

//Stay logged in

var StayLoggedIn = localStorage.getItem("StayLoggedIn");
console.log(StayLoggedIn);

if ( StayLoggedIn=='true') {

Code: Select all

  Apperyio('mobilecontainer').css('background-image', 
'url("[url=http://www.xxxxxx.com/App_Files/DSxxxxxx.JPG]http://www.xxxxxx.com/App_Files/DSxxx...[/url]")'); 
 var login = localStorage.getItem("UserName");  

var pass = localStorage.getItem("Password");
AutoLogin.execute({data: {username: login, password: pass} });

} else {
$("[dsid = CheckBox] label").css("background-color","transparent");
$("[dsid = CheckBox] label").css("border","transparent");
$("[dsid = CheckBox] label").css("border","transparent");

Code: Select all

 Apperyio('mobilecontainer').css('background-image', 
'url("[url=http://www.xxxxxxx.com/App_Files/DSxxxxxx.JPG]http://www.xxxxxxx.com/App_Files/DSxx...[/url]")'); 

Apperyio('mobilecontainer').css('background-repeat','no-repeat');
Apperyio('mobilecontainer').css('background-size','cover');

Appery("LoginBtn").css("background-image","linear-gradient(#00FF00, #00FF00)");
Appery("LoggedInBtn").css("background-image","linear-gradient(#00FF00, #00FF00)");

Code: Select all

 Appery("loginInput").show(); 
 Appery("passwordInput").show(); 
 Appery("LoginBtn").show(); 
 Appery("CheckBox").show(); 
 Appery("ForgotPasswordBtn").show(); 
 Appery("CheckBox").show(); 
 Appery("RegisterBtn").show(); 

thoughts?

Thanks
James


Uncaught Error: c15r: component not found on Pageload

Posted: Fri Feb 12, 2016 5:31 pm
by Serhii Kulibaba

Please clarify, where do you use method navigateTo()? Please use in only on the service's event "success". This problem fires only if Appery.io can't find on the page components which are using in the mapping


Uncaught Error: c15r: component not found on Pageload

Posted: Sat Feb 13, 2016 6:12 am
by JimmyH

Hi Sergiy,

Thanks for that. I noted that, on "success" after the navigateTo(), I had a mapping (in a separate JS on success) and consequently I got the error.

All sorted now.

thanks very much.
James