Software Archive
Read-only legacy content

Redirecting or moving to view page content

xkevin
New Contributor I
315 Views

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.

0 Kudos
1 Solution
Diego_Calp
Valued Contributor I
315 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-mobile-apps-with-the-intel-xdk/

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

Regards

Diego

View solution in original post

0 Kudos
1 Reply
Diego_Calp
Valued Contributor I
316 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-mobile-apps-with-the-intel-xdk/

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

Regards

Diego

0 Kudos
Reply