Showing posts with label HTML. Show all posts

by Steve Suehring and Janet Valade

7 BOOKS IN 1

Contents at a Glance

Book I: Getting Started with PHP & MySQL
Understanding the Languages of the Web
Installing a Web Server
Installing PHP
Setting Up MySQ
Setting Up Your Web Development Environment with the XAMPP Package
Book II: HTML and CSS
Creating a Basic Page with HTML
Adding Style with CSS
Creating and Styling Web Forms
Book III: JavaScript
Understanding JavaScript Basics
Building a JavaScript Program
Adding jQuery
Reacting to Events with JavaScript and jQuery
Troubleshooting JavaScript Programs
Book IV: PHP
Understanding PHP Basics
Building PHP Scripts
PHP and Your Operating System
Object-Oriented Programming
Considering PHP Security
Tracking Visitors with Sessions
Book V: MySQL
Introducing MySQL
Administering MySQL
Designing and Building a Database
Using the Database
Communicating with the Database from PHP Scripts
Book VI: Web Applications
Improving Your PHP Programs
Creating and Using a Web Service
Validating Web Forms with JavaScript and PHP
Building a Members-Only Website
Book VII: PHP and Templates
Configuring PHP
Building a Templating System

e-books shop
e-books shop
Purchase Now !
Just with Paypal



Book Details
 Price
 3.00
 Pages
 724 p
 File Size 
 14,193 KB
 File Type
 PDF format
 ISBN
 978-1-118-21370-4 (pbk)
 978-1-118-22874-6 (ebk)
 978-1-118-23134-0 (ebk)
 978-1-118-26617-5 (ebk)
 Copyright©   
 2013 by John Wiley & Sons, Inc  

About the Authors
Steve Suehring is the author of several technology books. Steve has written
web applications, big and small, for a variety of organizations and in a variety
of programming languages. Steve’s expertise is in finding creative solutions
to complex problems and complex solutions to simple problems.

Janet Valade is the author of PHP & MySQL For Dummies, which is in its third
edition. She has also written PHP & MySQL Everyday Apps For Dummies and
PHP & MySQL: Your visual blueprint for creating dynamic, database-driven Web
sites. In addition, Janet is the author of Spring into Linux and a coauthor of
Mastering Visually Dreamweaver CS3 and Flash CS3 Professional.
Janet has 20 years of experience in the computing field. Most recently, she
worked as a Web designer and programmer in an engineering firm for four
years. Prior to that, Janet worked for 13 years in a university environment,
where she was a systems analyst. During her tenure, she supervised the
installation and operation of computing resources, designed and developed
a data archive, supported faculty and students in their computer usage,
wrote numerous technical papers, and developed and presented seminars
on a variety of technology topics.

Introduction
Although web development has changed over the years, the actual core
details of creating a web page have stayed the same. You create a document
and put it out on the web for people to view. Of course, to put something
on the web you need to learn the special languages that are spoken
on the web. No, we’re not talking about OMG, BRB, and all the other cryptic
shorthand to communicate. We’re talking about the languages that are used
to create web documents and sites.

This book looks at many aspects of web development, including the language
used to make web pages and ways to make web pages look good,
make web pages accept information from visitors, and create programs to
create other web pages! If that seems like a lot of information, don’t worry.
It’s all broken up into manageable pieces so that you can consume the information
at your own pace.

