Skip to main content

Posts

Showing posts from January, 2013

JQuery Mobile - Dialog demo

Dialog is used in JQuery Mobile to show user information or to get user response as similar to confirm in javascript. The JQuery Mobile code sample to achieve the same feature as Confirm in javascript is as below <!DOCTYPE html> <HTML>        <HEAD>         <TITLE>Dialog Demo</TITLE>         <meta name="viewport" content="width=device-width, initial-scale=1">         <link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css"/>         <script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>         <script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script>     </HEAD>     <BODY>         <div id="pgDemoDialog" data-role="page" data-theme="c">             <div data-role="header" data-position="fixed" data-theme="

Enable Mobile Browser Debugging

.   1. Download Node.JS from http://nodejs.org/ 2. Install Node.JS 3. Along with Node.JS H:/> is also installed. 4. Go to H:/> 5. Type in H:/> npm install weinre 6. Type in H:/> cd node_modules 7. Type in H:/ node_modules > cd .bin 8. Type in H:/ node_modules / .bin > weinre –boundHost <IP Address> 9. Go to Firewall 10. Select Inbound Rules 11. Click on “New Rule” on right side 12. Select Port and click on Next> 13. Add port 8080, 8090 in “Specific local Ports” text box and click Next> 14. Enter name and click on Finish 15. Open chrome and enter address http://<IP Address> : 8080