JimmyH
Posts: 0
Joined: Sun Jan 25, 2015 5:01 am

Uncaught Error: c15r: component not found on Pageload

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

JimmyH
Posts: 0
Joined: Sun Jan 25, 2015 5:01 am

Uncaught Error: c15r: component not found on Pageload

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

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Uncaught Error: c15r: component not found on Pageload

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

JimmyH
Posts: 0
Joined: Sun Jan 25, 2015 5:01 am

Uncaught Error: c15r: component not found on Pageload

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

Return to “Issues”