Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering jQuery Mobile

You're reading from   Mastering jQuery Mobile Design and develop cutting-edge mobile web applications using jQuery Mobile to work across a number of platforms

Arrow left icon
Product type Paperback
Published in Jul 2015
Publisher
ISBN-13 9781783559084
Length 262 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Toc

Table of Contents (12) Chapters Close

Preface 1. Getting Started FREE CHAPTER 2. Tools and Testing 3. Mobile Design 4. Call to Action – Our Main Project 5. Navigation 6. Controls and Widgets 7. Working with Data 8. Finishing Touches 9. The Next Level 10. Mobile Best Practices and Efficiency Index

Displaying information


Open up your index.php file now, along with the db.php file. We will be making changes to these files in order to make the code easier to manage and maintain. All the events data that we have created and are able to fetch from the database table is to be displayed in the Events popup, which till this moment has been displaying the Sorry, currently there are no scheduled events. message, as shown in the following screenshot:

To do this, we will be modifying the following piece of code on all the pages that we have created, which are Home, About Us, Facilities, and Catering:

<div role="main" class="ui-content">
    <h3 class="ui-title">Sorry, currently there are no scheduled events.</h3>
    <a href="#" class="ui-btn ui-corner-all ui-shadow ui-btn-inline ui-btn-b" data-rel="back">Close</a>
</div>

Instead of displaying this static message, we will now show some dynamic data here. In order to display a list of events, we will make use of...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image