Table of Contents
Introduction.................................................................. 1
About This Book...............................................................................................1
Foolish Assumptions........................................................................................1
How This Book Is Organized...........................................................................2
Book I: Getting Started with PHP and MySQL.....................................2
Book II: HTML and CSS...........................................................................2
Book III: JavaScript.................................................................................2
Book IV:PHP.............................................................................................2
Book V: MySQL........................................................................................2
Book VI: Web Applications....................................................................2
Book VII: PHP and Templates................................................................2
Companion Website...............................................................................3
Icons Used in This Book..................................................................................3
Where to Go from Here....................................................................................3
Book I: Getting Started with PHP & MySQL.................... 5
Chapter 1: Understanding the Languages of the Web 7
Understanding How the Web Works..............................................................7
The web browser....................................................................................8
The web server.......................................................................................8
Understanding Web Page Languages...........................................................10
Marking up with HTML.........................................................................10
Styling pages with CSS.........................................................................11
Changing behaviors with JavaScript..................................................11
Understanding the Language of Web Servers.............................................12
Building dynamic web applications with PHP and MySQL.............12
Sending the page to the browser with Apache.................................13
Choosing How You Want to Develop...........................................................14
Choosing a host for your website.......................................................14
Hosting for a company website..........................................................15
Choosing a web-hosting company......................................................16
Using a hosted website........................................................................18
Setting Up Your Local Computer for Development....................................19
Installing the web server......................................................................19
Installing PHP........................................................................................20
Installing MySQL...................................................................................20
Chapter 2: Installing a Web Server 21
Testing Your Web Server...............................................................................21
Obtaining Apache...........................................................................................22
Selecting a version of Apache.............................................................22
Downloading from the Apache website.............................................23
Obtaining Apache for Windows..........................................................23
Obtaining Apache for Linux.................................................................23
Obtaining Apache for Mac...................................................................24
Obtaining all-in-one installation kits...................................................24
Verifying a downloaded file.................................................................24
Installing Apache............................................................................................25
Installing Apache on Windows............................................................25
Installing Apache on a Mac..................................................................27
Installing Apache from source code on Linux and Mac...................27
Starting and Stopping Apache......................................................................28
Starting and stopping Apache on Windows......................................28
Starting Apache on Linux, Unix, and Mac..........................................29
Restarting Apache on Linux, Unix, and Mac......................................30
Stopping Apache on Linux, Unix, and Mac........................................30
Getting Information from Apache.................................................................31
Getting Apache information on Windows..........................................31
Getting Apache information on Linux, Unix, and Mac.....................31
Configuring Apache........................................................................................32
Changing settings..................................................................................32
Changing the location of your Document Root.................................33
Changing the port number..................................................................33
Chapter 3: Installing PHP . 35
Checking the PHP Installation.......................................................................36
Obtaining PHP.................................................................................................36
Downloading from the PHP website...................................................37
Obtaining PHP for Windows................................................................37
Obtaining PHP for Linux......................................................................37
Obtaining PHP for the Mac OS............................................................38
Obtaining all-in-one installation kits...................................................38
Verifying a downloaded file.................................................................39
Installing PHP..................................................................................................40
Installing on Unix and Linux................................................................40
Installing on Mac OS X..........................................................................42
Installation options for Unix, Linux, and Mac...................................44
Installing on Windows..........................................................................46
Configuring Your Web Server for PHP.........................................................47
Configuring your web server on Windows........................................47
Configuring Apache on Linux and Mac..............................................49
Configuring PHP..............................................................................................50
Using the XAMPP Control Panel...................................................................78
Testing Your Development Environment....................................................79
Opening the XAMPP web page............................................................80
Testing phpMyAdmin...........................................................................81
Testing PHP...........................................................................................81
Configuring Your Development Environment.............................................82
Configuring PHP....................................................................................83
Configuring Apache..............................................................................83
Configuring MySQL...............................................................................84
Uninstalling and Reinstalling XAMPP...........................................................84
Troubleshooting.............................................................................................85
Book II: HTML and CSS................................................ 87
Chapter 1: Creating a Basic Page with HTML 89
Understanding the HTML Building Blocks..................................................89
Document types....................................................................................90
Sections of an HTML Document...................................................................91
The root element..................................................................................92
The head section and title element....................................................92
The body section..................................................................................94
Creating Good HTML......................................................................................94
Using the appropriate elements.........................................................94
Putting text on a page..........................................................................95
Creating your first page.......................................................................97
Choosing block-level or inline elements............................................98
Inserting line breaks and spaces........................................................99
Making your document easier to maintain......................................101
Adding lists and tables.......................................................................102
Practicing Creating a Table.........................................................................105
Including Links and Images on Your Web Page........................................108
Adding links.........................................................................................108
Adding images.....................................................................................113
Writing Valid HTML......................................................................................116
Validating Your HTML.................................................................................117
Chapter 2: Adding Style with CSS 121
Discovering What CSS Can and Can’t Do for Your Web Page.................121
What is CSS?........................................................................................121
Why use CSS?......................................................................................122
Limitations of CSS...............................................................................122
Connecting CSS to a Page............................................................................123
Adding styling to an HTML element.................................................123
Using an internal style sheet.............................................................126
Using an external style sheet............................................................128
Targeting Styles............................................................................................129
Selecting HTML elements..................................................................130
Selecting individual elements............................................................130
Selecting a group of elements...........................................................131
Changing Fonts.............................................................................................134
Setting the font family........................................................................134
Setting font size...................................................................................136
Setting the font color..........................................................................138
Adding Borders.............................................................................................140
Changing List Styles.....................................................................................144
Changing bullet styles........................................................................145
Removing bullets................................................................................146
Adding a Background...................................................................................147
Changing the background color........................................................147
Adding a background image..............................................................150
Creating Page Layouts.................................................................................155
Creating a single-column layout........................................................155
Creating a two-column layout...........................................................159
Adding Headers and Footers to a Page......................................................163
Creating a header, header menu, and footer..................................163
Examining the HTML and CSS files...................................................166
Chapter 3: Creating and Styling Web Forms . 169
Using Web Forms to Get Information.........................................................169
Understanding web forms.................................................................170
Looking at form elements..................................................................170
Creating a Form............................................................................................172
All about the form element................................................................172
Adding a text input.............................................................................173
Adding a drop-down box...................................................................174
Creating check boxes.........................................................................176
Using radio buttons............................................................................178
Submitting and clearing the form.....................................................179
Using CSS to Align Form Fields...................................................................180
Book III: JavaScript................................................... 185
Chapter 1: Understanding JavaScript Basics 187
Viewing the World of JavaScript.................................................................187
JavaScript isn’t Java...........................................................................187
Knowing what JavaScript can do......................................................188
Examining the Ways to Add JavaScript to a Page....................................188
Adding the JavaScript tag..................................................................189
Adding JavaScript to a page’s HTML................................................189
Using external JavaScript..................................................................190
Chapter 2: Building a JavaScript Program . 191
Getting Started with JavaScript Programming..........................................191
Sending an alert to the screen..........................................................191
Adding comments...............................................................................193
Holding data for later in variables....................................................193
Holding multiple values in an array.................................................195
Creating strings to keep track of words...........................................195
Working with numbers.......................................................................196
Testing Things with Conditionals...............................................................197
Performing Actions Multiple Times with Loops.......................................200
For what it’s worth.............................................................................200
While you’re here................................................................................203
Using Functions to Avoid Repeating Yourself..........................................203
Creating functions..............................................................................204
Adding function arguments...............................................................204
Calling a function................................................................................204
Improving the addNumbers function...............................................205
Returning results from functions......................................................207
Objects in Brief.............................................................................................208
Creating objects..................................................................................208
Adding properties to objects............................................................209
Working with HTML Documents.................................................................210
Accessing HTML with JavaScript......................................................211
Using GetElementById to access a specific element......................211
Working with Web Browsers.......................................................................214
Detecting the browser........................................................................214
Redirecting to another page..............................................................216
Chapter 3: Adding jQuery . 219
jQuery Introduced........................................................................................219
Installing jQuery............................................................................................220
Installing jQuery locally.....................................................................220
Using CDN-hosted jQuery..................................................................221
Adding jQuery to a Page..............................................................................221
Adding local jQuery to a page...........................................................221
Adding CDN jQuery to a page............................................................222
Incorporating the jQuery ready() Function..............................................223
Selecting Elements with jQuery..................................................................225
jQuery selectors up close..................................................................226
Filtering................................................................................................227
Working with HTML Using jQuery..............................................................227
Adding HTML to a page......................................................................227
Changing elements.............................................................................230
Changing Attributes and Styles..................................................................232
Reading attributes..............................................................................233
Writing attributes...............................................................................234
Changing CSS.......................................................................................237
Chapter 4: Reacting to Events with JavaScript and jQuery . 241
Understanding Events..................................................................................241
Working with Forms.....................................................................................242
Adding a Submit Handler...................................................................242
Checking for blank fields....................................................................246
Monitoring Mouse Events............................................................................247
Capturing mouse clicks......................................................................247
Watching mouse movements............................................................251
Reacting to Keyboard Events......................................................................254
Counting characters...........................................................................254
Preventing character input................................................................257
Chapter 5: Troubleshooting JavaScript Programs 261
Employing Basic JavaScript Troubleshooting Techniques.....................261
Adding alerts.......................................................................................262
Using comments in JavaScript..........................................................262
Identifying JavaScript Problems with Firebug..........................................264
Installing Firebug................................................................................264
Using Firebug.......................................................................................266
Book IV: PHP............................................................ 269
Chapter 1: Understanding PHP Basics 271
How PHP Works............................................................................................271
Examining the Structure of a PHP Script...................................................273
Looking at PHP Syntax.................................................................................275
Using simple statements....................................................................276
Using complex statements.................................................................276
Writing PHP Code.........................................................................................277
Displaying Content in a Web Page..............................................................278
Using PHP Variables.....................................................................................281
Naming a variable...............................................................................282
Creating and assigning values to variables.....................................282
Using variable variables.....................................................................283
Displaying variable values.................................................................284
Using PHP Constants....................................................................................287
Understanding Data Types..........................................................................288
Working with integers and floating-point numbers........................289
Working with character strings........................................................292
Working with the Boolean data type................................................295
Working with the NULL data type....................................................296
Using Arrays..................................................................................................296
Creating arrays....................................................................................296
Viewing arrays.....................................................................................298
Removing values from arrays............................................................299
Sorting arrays......................................................................................299
Getting values from arrays................................................................301
Walking through an array..................................................................302
Storing values with multidimensional arrays..................................305
Using Dates and Times.................................................................................307
Setting local time................................................................................307
Formatting a date................................................................................308
Storing a timestamp in a variable.....................................................309
Understanding PHP Error Messages..........................................................310
Types of PHP error messages...........................................................310
Displaying error messages................................................................313
Logging error messages.....................................................................315
Adding Comments to Your PHP Script......................................................316
Chapter 2: Building PHP Scripts . 319
Setting Up Conditions..................................................................................320
Comparing values...............................................................................320
Checking variable content.................................................................322
Pattern matching with regular expressions....................................323
Joining multiple comparisons...........................................................327
Using Conditional Statements.....................................................................329
Using if statements.............................................................................330
Using switch statements....................................................................333
Repeating Actions with Loops....................................................................335
Using for loops....................................................................................335
Using while loops................................................................................339
Using do..while loops.........................................................................341
Avoiding infinite loops.......................................................................343
Breaking out of a loop........................................................................344
Using Functions............................................................................................346
Creating a function.............................................................................347
Using variables in functions..............................................................347
Passing values to a function..............................................................349
Returning a value from a function....................................................354
Using built-in functions......................................................................356
Organizing Scripts........................................................................................357
Separating display code from logic code.........................................357
Reusing code.......................................................................................358
Organizing with functions..................................................................358
Organizing with include files.............................................................359
Chapter 3: PHP and Your Operating System . 365
Managing Files...............................................................................................366
Getting information about files.........................................................366
Copying, renaming, and deleting files..............................................368
Organizing files....................................................................................369
Using Operating System Commands..........................................................372
Using backticks...................................................................................373
Using the system function.................................................................374
Using the exec function......................................................................375
Using the passthru function..............................................................376
Accessing error messages from system commands......................376
Understanding security issues..........................................................377
Using FTP.......................................................................................................378
Logging in to the FTP server.............................................................379
Getting a directory listing..................................................................380
Downloading and uploading files with FTP.....................................380
Looking at other FTP functions.........................................................382
Reading and Writing Files............................................................................383
Accessing files.....................................................................................384
Writing to a file....................................................................................386
Reading from a file..............................................................................387
Exchanging Data with Other Programs......................................................390
Exchanging data in flat files...............................................................390
Exchanging data in comma-delimited format.................................390
Using other delimiters........................................................................391
Using SQLite..................................................................................................394
Chapter 4: Object-Oriented Programming 397
Introducing Object-Oriented Programming..............................................397
Objects and classes............................................................................398
Properties............................................................................................399
Methods...............................................................................................399
Inheritance...........................................................................................400
Developing an Object-Oriented Script.......................................................400
Choosing objects................................................................................401
Selecting properties and methods for each object........................401
Creating and using an object.............................................................402
Defining a Class.............................................................................................402
Writing a class statement..................................................................403
Setting properties...............................................................................403
Accessing properties using $this......................................................404
Adding methods..................................................................................405
Understanding public and private properties and methods........407
Writing the constructor.....................................................................409
Putting it all together.........................................................................410
Using a Class in a Script...............................................................................413
Using Abstract Methods in Abstract Classes and Interfaces..................415
Using an abstract class......................................................................415
Using interfaces...................................................................................417
Preventing Changes to a Class or Method................................................418
Handling Errors with Exceptions................................................................419
Copying Objects............................................................................................420
Comparing Objects.......................................................................................421
Getting Information about Objects and Classes.......................................422
Destroying Objects.......................................................................................423
Chapter 5: Considering PHP Security 425
Securing the Server......................................................................................425
Hardening the server..........................................................................425
Using a firewall....................................................................................426
Securing Apache...........................................................................................426
Securing PHP applications with SuExec..........................................426
mod_security.......................................................................................427
Setting Security Options in php.ini............................................................428
Handling Errors Safely.................................................................................429
Understanding the dangers...............................................................429
Testing for unexpected input............................................................430
Handling the unexpected...................................................................431
Checking all form data.......................................................................431
Sanitizing Variables......................................................................................432
Converting HTML special characters...............................................432
Uploading Files without Compromising the Filesystem................433
Avoiding DoS attacks on the filesystem...........................................433
Validating files.....................................................................................433
Using FTP functions to ensure safe file uploads.............................434
Chapter 6: Tracking Visitors with Sessions . 437
Understanding Sessions and Cookies........................................................437
Looking at sessions............................................................................437
Working with cookies.........................................................................438
Checking if cookies are enabled.......................................................438
Using Sessions to Pass Data........................................................................440
Starting a session................................................................................440
Closing a session.................................................................................445
Using session_write_close()..............................................................445
Understanding Other Session Options......................................................446
Book V: MySQL......................................................... 447
Chapter 1: Introducing MySQL 449
Examining How MySQL Works....................................................................449
Understanding Database Structure............................................................450
Communicating with MySQL.......................................................................450
Building SQL queries..........................................................................451
Sending SQL queries...........................................................................452
Using the mysql client........................................................................453
Protecting Your MySQL Databases............................................................454
Chapter 2: Administering MySQL . 457
Understanding the Administrator Responsibilities.................................457
Default Access to Your Data.......................................................................458
Controlling Access to Your Data................................................................459
Account names and hostnames........................................................460
Passwords............................................................................................461
Account privileges..............................................................................461
Setting Up MySQL Accounts........................................................................462
Identifying what accounts currently exist.......................................464
Adding accounts.................................................................................465
Adding and changing passwords......................................................465
Changing privileges............................................................................466
Removing accounts............................................................................467
Backing Up Your Database..........................................................................468
Backing up on Windows.....................................................................469
Backing up on Linux, Unix, and Mac................................................469
Restoring Your Data.....................................................................................471
Upgrading MySQL.........................................................................................473
Chapter 3: Designing and Building a Database . 475
Designing a Database...................................................................................475
Choosing the data...............................................................................475
Organizing the data............................................................................477
Creating relationships between tables............................................480
Storing different types of data..........................................................481
Designing a Sample Database.....................................................................484
Writing Down Your Design..........................................................................487
Building a Database......................................................................................489
Creating a new database....................................................................489
Creating and deleting a database.....................................................490
Adding tables and specifying a primary key...................................491
Removing a table................................................................................493
Changing the Database Structure...............................................................494
Chapter 4: Using the Database 497
Adding Information to a Database..............................................................498
Adding one row at a time...................................................................498
Adding a bunch of data......................................................................500
Looking at the Data in a Database..............................................................502
Retrieving Information from a Database...................................................502
Retrieving specific information.........................................................503
Retrieving data in a specific order....................................................505
Retrieving data from specific rows...................................................505
Combining information from more than one table.........................508
Updating Information in a Database..........................................................513
Removing Information from a Database....................................................513
Chapter 5: Communicating with the Database from PHP Scripts . 515
Knowing How MySQL and PHP Work Together........................................515
PHP Functions That Communicate with MySQL......................................516
Communicating with MySQL.......................................................................516
Connecting to the MySQL server......................................................517
Sending an SQL statement.................................................................519
Sending multiple queries...................................................................520
Selecting a Database....................................................................................521
Handling MySQL Errors...............................................................................522
Using Other Helpful mysqli Functions.......................................................523
Counting the number of rows returned by a query.......................523
Determining the last auto entry........................................................524
Counting affected rows......................................................................525
Escaping characters...........................................................................525
Converting mysqli Functions to mysql Functions....................................526
Book VI: Web Applications......................................... 529
Chapter 1: Improving Your PHP Programs 531
Automatically Including Helper Functions................................................531
Using auto_prepend_file....................................................................531
Starting sessions with a prepended file...........................................532
Using classes for efficiency................................................................534
Reusing Code.................................................................................................535
Using functions...................................................................................536
Using object-oriented programming................................................539
Chapter 2: Creating and Using a Web Service . 541
Understanding Web Services......................................................................541
Returning Data from a Web Service...........................................................542
Returning the date..............................................................................542
Returning web service data from a database..................................545
Accepting Input to a Web Service..............................................................548
Querying with input data...................................................................548
Returning XML results.......................................................................550
Returning JSON and XML...................................................................551
Chapter 3: Validating Web Forms with JavaScript and PHP 555
Understanding How to Validate Web Forms.............................................555
Always assume bad data....................................................................556
Never assume JavaScript...................................................................556
Sometimes mirror client- and server-side validation.....................556
Performing Basic JavaScript Validation....................................................557
Looking at the form HTML and CSS..................................................561
Adding JavaScript validation.............................................................563
Performing PHP Validation..........................................................................574
Validating required fields..................................................................576
Validating text.....................................................................................579
Validating drop-downs, radio buttons, and check boxes..............579
Validating numbers............................................................................580
Validating URLs and e-mail addresses.............................................581
Making sure the passwords match...................................................582
Creating a validation function...........................................................585
Chapter 4: Building a Members-Only Website 587
Understanding a Members-Only Site.........................................................588
Creating the User Database.........................................................................589
Designing the Customer database....................................................589
Building the Customer database.......................................................590
Accessing the Customer database...................................................591
Creating Base Functions..............................................................................591
Creating Web Forms.....................................................................................593
Creating the registration pages.........................................................593
Building a success page.....................................................................603
Creating the login page......................................................................604
Creating a User Object.................................................................................607
Building the User class.......................................................................607
Building the login-process PHP file..................................................610
Adding Authenticated Pages.......................................................................612
Building a protected page..................................................................612
Building a log out page.......................................................................614
Adding E-mail Functionality........................................................................618
Building the password reset database.............................................619
Building the password recovery page.............................................619
Building the process files...................................................................625
Building the class methods...............................................................628
Book VII: PHP and Templates..................................... 633
Chapter 1: Configuring PHP . 635
Understanding the php.ini...........................................................................635
Working with the php.ini...................................................................635
Making changes outside of the php.ini............................................636
Understanding Common Configuration Changes.....................................636
Changing session timeout..................................................................636
Changing other session parameters.................................................637
Disabling functions and classes........................................................637
Changing error display.......................................................................639
Changing resource limits...................................................................639
Chapter 2: Building a Templating System . 641
Understanding Template Systems..............................................................641
Building a PHP Template.............................................................................642
Creating a template class...................................................................642
Creating the top of the page..............................................................643
Creating the bottom of the page.......................................................646
Connecting the top, bottom, and middle.........................................646
Extending the Template...............................................................................650
Building an About page......................................................................650
Building a Contact page.....................................................................651
Index........................................................................ 655


