HTML5 programming with JavaScript for dummies Mueller - Download the ebook now and read anytime, anywhere
HTML5 programming with JavaScript for dummies Mueller - Download the ebook now and read anytime, anywhere
https://ebookfinal.com/download/beginning-programming-with-python-for-
dummies-1st-edition-john-paul-mueller/
https://ebookfinal.com/download/linq-for-dummies-john-paul-mueller/
https://ebookfinal.com/download/learn-html5-and-javascript-for-
ios-1st-edition-scott-preston-auth/
https://ebookfinal.com/download/microsoft-exchange-server-2007-for-
dummies-john-paul-mueller/
Beginning Programming with Java For Dummies Third Edition
Barry Burd
https://ebookfinal.com/download/beginning-programming-with-java-for-
dummies-third-edition-barry-burd/
https://ebookfinal.com/download/learn-unity3d-programming-with-
unityscript-unity-s-javascript-for-beginners-1st-edition-janine-suvak/
https://ebookfinal.com/download/html5-for-dummies-quick-reference-1st-
edition-andy-harris/
https://ebookfinal.com/download/html5-game-development-for-
dummies-1st-edition-andy-harris/
https://ebookfinal.com/download/javascript-essentials-for-dummies-1st-
edition-paul-mcfedries/
HTML5 programming with JavaScript for dummies
Mueller Digital Instant Download
Author(s): Mueller, John Paul
ISBN(s): 9781118611883, 1118611888
Edition: Online-ausg
File Details: PDF, 19.68 MB
Year: 2013
Language: english
HTML5
Programming
with JavaScript ®
For general information on our other products and services, please contact our Customer Care
Department within the U.S. at 877-762-2974, outside the U.S. at 317-572-3993, or fax 317-572-4002.
For technical support, please visit www.wiley.com/techsupport.
Wiley publishes in a variety of print and electronic formats and by print-on-demand. Some material
included with standard print versions of this book may not be included in e-books or in print-on-demand.
If this book refers to media such as a CD or DVD that is not included in the version you purchased, you
may download this material at http://booksupport.wiley.com. For more information about Wiley
products, visit www.wiley.com.
Library of Congress Control Number: 2013936244
ISBN 978-1-118-43166-5 (pbk); ISBN 978-1-118-46209-6 (ebk);
ISBN 978-1-118-61188-3 (ebk); ISBN 978-1-118-49418-9 (ebk)
Manufactured in the United States of America
10 9 8 7 6 5 4 3 2 1
About the Author
John Mueller is a freelance author and technical editor. He has writing in his
blood, having produced 91 books and over 300 articles to date. The topics
range from networking to artificial intelligence and from database man-
agement to heads-down programming. Some of his current books include
Windows command-line references, books on VBA and Visio, several books
on C#, and an IronPython programmer’s guide. His technical editing skills
have helped more than 63 authors refine the content of their manuscripts.
John has provided technical editing services to both Data Based Advisor
and Coast Compute magazines. He’s also contributed articles to magazines
like such as Software Quality Connection, DevSource, InformIT, SQL Server
Professional, Visual C++ Developer, Hard Core Visual Basic, asp.netPRO,
Software Test and Performance, and Visual Basic Developer. Be sure to read
John’s blog at http://blog.johnmuellerbooks.com.
When John isn’t working at the computer, you can find him outside in the
garden, cutting wood, or generally enjoying nature. John also likes making
wine and knitting. When not occupied with anything else, he makes glycerin
soap and candles, which comes in handy for gift baskets. You can reach John
on the Internet at [email protected]. John is also setting up a
website at http://www.johnmuellerbooks.com. Feel free to take a look
and make suggestions on how he can improve it.
Dedication
Dedicated to people who have given me hope and who have helped me
realize new potential as an author; on the occasion of their 50th anniversary,
Bill and Karen Bridges.
Author’s Acknowledgments
Thanks to my wife, Rebecca, for working with me to get this book completed.
I really don’t know what I would have done without her help in researching
and compiling some of the information that appears in this book. She also did
a fine job of proofreading my rough draft. Rebecca keeps the house running
while I’m buried in work.
Russ Mullen deserves thanks for his technical edit of this book. He greatly
added to the accuracy and depth of the material you see here. Russ is always
providing me with great URLs for new products and ideas. However, it’s the
testing Russ does that helps most. He’s the sanity check for my work. Russ
also has different computer equipment than mine, so he’s able to point out
flaws that I might not otherwise notice.
Matt Wagner, my agent, deserves credit for helping me get the contract in
the first place and taking care of all the details that most authors don’t really
consider. I always appreciate his assistance. It’s good to know that someone
wants to help.
A number of people read all or part of this book to help me refine the
approach, test the coding examples, and generally provide input that all
readers wish they could have. These unpaid volunteers helped in ways too
numerous to mention here. I especially appreciate the efforts of Eva Beattie,
Glenn Russell, Osvaldo Téllez Almirall, and Gerald Wilson, Jr., who provided
general input, read the entire book, and selflessly devoted themselves to this
project.
Finally, I would like to thank Kim Darosett, Katie Feltman, Virginia Sanders,
Katie Crocker, and the rest of the editorial and production staff at Wiley for
their assistance in bringing this book to print. It’s always nice to work with
such a great group of professionals.
Publisher’s Acknowledgments
We’re proud of this book; please send us your comments at http://dummies.custhelp.com.
For other comments, please contact our Customer Care Department within the U.S. at 877-762-2974,
outside the U.S. at 317-572-3993, or fax 317-572-4002.
Some of the people who helped bring this book to market include the following:
Acquisitions and Editorial Composition Services
Senior Project Editor: Kim Darosett Project Coordinator: Katherine Crocker
Acquisitions Editor: Constance Santisteban Layout and Graphics: Amy Hassos,
Copy Editor: Virginia Sanders Joyce Haughey
Chapter 22: Ten Thoughts About the Future of Web Development . . . 375
Automating More Tasks............................................................................... 375
Developing Applications That Run Anywhere.......................................... 376
Using Standards for Every Application...................................................... 376
Creating a Desktop Environment with a Browser.................................... 377
xiv HTML5 Programming with JavaScript For Dummies
Index........................................................................ 381
Introduction
H ave you people-watched lately? If not, you really should. People-
watching is both fun and educational. At one time, you wouldn’t see
people using computers wherever they went because computers were large,
cumbersome devices that no one wanted to take out of the office. Today, you
have a hard time finding people who aren’t using a computing device of some
sort to perform some task. Developers have an incredible opportunity today
to affect people in every walk of life and in any situation imaginable because
people carry their computing devices with them far and wide to hold every
bit of information they find valuable.
The tools that developers use to create applications must change to reflect
this new reality, and HTML5 and JavaScript are the most appropriate tools
to accomplish the goals developers have today. You can use the combina-
tion of HTML5 and JavaScript to create applications that run on any device
using just about any new browser. HTML5 Programming with JavaScript For
Dummies is your gateway to an incredible new future of development where
you aren’t limited to a specific platform or some vendor’s concept of what
tools you should use to create applications. This book helps you gain the
skills required to create the new sorts of applications that developers have
always wanted to write.
Don’t worry about becoming immediately lost in detail. Like every For
Dummies book, this one takes things slowly, and all the examples are
explained thoroughly so that you know precisely how they work. You’ll find
that you advance quickly because this book takes advantage of the best
2 HTML5 Programming with JavaScript For Dummies
Of course, every developer needs to be aware of at least the basics, and the
introductory chapters of the book do just that — they tell you how things
work under the cover. Sometimes you need this information in order to make
the best use possible of all those third-party offerings. However, as the text
often states, there’s no need to reinvent the wheel. Your JavaScript applica-
tions will look professional because you’re using professionally written code
to develop them. This book shows you how to create some truly impressive
results in an incredibly short timeframe.
You can also skip any material marked with a Technical Stuff icon. This mate-
rial is helpful, but you don’t have to know it to work with HTML or JavaScript.
I include this material because I find it helpful in my programming efforts and
believe that you will, too.
Foolish Assumptions
You might find it difficult to believe that I’ve assumed anything about you —
after all, I haven’t even met you yet! Although most assumptions are indeed
foolish, I made these assumptions to provide a starting point for the book.
It’s important that you’re familiar with the platform and browser you want
to use because the book doesn’t provide any handholding in this regard. To
focus on HTML5 and JavaScript as fully as possible, the book covers brows-
ers marginally and platform requirements not at all. You really do need to
know how to install applications, use the browser, and generally work with
your chosen platform before you begin working with this book.
Knowing a little about HTML is helpful but not essential. Any experience you
have with programming will be helpful as well. The book doesn’t assume you
have any knowledge of JavaScript.
Introduction 3
Conventions Used in This Book
This book uses special typeface to emphasize some information. For exam-
ple, entries that you need to type appear in bold. All code, Website URLs, and
onscreen messages appear in monofont type. When I define a new word,
you see that word in italics.
Because you use multiple applications when you’re working with JavaScript,
I always point out when to move from one application to the next. However,
the testers for this book tried out the code with the Internet Explorer, Firefox,
and Chrome browsers on the Macintosh, Linux, and Windows platforms. One
tester also checked at least some of the code using a Windows 8 phone. In
most cases, you shouldn’t experience any problem working with your appli-
cation unless specifically noted in the application description. Please let me
know at [email protected] if you ever experience a problem
with one of the examples.
This part of the book also discusses errors. Errors can happen in every
application, even when that application has no errors in it. A user can
enter incorrect data or an environmental factor can cause various sorts of
data degradation and loss. Many errors are completely out of your hands.
However, recovering from these errors is completely within your grasp,
which is the topic of Chapter 10.
Creating a good presentation also helps you motivate users to interact with
your application. Chapters 13, 14, and 15 discuss various kinds of presenta-
tion techniques you use to create successful applications with JavaScript.
Discovering Diverse Content Through
Random Scribd Documents
all fear of everything terrible, not only of death, but also poverty and
disease, and ignominy, and things akin to these; being unconquered
by pleasure, and lord over irrational desires. For he well knows what
is and what is not to be done; being perfectly aware what things are
really to be dreaded, and what not. Whence he bears intelligently
what the Word intimates to him to be requisite and necessary;
intelligently discriminating what is really safe (that is, good), from
what appears so; and things to be dreaded from what seem so, such
as death, disease, and poverty; which are rather so in opinion than in
truth.
This is the really good man, who is without passions; having,
through the habit or disposition of a soul endued with virtue,
transcended the whole life of passion. He has everything dependent
on himself for the attainment of the end. For those accidents which
are called terrible are not formidable to the good man, because they
are not evil. And those which are really to be dreaded are foreign to
the gnostic Christian, being diametrically opposed to what is good,
because evil; and it is impossible for contraries to meet in the same
person at the same time. He, then, who faultlessly acts the drama of
life which God has given him to play, knows both what is to be done
and what is to be endured.
Is it not then from ignorance of what is and what is not to be
dreaded that cowardice arises? Consequently the only man of
courage is the Gnostic, who knows both present and future good
things; along with these, knowing, as I have said, also the things
which are in reality not to be dreaded. Because, knowing vice alone
to be hateful, and destructive of what contributes to knowledge,
protected by the armour of the Lord, he makes war against it.
For if anything is caused through folly, and the operation or rather
co-operation of the devil, this thing is not straightway the devil or
folly. For no action is wisdom. For wisdom is a habit. And no action is
a habit. The action, then, that arises from ignorance, is not already
ignorance, but an evil through ignorance, but not ignorance. For
neither perturbations of mind nor sins are vices, though proceeding
from vice.
No one, then, who is irrationally brave is a Gnostic; since one
might call children brave, who, through ignorance of what is to be
dreaded, undergo things that are frightful. So they touch fire even.
And the wild beasts that rush close on the points of spears, having a
brute courage, might be called valiant. And such people might
perhaps call jugglers valiant, who tumble on swords with a certain
dexterity, practising a mischievous art for sorry gain. But he who is
truly brave, with the peril arising from the bad feeling of the multitude
before his eyes, courageously awaits whatever comes. In this way
he is distinguished from others that are called martyrs, inasmuch as
some furnish occasions for themselves, and rush into the heart of
dangers, I know not how (for it is right to use mild language); while
they, in accordance with right reason, protect themselves; then, on
God really calling them, promptly surrender themselves, and confirm
the call, from being conscious of no precipitancy, and present the
man to be tested in the exercise of true rational fortitude. Neither,
then, enduring lesser dangers from fear of greater, like other people,
nor dreading censure at the hands of their equals, and those of like
sentiments, do they continue in the confession of their calling; but
from love to God they willingly obey the call, with no other aim in
view than pleasing God, and not for the sake of the reward of their
toils.
For some suffer from love of glory, and others from fear of some
other sharper punishment, and others for the sake of pleasures and
delights after death, being children in faith; blessed indeed, but not
yet become men in love to God, as the Gnostic is. For there are, as
in the gymnastic contests, so also in the Church, crowns for men and
for children. But love is to be chosen for itself, and for nothing else.
Therefore in the Gnostic, along with knowledge, the perfection of
fortitude is developed from the discipline of life, he having always
studied to acquire mastery over the passions.
Accordingly, love makes its own athlete fearless and dauntless,
and confident in the Lord, anointing and training him; as
righteousness secures for him truthfulness in his whole life. For it
was a compendium of righteousness to say, “Let your yea be yea;
and your nay, nay.”
And the same holds with self-control. For it is neither for love of
honour, as the athletes for the sake of crowns and fame; nor, on the
other hand, for love of money, as some pretend to exercise self-
control, pursuing what is good with terrible suffering. Nor is it from
love of the body for the sake of health. Nor any more is any man who
is temperate from rusticity, who has not tasted pleasures, truly a man
of self-control. Certainly those who have led a laborious life, on
tasting pleasures, forthwith break down the inflexibility of temperance
into pleasures. Such are they who are restrained by law and fear.
For on finding a favourable opportunity they defraud the law, by
giving what is good the slip. But self-control, desirable for its own
sake, perfected through knowledge, abiding ever, makes the man
lord and master of himself; so that the Gnostic is temperate and
passionless, incapable of being dissolved by pleasures and pains, as
they say adamant is by fire.
The cause of these, then, is love, of all science the most sacred
and most sovereign.
For by the service of what is best and most exalted, which is
characterized by unity, it renders the Gnostic at once friend and son,
having in truth grown “a perfect man, up to the measure of full
stature.”[1257]
Further, agreement in the same thing is consent. But what is the
same is one. And friendship is consummated in likeness; the
community lying in oneness. The Gnostic, consequently, in virtue of
being a lover of the one true God, is the really perfect man and friend
of God, and is placed in the rank of son. For these are names of
nobility and knowledge, and perfection in the contemplation of God;
which crowning step of advancement the gnostic soul receives,
when it has become quite pure, reckoned worthy to behold
everlastingly God Almighty, “face,” it is said, “to face.” For having
become wholly spiritual, and having in the spiritual Church gone to
what is of kindred nature, it abides in the rest of God.
CHAPTER XII.
THE TRUE GNOSTIC IS BENEFICENT, CONTINENT, AND DESPISES
WORLDLY THINGS.
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebookfinal.com