Community
cancel
Showing results for 
Search instead for 
Did you mean: 
xkevin
New Contributor I
76 Views

Redirecting or moving to view page content

Jump to solution

I am currently working my hybrid app. I have done with my login page. Now I am thinking what is the good approach or way to view the page content of my app. What I use in login page(index.html) is redirect method using this code:

location.href = "home.html";

So, when user successfully login in. He will redirect to the home page (home.html).

Now my home page will display some of the users data. And also there is a slide navigation here (My Account, My Inbox, My Transactions... etc.).

When I click one of the button in navigation, should I use also the redirect page (and create a landing page account.html) as I used in login page? Or just move the page to the designated div id (#account)? How to move a page to the desired page? Any sample code? Thanks for help.

Tags (2)
0 Kudos
1 Solution
Diego_Calp
Valued Contributor I
76 Views

Hi,

This blog entry, specially at the bottom of point #2 will give you a good advice of the way to go:

http://blogs.intel.com/evangelists/2015/12/31/five-useful-tips-on-getting-started-building-cordova-m...

If you are new to XDK all the document is very useful.

Regards

Diego

View solution in original post

1 Reply
Diego_Calp
Valued Contributor I
77 Views

Hi,

This blog entry, specially at the bottom of point #2 will give you a good advice of the way to go:

http://blogs.intel.com/evangelists/2015/12/31/five-useful-tips-on-getting-started-building-cordova-m...

If you are new to XDK all the document is very useful.

Regards

Diego

View solution in original post

Reply