Bookscreen
e-books shop

About This Book
This book is intended as both a reference and, in certain places, a tutorial.
Most of the information in the book doesn’t need to be read in a certain
order. However, certain areas build on each other and, if you find that
you’re stuck in one of the later chapters, you might find that reading an
earlier chapter will reveal the information that you need.

THE EXPERT S VOICE IN WINDOWS 10

Senthil Kumar, Lohith Goudagere Nagaraj, Pathik Rawal, Pryank Rohilla

Contents at a Glance


Getting Started with Windows 10 Applications
WinJS Fundamentals
Basic WinJS Controls
List Controls, AppBar, and ToolBar
Data Binding and Navigation
Adapting the UI for Different Screens
Application Lifecycle and Navigation
Globalization and Localization
Data Storage and App Data
Sharing Data
Background Tasks
Location and Maps in Windows Apps
Building Apps That Connect to the Cloud
Tiles and Notifications
Device Capabilities
Additional Tools
Sideloading and Windows App Certification Kit
Store and Monetization 

e-books shop
e-books shop
Purchase Now !
Just with Paypal



Book Details
 Price
 3.00
 Pages
 395 p
 File Size 
 12,008 KB
 File Type
 PDF format
 ISBN-13 (pbk)
 ISBN-13 (electronic) 
 978-1-4842-0720-8
 978-1-4842-0719-2
 Copyright©   
 2016 by Senthil Kumar,
 Lohith Goudagere Nagaraj,
 Pathik Rawal, and Pryank Rohilla 

