Arrie
Arrie

Reputation: 1337

How to add a page in a cordova application

this is probably the most noob question i have ever asked, i need to create a mobile application for my company, i have started with using Cordova 1.9, and developing in visual studio express edition for windows phone. for those who don't know this only uses html5,CSS,javascript, and some jquerymobile for the look and feel. i have googled my hair out, and yet no answer so maybe here i can get it!

How do i add a html page to a cordova app? after i press a button it should go to a new page and well go from there. if there is another way to iniciate a new page please help, even if it is with links to another site?

Upvotes: 6

Views: 4761

Answers (2)

Jerry
Jerry

Reputation: 66

Can't you do this simply by JQM button? E.g <a href="page.html" data-role="button">Button</a> Or with $.mobile.changePage( "page.html", { transition: "slideup"} );

Upvotes: 1

Zathrus Writer
Zathrus Writer

Reputation: 4331

Can you specify what you mean by adding a page?

jQuery Mobile works in a way that it intercepts your HTML links and navigates to those pages via AJAX. You should be able to load external pages this way as well - the only thing you need to set is $.support.cors, so you can to Cross-Domain requests to those pages.

Upvotes: 0

Related Questions