Questions about creating new Intel xdk pages

Asked

Viewed 58 times

0

Colleagues.

I am now starting to work on the Intel XDK. My first APP used the login template of the program and it is working properly. Adjusted 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: For me to create this page using Template List View APP, I have to create a new project or the program gives me the option to use this template directly?

1 answer

-1

What you want is to create a new page with a new template? Well, if it is... I contacted the Intel team because it interests me too, if you look at all the login pages are created in one HTML, so the calls are made within the same.

A solution they have passed:

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

Apparently right, I made it here and played the listview in the Start of Login Template.

I hope I’ve helped you and the others.

  • VNSN, the space you used is intended for answers only. Use the comments to question the author of the question in more detail.

  • is that my reputation points do not allow... :/

  • Ready, edited content

Browser other questions tagged

You are not signed in. Login or sign up in order to post.