About the Author
Senthil Kumar leads the Windows app development team at Cleartrip
Pvt. Ltd. He previously worked for Trivium eSolutions in Bangalore. His
experience spans across various technologies within the Microsoft stack,
including Windows Phone, WinForms, ASP.NET, SQL Server, C#, and Entity
Framework. He is a Microsoft MVP (Most Valuable Professional) in Windows
Platform Development and a Microsoft Certified Technology Specialist
(ASP.NET). He is a technical presenter, blogger, mentor, and a Geek. Senthil
is actively involved in the local developer communities and is an active
member and UG lead for the Bangalore .NET User Group (BDotnet). He is
a regular speaker in local user groups and conferences. He has presented
in conferences like the Great Indian Developer Summit and Microsoft
DevCamps and WebCamps. He blogs at DeveloperPublish.com. You can
reach out to Senthil via the Twitter handle @isenthil.
Lohith Goudagere Najaraj is a production engineer by education and a
software engineer by profession. He has 15 years of industry experience
in Microsoft .NET technology. He specializes in building web applications
using .NET as a platform. He is well versed in the WebForms and MVC
ways of building a web application. He has been awarded the prestigious
Microsoft Most Valuable Professional (MVP) award five years in a row. In
his day job, Lohith works as a Technical Evangelist in India. He is a regular
speaker in local user groups and conferences. He has presented in uber
conferences such as Microsoft TechEd India, the Great Indian Developer
Summit, and the Mobile Developer Summit, to name a few. He can also be
seen presenting in Microsoft DevCamps across India. He is a lead for the
Bangalore Dotnet User Group and helps run the group.
He lives in Bangalore with his lovely wife, Rashmi, and son Adithya.
He likes to listen to Bryan Adams, Raghu Dixit, and Sonu Nigam. He also
likes to watch the Ocean’s Trilogy, Italian Job, and National Treasure all the time.
Pryank Rohilla works as a collaboration solutions architect for a
Microsoft Gold partner in London. Pryank has 15 years of software
development experience in Microsoft technologies. He is Microsoft
certified and has worked as developer, consultant, architect, tech lead, and
delivery lead in various engagements. He lives in Reading, UK. His Twitter
handle is @Pryankrohilla. In his free time, Pryank enjoy watching sports
and spending time with family and friends.
Pathik Rawal is a successful technical architect and working as a Microsoft
technology architect. He has 15 years of software development experience
and he has worked on many consulting and technical assignments. Pathik is
Microsoft Certified and enthusiastic about cloud and mobile platforms. He
lives in London. He can be reached on Twitter at @Pathikrawal. Pathik enjoys
socializing with friends and family in his free time.

