JQuery-Mobile: how to deploy a sample application on a device

I am new to jQuery mobile framework. I applied the sample application using jquery mobile. Now I want to deploy this application on the device. I do not know how to deploy this? please can someone help me.

Sample Application <!DOCTYPE html> <html> <head> <title>My Page< /title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" /> <script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js"></script> <script type="text/javascript" src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script> </head> <body> <div data-role="page"> <div data-role="header" data-theme="b"> <h1>My Title</h1> </div><!-- /header --> <div data-role="content"> <p>Hello world</p> </div><!-- /content --> <div data-role="footer"> <h1>End of the page</h1> </div> </div><!-- /page --> </body> </html> 

thanks

+4
source share
2 answers

jQuery mobile provides only tools for the mobile interface (mostly touch-oriented). It is used with the usual web application backend to create a mobile presentation (presentation) based on a user agent, for example. Such applications are deployed to a web server. If you want to create a device deployment application, use PhoneGap or something like that.

+3
source

Jquery is a structure that simplifies your life in modifying content through its funcitons, selectors.In instead of writing huge javascript lines. You can make your life easier with jQuery.

To check the result of your code.

You can use the handset.

Install the phonegap plugin using eclipse. Create a new project through the gap in the phone. Paste your code in index.html. Then create the code according to your choice of mobile platform. Then u can debug / run the code using Android simulators or deploy it by phone.

+6
source

Source: https://habr.com/ru/post/1382999/


All Articles