Creating Mobile Apps with jQuery Mobile by 2013

Creating Mobile Apps with jQuery Mobile by 2013

Author:2013
Language: eng
Format: epub
Publisher: Packt Publishing


Note

WARNING: cURL and other server-side proxy libraries are very powerful and, thus, very dangerous tools. Do not parameterize the URL that you intend to hit with this page. Hard code the URL. If you must take a parameter from the calling URL to build your destination, then you must escape all parameters. If you do not, you can rest assured that someday a hacker is going to have a lot of fun with your site with cross-site scripting (https://www.owasp.org/index.php/Cross-site_Scripting_(XSS)).

Next, let's add some buttons to the top. One for our Twitter feed, and one for Ars Technica. The final source for this next part will be in the file index.html in the code bundle for the chapter:

<div data-role="header"> <h1>News</h1> </div> <div data-role="footer"> <div data-role="navbar"> <ul> <li><a id="twitter" href="#" class="ui-btn-active">Twitter</a></li> <li><a id="ars" href="#">Feed</a></li> </ul> </div> </div> <div data-role="content"> <ul id="results" data-role="listview" data-dividertheme="b"></ul> </div>



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.