About the Technical Reviewer
Fabio Claudio Ferracchiati is a senior consultant and a senior analyst/developer using Microsoft
technologies. He works at BluArancio SpA (www.bluarancio.com) as Senior Analyst/Developer and
Microsoft Dynamics CRM Specialist. He is a Microsoft Certified Solution Developer for .NET, a Microsoft Certified Application Developer for .NET, a Microsoft Certified Professional, and a prolific author and technical reviewer. Over the past ten years, he’s written articles for Italian and international magazines and coauthored more than ten books on a variety of computer topics.

Introduction
With Window 10, Microsoft has brought in the concept of a "universal" application architecture to Windows, where the apps designed using UWP can run across different Windows-powered devices like PCs, tablets, smartphones, Xbox One, iOT, Surface Hub, and HoloLens.

You could develop Universal Windows Platform (UWP) apps using various technologies, like C# and
XAML, web technologies (HTML, CSS, JavaScript, and WinJS), C++, and so forth.
Examples in the book cover the development of a Universal Windows Platform (UWP) app using web
development technologies (HTML, JavaScript, and CSS). Once you have knowledge of web development technologies and you have mastered the UWP app development examples in this book, you will have a head start in building some great Windows apps that can run on almost all the devices powered by Windows.


Table of Contents
About the Authors .....................xxiii
About the Technical Reviewer ..................xxv
Acknowledgments .........xxvii
Introduction .............xxix
■■Chapter 1: Getting Started with Windows 10 Applications 1
1.1 Examining the Universal Windows Platform
1.2 Development Tools for Universal Windows Platform 
1.3 Creating Universal Windows Platform Application
1.4 Running Universal Windows Platform Apps 
■■Chapter 2: WinJS Fundamentals 15
2.1 Namespaces in JavaScript 
2.2 Add a Namespace to an Existing Namespace 
2.3 Creating a Class in WinJS 
2.4 Deriving a Class in WinJS 
2.5 Create Mixins in WinJS 
2.6 Encapsulation in WinJS 
2.7 Using Promise in WinJS 
■■Chapter 3: Basic WinJS Controls 31
3.1 Declaring a WinJS Control on a Page 
3.2 Setting Options for WinJS Controls 
3.3 Adding WinJS Controls from Your JavaScript Code 
3.4 Getting the WinJS Controls from an HTML Document 
3.5 The ToggleSwitch Control 
3.6 The DatePicker Control 
3.7 The TimePicker Control 
3.8 The Tooltip Control 
3.9 Displaying Text 
3.10 Editing Text in an App 
■■Chapter 4: List Controls, AppBar, and ToolBar 55
4.1 Using the Repeater Control
4.2 Using the FlipView Control 
4.3 Using the ListView 
4.4 Filtering Items in the ListView Control 
4.5 Grouping Items in the ListView Control 
4.6 Semantic Zoom in ListView 
4.7 Using the AppBar Control 
4.8 Using the ToolBar Control 
■■Chapter 5: Data Binding and Navigation  83
5.1 Data Bind to Simple Objects 
5.2 Data Bind Style Attributes of DOM Elements 
5.3 Use Templates for Data Binding 
5.4 Data Bind WinJS Controls 
5.5 Navigational Structures in UWP Apps 
5.6 Navigational Elements in UWP Apps 
5.7 Pivot Navigation in UWP Apps 
5.8 SplitView Navigation in UWP Apps 
5.9 Hub Navigation in UWP Apps 
5.10 Master/Detail Navigation Using ListView in UWP Apps 
■■Chapter 6: Adapting the UI for Different Screens  115
6.1 Design Breakpoints for Different Screens 
6.2 Adaptive UI Technique: Reposition 
6.3 Adaptive UI Technique: Fluid Layouts 
■■Chapter 7: Application Lifecycle and Navigation  127
7.1 Application States and Events 
7.2 Handling the Unhandled Exception in Your App 
7.3 Handling the Termination and Resuming of the App 
7.4 Using SessionState to Store the State 
7.5 Navigate Between Pages Using Hyperlinks 
7.6 Navigate Between Pages Using Single-Page Navigation
■■Chapter 8: Globalization and Localization  145
8.1 Using Resource Strings 
8.2 Formatting Date, Time, Number, and Currency 
8.3 Localizing WinJS Controls 
■■Chapter 9: Data Storage and App Data  159
9.1 How to Create and Delete a Local App Data Settings Container 
9.2 How to Create and Read Local App Data Settings 
9.3 How to Create and Retrieve Local Composite Settings 
9.4 How to Create a Roaming App Data Store Container 
9.5 How to Create and Read Roaming App Data Settings 
9.6 How to Register the Data Change Event 
9.7 How to Create, Write, and Read a Local File 
■■Chapter 10: Sharing Data 181
10.2 Share Plain Text Data to Other Apps
10.3 Share Web Links to Other Apps 
10.4 Share an Image to Other Apps 
10.5 Declare App As a Share Target 
10.6 Handle Share Activation and Receive Plain Text
10.7 Receive Images Shared by Other Apps 
10.8 Share Custom Data Type 
■■Chapter 11: Background Tasks   213
11.1 System Event Triggers for Background Tasks 
11.2 Create and Register a Background Task 
11.3 Setting Conditions for Running a Background Task 
11.4 Monitor Background Task Progress and Completion 
■■Chapter 12: Location and Maps in Windows Apps  221
12.1 Get the Current Location 
12.2 Respond to Geolocator Location Updates 
12.3 Detect the User’s Location with HTML5 
12.4 Detect Location Updates with HTML5 
12.5 Display Maps in the Built-in Maps App 
12.6 Display Directions in the Built-in Maps App 
12.7 Bing Maps Control in the Windows Store App 
■■Chapter 13: Building Apps That Connect to the Cloud 251
13.1 Creating a New Mobile Service in Microsoft Azure 
13.2 Creating a Database Table in Mobile Services 
13.3 Installing Mobile Services for the WinJS Client Library 
13.4 Performing the CRUD Operation 
13.5 Data Retrieval with Paging 
13.6 Sorting Returned Data from the Mobile Service
13.7 Performing Validation in a Server Script 
■■Chapter 14: Tiles and Notifications 275
14.1 Create a Default Tile 
14.2 Create Adaptive Tiles 
14.3 Create a Toast Notification with Visual Content 
14.4 Create a Toast Notification with Actions 
14.5 Create a Scheduled Tile and Toast Notification 
14.6 Create or Update a Badge on a Tile 
■■Chapter 15: Device Capabilities  287
15.1 How to Specify Device Capabilities in an App Package Manifest 
15.2 How to Specify Device Capabilities for Bluetooth for Windows Apps 
15.3 How to Find Devices Available for a UWP App 
15.4 How to Create an Audio Stream and Output Speech Based on Plain Text 
15.5 How to Specify Recognition Constraints for Speech Recognition 
15.6 How to Launch Your App with Cortana Voice Command in Foreground 
■■Chapter 16: Additional Tools  307
16.1 JavaScript Console Window 
16.2 DOM Explorer 
16.3 Diagnostic Tools 
16.4 Windows 10 Mobile Emulator: Additional Tools 
■■Chapter 17: Sideloading and Windows App Certification Kit  327
17.1 Sideload Your App 
17.2 Install Certificate and Package Separately 
17.3 Validate Your Windows App Using the Windows App Certification Kit 
17.4 Validate an App Package on a Remote Windows 10 Device 
■■Chapter 18: Store and Monetization  347
18.1 Create a Windows App Developer Account 
18.2 Package a Universal Windows Platform Application for Windows 10 
18.3 Submit an App to the Windows Store 
18.4 Use Windows Ad Mediation in Your UWP Apps 
18.5 Show Ads in Your Application 
Index ............... 365


Bookscreen
e-books shop

Who This Book Is For
This book is targeted at developers with some basic knowledge in web development technologies like
HTML, CSS, and JavaScript and who are interested in developing Windows apps. 
The step-by-step approach taken in the book will help developers understand the concepts much easier.
Loading...
DMCA.com Protection Status