Doubts in creating new pages xdk Intel

0

Colleagues.

I'm now starting to mess with the Intel XDK. My first APP used the program login template and is working properly. Set it as below:

function signIn(){

            var login=$('#loginAcesso').val();
            var senha=$('#senhaAcesso').val();  

            $.ajax({            
            url:"validar.php",  
            type:"post",                
            data: "login="+login+"&senha="+senha,   
            success: function (result){         
                        if(result==1){                      
                            location.href='sistema/index.html'  
                        }else{   
                            valid_login = false;
                                if(valid_login){
                                    $.afui.loadContent("#main", null, null, "fade");
                                }
                                else
                                {
                                    //Example use of the error toast api
                                    var opts={
                                        message:"Login ou senha inválidos",
                                        position:"tc",
                                        delay:2000,
                                        autoClose:true,
                                        type:"error"
                                    };
                                    $.afui.toast(opts);
                                } // fim do valid.login                            

                        }
                    }
        })
        return false;
 } // fim da function signIn()

My question is: To create this page using the List View APP Template, do I have to create a new project or does the program give me the option to use this template directly?

    
asked by anonymous 28.10.2016 / 23:16

1 answer

-1

What do you want to create a new page with a new template? Good if it is ... I got in touch with the Intel team as it interests me too, if you look at all the login pages are created in a single HTML, so the calls are made inside the same.

One solution that they have gone through:

  • Create two projects;
  • Merge the codes;
  • Arrange layout calls;

Apparently, I made it here and I threw the listView into Login Template Start .

I hope I have helped you and the others.

    
31.03.2017 / 15:33