معرفی کتاب «Professional JavaScript for Web developers, third edition» نوشتهٔ Zakas, Nicholas C., McPeak, Jeremy, Fawcett, Joe، منتشرشده توسط نشر Wrox; Wiley; John Wiley [distributor] در سال 2012. این کتاب در 200 صفحه، فرمت pdf، زبان انگلیسی ارائه شده است. «Professional JavaScript for Web developers, third edition» در دستهٔ بدون دستهبندی قرار دارد.
A significant update to a bestselling JavaScript bookAs the key scripting language for the web, JavaScript is supported by every modern web browser and allows developers to create client-side scripts that take advantage of features such as animating the canvas tag and enabling client-side storage and application caches. After an in-depth introduction to the JavaScript language, this updated edition of a bestseller progresses to break down how JavaScript is applied for web development using the latest web development technologies. Veteran author and JavaScript guru Nicholas Zakas shows how JavaScript works with the new HTML5 as well as other significant advances in web development as it relates to JavaScript.Begins with an introduction to JavaScript basics and then moves on to more advanced topics regarding JavaScript and advances in web development technologiesDescribes how JavaScript is implemented into HTML5Covers browser/feature detection in scripts, event-driven JavaScript development, error reporting and debugging, offline application and data storage, and moreProfessional JavaScript for Web Developers, 3rd Edition is an authoritative JavaScript resource that every web developers should have. Professional: JavaScript® for Web Developers 7 Contents 17 Foreword 33 Introduction 35 Chapter 1: What Is Javascript? 43 A Short History 44 JavaScript Implementations 45 ECMAScript 45 The Document Object Model (DOM) 48 The Browser Object Model (BOM) 51 JavaScript Versions 52 Summary 53 Chapter 2: Javascript In HTML 55 The Element 55 Tag Placement 58 Deferred Scripts 58 Asynchronous Scripts 59 Changes in XHTML 60 Deprecated Syntax 62 Inline Code versus External Files 62 Document Modes 63 The Element 64 Summary 64 Chapter 3: Language Basics 67 Syntax 67 Case-sensitivity 67 Identifiers 68 Comments 68 Strict Mode 69 Statements 69 Keywords and Reserved Words 70 Variables 71 Data Types 73 The typeof Operator 73 The Undefined Type 74 The Null Type 75 The Boolean Type 76 The Number Type 77 The String Type 83 The Object Type 86 Operators 87 Unary Operators 88 Bitwise Operators 91 Boolean Operators 98 Multiplicative Operators 101 Additive Operators 103 Relational Operators 105 Equality Operators 107 Conditional Operator 109 Assignment Operators 109 Comma Operator 110 Statements 111 The if Statement 111 The do-while Statement 112 The while Statement 112 The for Statement 113 The for-in Statement 114 Labeled Statements 115 The break and continue Statements 115 The with Statement 117 The switch Statement 118 Functions 120 Understanding Arguments 122 No Overloading 125 Summary 125 Chapter 4: Variables, Scope, and Memory 127 Primitive and Reference Values 127 Dynamic Properties 128 Copying Values 128 Argument Passing 130 Determining Type 131 Execution Context and Scope 132 Scope Chain Augmentation 134 No Block-Level Scopes 135 Garbage Collection 138 Mark-and-Sweep 138 Reference Counting 139 Performance 140 Managing Memory 141 Summary 142 Chapter 5: Reference Types 145 The Object Type 146 The Array Type 148 Detecting Arrays 152 Conversion Methods 152 Stack Methods 154 Queue Methods 155 Reordering Methods 156 Manipulation Methods 158 Location Methods 160 Iterative Methods 161 Reduction Methods 163 The Date Type 164 Inherited Methods 166 Date-Formatting Methods 167 Date/Time Component Methods 168 The RegExp Type 170 RegExp Instance Properties 173 RegExp Instance Methods 174 RegExp Constructor Properties 176 Pattern Limitations 178 The Function Type 178 No Overloading (Revisited) 180 Function Declarations versus Function Expressions 180 Functions as Values 181 Function Internals 183 Function Properties and Methods 185 Primitive Wrapper Types 188 The Boolean Type 190 The Number Type 191 The String Type 193 Singleton Built-in Objects 203 The Global Object 204 The Math Object 208 Summary 212 Chapter 6: Object-Oriented Programming 215 Understanding Objects 215 Types of Properties 216 Defining Multiple Properties 220 Reading Property Attributes 221 Object Creation 222 The Factory Pattern 222 The Constructor Pattern 223 The Prototype Pattern 226 Combination Constructor/Prototype Pattern 239 Dynamic Prototype Pattern 240 Parasitic Constructor Pattern 241 Durable Constructor Pattern 242 Inheritance 243 Prototype Chaining 244 Constructor Stealing 249 Combination Inheritance 251 Prototypal Inheritance 252 Parasitic Inheritance 253 Parasitic Combination Inheritance 254 Summary 257 Chapter 7: Function Expressions 259 Recursion 262 Closures 263 Closures and Variables 266 The this Object 267 Memory Leaks 269 Mimicking Block Scope 270 Private Variables 273 Static Private Variables 274 The Module Pattern 276 The Module- Augmentation Pattern 278 Summary 279 Chapter 8: The Browser Object Model 281 The window Object 281 The Global Scope 282 Window Relationships and Frames 283 Window Position 286 Window Size 287 Navigating and Opening Windows 289 Intervals and Timeouts 293 System Dialogs 295 The location Object 297 Query String Arguments 298 Manipulating the Location 299 The Navigator Object 301 Detecting Plug-ins 304 Registering Handlers 306 The screen Object 307 The history Object 309 Summary 310 Chapter 9: Client Detection 313 Capability Detection 313 Safer Capability Detection 315 Capability Detection Is Not Browser Detection 316 Quirks Detection 317 User-Agent Detection 318 History 319 Working with User-Agent Detection 328 The Complete Script 345 Usage 348 Summary 348 Chapter 10: The Document Object Model 351 Hierarchy of Nodes 352 The Node Type 352 The Document Type 358 The Element Type 368 The Text Type 379 The Comment Type 383 The CDATASection Type 384 The DocumentType Type 385 The DocumentFragment Type 386 The Attr Type 387 Working with the DOM 388 Dynamic Scripts 388 Dynamic Styles 390 Manipulating Tables 392 Using NodeLists 395 Summary 396 Chapter 11: Dom Extensions 399 Selectors API 399 The querySelector() Method 400 The querySelectorAll() Method 400 The matchesSelector() Method 401 Element Traversal 402 HTML5 403 Class-Related Additions 403 Focus Management 406 Changes to HTMLDocument 406 Character Set Properties 408 Custom Data Attributes 408 Markup Insertion 409 The scrollIntoView() Method 414 Proprietary Extensions 414 Document Mode 415 The children Property 416 The contains() Method 416 Markup Insertion 418 Scrolling 421 Summary 421 Chapter 12: Dom Levels 2 and 3 423 DOM Changes 424 XML Namespaces 424 Other Changes 428 Styles 432 Accessing Element Styles 433 Working with Style Sheets 438 Element Dimensions 443 Traversals 450 NodeIterator 452 TreeWalker 455 Ranges 457 Ranges in the DOM 457 Ranges in Internet Explorer 8 and Earlier 466 Summary 470 Chapter 13: Events 473 Event Flow 474 Event Bubbling 474 Event Capturing 475 DOM Event Flow 475 Event Handlers 476 HTML Event Handlers 476 DOM Level 0 Event Handlers 479 DOM Level 2 Event Handlers 480 Internet Explorer Event Handlers 481 Cross-Browser Event Handlers 483 The Event Object 484 The DOM Event Object 484 The Internet Explorer Event Object 489 Cross-Browser Event Object 491 Event Types 493 UI Events 494 Focus Events 500 Mouse and Wheel Events 501 Keyboard and Text Events 513 Composition Events 520 Mutation Events 521 HTML5 Events 524 Device Events 532 Touch and Gesture Events 536 Memory and Performance 540 Event Delegation 540 Removing Event Handlers 542 Simulating Events 544 DOM Event Simulation 544 Internet Explorer Event Simulation 550 Summary 551 Chapter 14: Scripting Forms 553 Form Basics 553 Submitting Forms 554 Resetting Forms 555 Form Fields 556 Scripting Text Boxes 562 Text Selection 563 Input Filtering 566 Automatic Tab Forward 570 HTML5 Constraint Validation API 572 Scripting Select Boxes 576 Options Selection 578 Adding Options 579 Removing Options 580 Moving and Reordering Options 581 Form Serialization 582 Rich Text Editing 584 Using contenteditable 585 Interacting with Rich Text 585 Rich Text Selections 589 Rich Text in Forms 591 Summary 591 Chapter 15: Graphics With Canvas 593 Basic Usage 593 The 2D Context 595 Fills and Strokes 595 Drawing Rectangles 595 Drawing Paths 598 Drawing Text 599 Transformations 601 Drawing Images 605 Shadows 606 Gradients 607 Patterns 609 Working with Image Data 609 Compositing 611 WebGL 613 Typed Arrays 613 The WebGL Context 618 Support 630 Summary 630 Chapter 16: HTML5 Scripting 633 Cross-Document Messaging 633 Native Drag and Drop 635 Drag-and-Drop Events 635 Custom Drop Targets 636 The dataTransfer Object 637 DropEffect and effectAllowed 638 Draggability 639 Additional Members 640 Media Elements 640 Properties 641 Events 643 Custom Media Players 644 Codec Support Detection 645 The Audio Type 646 History State Management 647 Summary 648 Chapter 17: Error Handling And Debugging 649 Browser Error Reporting 649 Internet Explorer 650 Firefox 651 Safari 652 Opera 654 Chrome 655 Error Handling 656 The try-catch Statement 657 Throwing Errors 661 The error Event 664 Error-handling Strategies 665 Identify Where Errors Might Occur 665 Distinguishing between Fatal and Nonfatal Errors 670 Log Errors to the Server 671 Debugging Techniques 672 Logging Messages to a Console 673 Logging Messages to the Page 675 Throwing Errors 676 Common Internet Explorer Errors 677 Operation Aborted 677 Invalid Character 679 Member Not Found 679 Unknown Runtime Error 680 Syntax Error 680 The System Cannot Locate the Resource Specified 681 Summary 681 Chapter 18: XML in Javascript 683 XML DOM Support in Browsers 683 DOM Level 2 Core 683 The DOMParser Type 684 The XMLSerializer Type 686 XML in Internet Explorer 8 and Earlier 686 Cross-Browser XML Processing 691 XPath Support in Browsers 693 DOM Level 3 XPath 693 XPath in Internet Explorer 698 Cross-Browser XPath 699 XSLT Support in Browsers 702 XSLT in Internet Explorer 702 The XSLTProcessor Type 707 Cross-Browser XSLT 709 Summary 710 Chapter 19: Ecmascript for XML 713 E4X Types 713 The XML Type 714 The XMLList Type 715 The Namespace Type 716 The QName Type 717 General Usage 718 Accessing Attributes 720 Other Node Types 721 Querying 723 XML Construction and Manipulation 724 Parsing and Serialization Options 727 Namespaces 728 Other Changes 730 Enabling Full E4X 731 Summary 731 Chapter 20: JSON 733 Syntax 733 Simple Values 734 Objects 734 Arrays 735 Parsing and Serialization 736 The JSON Object 737 Serialization Options 738 Parsing Options 741 Summary 742 Chapter 21: Ajax and Comet 743 The XMLHttpRequest Object 744 XHR Usage 745 HTTP Headers 748 GET Requests 749 POST Requests 750 XMLHttpRequest Level 2 752 The FormData Type 752 Timeouts 753 The overrideMimeType() Method 753 Progress Events 754 The load Event 754 The progress Event 755 Cross-Origin Resource Sharing 756 CORS in Internet Explorer 756 CORS in Other Browsers 758 Preflighted Requests 759 Credentialed Requests 760 Cross-Browser CORS 760 Alternate Cross-Domain Techniques 761 Image Pings 761 Comet 763 Server-Sent Events 765 Web Sockets 767 SSE versus Web Sockets 769 Security 770 Summary 771 Chapter 22: Advanced Techniques 773 Advanced Functions 773 Safe Type Detection 773 Scope-Safe Constructors 775 Lazy Loading Functions 778 Function Binding 780 Function Currying 783 Tamper-Proof Objects 785 Nonextensible Objects 786 Sealed Objects 786 Frozen Objects 787 Advanced Timers 788 Repeating Timers 790 Yielding Processes 792 Function Throttling 794 Custom Events 797 Drag and Drop 800 Fixing Drag Functionality 802 Adding Custom Events 804 Summary 806 Chapter 23: Offline Applications And Client-Side Storage 807 Offline Detection 807 Application Cache 808 Data Storage 810 Cookies 810 Internet Explorer User Data 820 Web Storage 822 IndexedDB 828 Summary 841 Chapter 24: Best Practices 843 Maintainability 843 What Is Maintainable Code? 844 Code Conventions 844 Loose Coupling 847 Programming Practices 851 Performance 856 Be Scope-Aware 856 Choose the Right Approach 858 Minimize Statement Count 863 Optimize DOM Interactions 866 Deployment 869 Build Process 869 Validation 871 Compression 872 Summary 875 Chapter 25: Emerging APIs 877 RequestAnimationFrame() 877 Early Animation Loops 878 Problems with Intervals 878 mozRequestAnimationFrame 879 webkitRequestAnimationFrame and msRequestAnimationFrame 880 Page Visibility API 881 Geolocation API 883 File API 885 The FileReader Type 886 Partial Reads 888 Object URLs 889 Drag-and-Drop File Reading 890 File Upload with XHR 891 Web Timing 893 Web Workers 894 Using a Worker 894 Worker Global Scope 895 Including Other Scripts 897 The Future of Web Workers 897 Summary 898 Appendix A: ECMAScript Harmony 899 General Changes 899 Constants 900 Block-Level and Other Scopes 900 Functions 901 Rest and Spread Arguments 901 Default Argument Values 902 Generators 903 Arrays and Other Structures 903 Iterators 904 Array Comprehensions 905 Destructuring Assignments 906 New Object Types 907 Proxy Objects 907 Proxy Functions 910 Map and Set 910 WeakMap 911 StructType 911 ArrayType 912 Classes 913 Private Members 914 Getters/Setters 914 Inheritance 915 Modules 916 External Modules 917 Appendix B: Strict Mode 919 Opting-in 919 Variables 920 Objects 920 Functions 921 eval() 922 eval and arguments 923 Coercion of this 924 Other Changes 924 Appendix C: JavaScript Libraries 927 General Libraries 927 Yahoo! User Interface Library ( YUI) 927 Prototype 928 The Dojo Toolkit 928 MooTools 928 jQuery 928 MochiKit 928 Underscore.js 929 Internet Applications 929 Backbone.js 929 Rico 929 qooxdoo 929 Animation and Effects 930 script.aculo.us 930 moo.fx 930 Lightbox 930 Cryptography 930 JavaScript MD5 931 JavaScrypt 931 Appendix D: JavaScript Tools 933 Validators 933 JSLint 933 JSHint 934 JavaScript Lint 934 Minifiers 934 JSMin 934 Dojo ShrinkSafe 934 YUI Compressor 935 Unit Testing 935 JsUnit 935 YUI Test 935 Dojo Object Harness (DOH) 936 qUnit 936 Documentation Generators 936 JsDoc Toolkit 936 YUI Doc 936 AjaxDoc 937 Secure Execution Environments 937 ADsafe 937 Caja 937 Index 939 Advertisements 962 Professional JavaScript for Web Developers, 2nd Edition, provides a developer-level introduction along with the more advanced and useful features of JavaScript. Starting at the beginning, the book explores how JavaScript originated and evolved into what it is today. A detailed discussion of the components that make up a JavaScript implementation follows, with specific focus on standards such as ECMAScript and the Document Object Model (DOM). The differences in JavaScript implementations used in different popular web browsers are also discussed. Building on that base, the book moves on to cover basic concepts of JavaScript including its version of object-oriented programming, inheritance, and its use in various markup languages such as HTML. An in-depth examination of events and event handling is followed by an exploration of browser detection techniques and a guide to using regular expressions in JavaScript. The book then takes all this knowledge and applies it to creating dynamic user interfaces. The last part of the book is focused on advanced topics, including performance/memory optimization, best practices, and a look at where JavaScript is going in the future. This book is aimed at three groups of readers: Experienced developers familiar with object-oriented programming who are looking to learn JavaScript as it relates to traditional OO languages such as Java and C++ Web application developers attempting to enhance the usability of their web sites and web applications Novice JavaScript developers aiming to better understand the language In addition, familiarity with the following related technologies is a strong indicator that this book is for you: Java PHP ASP.NET HTML CSS XML This book is not aimed at beginners who lack a basic computer science background or those looking to add some simple user interactions to web sites. These readers should instead refer to Wrox's Beginning JavaScript, 3rd Edition (Wiley, 2007). This book covers: What Is JavaScript?--Explains the origins of where it came from, how it evolved, and what it is today. Concepts introduced include the relationship between JavaScript and ECMAScript, the Document Object Model (DOM), and the Browser Object Model (BOM). A discussion of the relevant standards from the European Computer Manufacturer's Association (ECMA) and the World Wide Web Consortium (W3C) is also included. JavaScript in HTML--Examines how JavaScript is used in conjunction with HTML to create dynamic web pages. Introduces the various ways of embedding JavaScript into a page, including a discussion surrounding the JavaScript content-type and its relationship to the element. Language Basics--Introduces basic language concepts, including syntax and flow control statements. Explains the syntactic similarities of JavaScript and other C-based languages and points out the differences. Type coercion is introduced as it relates to built-in operators. Variables, Scope, and Memory--Explores how variables are handled in JavaScript given their loosely typed nature. A discussion about the differences between primitive and reference values is included, as is information about execution context as it relates to varia...
This book provides a developer-level introduction along with more advanced and useful features of JavaScript. Coverage includes:
- JavaScript use with HTML to create dynamic webpages, language concepts including syntax and flow control statements
- variable handling given their loosely typed nature
- built-in reference types such as object and array
- object-oriented programing
- powerful aspects of function expressions
- Browser Object Model allowing interaction with the browser itself
- detecting the client and its capabilities
- Document Object Model (DOM) objects available in DOM Level 1
- how DOM Levels 2 and 3 augmented the DOM
- events, legacy support, and how the DOM redefined how events should work
- enhancing form interactions and working around browser limitations
- using the <canvas> tag to create on-the-fly graphics
- JavaScript API changes in HTML5
- how browsers handle JavaScript errors and error handling
- features of JavaScript used to read and manipulate XML data
- the JSON data format as an alternative to XML
- Ajax techniques including the use of XMLHttpRequest object and CORS
- complex patterns including function currying, partial function application, and dynamic functions
- offline detection and storing data on the client machine
- techniques for JavaScript in an enterprise environment for better maintainability
This book is aimed at three groups of readers: Experienced object-oriented programming developers looking to learn JavaScript as it relates to traditional OO languages such as Java and C++; Web application developers attempting to enhance site usability; novice JavaScript developers.
Nicholas C. Zakas worked with the Web for over a decade. He has worked on corporate intranet applications used by some of the largest companies in the world and large-scale consumer websites such as MyYahoo! and the Yahoo! homepage. He regularly gives talks at companies and conferences regarding front-end best practices and new technology.
Transfer your existing skills to the iOS platform. Are you already proficient in HTML, CSS, JavaScript, and Ajax and eager to create apps that can be rapidly deployed across mobile devises--but you don't want to have to learn a whole new technology in order to do so? Then this is the book for you. Written by an experienced web designer and developer, this helpful guide enables you to use what you already know and gets you up to speed quickly with applying your existing skills to the mobile platform so that you can start developing apps for the iPhone, iPod touch, and iPad today. Web developers with HTML/JS skills will quickly learn to apply them to the iPhone/iPad platformBeginning to intermediate web developers who want to apply their existing HTML/CSS/JS/Ajax skills to the wildly popular iPhone/iPad OS will love this book. In the highly successful Wrox Beginning format, it enables developers who know these core technologies to use what they already know and get up to speed quickly. It introduces iOS development with web technologies, explains how to enable and optimize web sites for the iPhone and iPad, explores user interface design, then moves into animation, special effects, building with web frameworks, and much more. Teaches you to apply your knowledge of HTML, JavaScript, and related web technologies to the iOS platform and create apps for the iPad and iPhoneExplains how to enable and optimize web sites for the mobile screen, design an effective iPad and iPhone UI, and apply CSSCovers building in interactivity, animation, and special effects, programming the canvas, offline, apps, bandwidth performance and optimization, and web frameworksShows you how to package your app inside a native iOS wrapper (no programming required) so you can submit your apps to the App StoreDevelopers who already know HTML and JavaScript can get up to speed on iOS app development more quickly with the help of this Wrox guide Professional Ajax 2nd Edition provides a developer-level tutorial of Ajax techniques, patterns, and use cases. The book begins by exploring the roots of Ajax, covering how the evolution of the web and new technologies directly led to the development of Ajax techniques. A detailed discussion of how frames, JavaScript, cookies, XML, and XMLHttp requests (XHR) related to Ajax is included. After this introduction, the book moves on to cover the implementation of specific Ajax techniques. Request brokers such as hidden frames, dynamic iframes, and XHR are compared and contrasted, explaining when one method should be used over another. To make this discussion clearer, a brief overview of HTTP requests and responses is included.
Once a basic understanding of the various request types is discussed, the book moves on to provide in-depth examples of how and when to use Ajax in a web site or web application. Different data transmission formats, including plain text, HTML, XML, and JSON are discussed for their advantages and disadvantages. Also included is a discussion on web services and how they may be used to perform Ajax techniques. Next, more complex topics are covered. A chapter introducing a request management framework explores how to manage all of the requests inside of an Ajax application. Ajax debugging techniques are also discussed.
Professional Ajax 2nd edition is written for Web application developers looking to enhance the usability of their web sites and web applications and intermediate JavaScript developers looking to further understand the language. Readers should have familiarity with XML, XSLT, Web Services, PHP or C#, HTML, CSS.
Professional Ajax 2nd edition adds nearly 200 pages of new and expanded coverage compared to the first edition.
Professional Ajax 2nd Edition provides a developer-level tutorial of Ajax techniques, patterns, and use cases. The book begins by exploring the roots of Ajax, covering how the evolution of the web and new technologies directly led to the development of Ajax techniques. A detailed discussion of how frames, JavaScript, cookies, XML, and XMLHttp requests (XHR) related to Ajax is included. After this introduction, the book moves on to cover the implementation of specific Ajax techniques. Request brokers such as hidden frames, dynamic iframes, and XHR are compared and contrasted, explaining when one method should be used over another. To make this discussion clearer, a brief overview of HTTP requests and responses is included. Once a basic understanding of the various request types is discussed, the book moves on to provide in-depth examples of how and when to use Ajax in a web site or web application. Different data transmission formats, including plain text, HTML, XML, and JSON are discussed for their advantages and disadvantages. Also included is a discussion on web services and how they may be used to perform Ajax techniques. Next, more complex topics are covered. A chapter introducing a request management framework explores how to manage all of the requests inside of an Ajax application. Ajax debugging techniques are also discussed. The last part of the book walks through the creation of two full-fledged Ajax web applications. The first, FooReader.NET, is an Ajax-powered RSS reader. The second, called AjaxMail, is an Ajax-enabled email system. Both of these applications incorporate many of the techniques discussed throughout the book. -- Description from http://www.amazon.co.uk (July 13, 2012)
Create real-time, highly interactive apps quickly with the powerful XMPP protocol
XMPP is a robust protocol used for a wide range of applications, including instant messaging, multi-user chat, voice and video conferencing, collaborative spaces, real-time gaming, data synchronization, and search. This book teaches you how to harness the power of XMPP in your own apps and presents you with all the tools you need to build the next generation of apps using XMPP or add new features to your current apps. Featuring the JavaScript language throughout and making use of the jQuery library, the book contains several XMPP apps of increasing complexity that serve as ideal learning tools.
Coverage Includes:
- Getting to Know XMPP
- Designing XMPP Applications
- Saying Hello: The First Application
- Exploring the XMPP Protocol: A Debugging Console
- Microblogging in Real Time: An Identica Client
- Talking with Friends: One-on-One Chat
- Exploring Services: Service Discovery and Browsing
- Group Chatting: A Multi-User Chat Client
- Publishing and Subscribing: A Shared Sketch Pad Introduction
- Writing with Friends: A Collaborative Text Editor
- Playing Games: Head to Head Tic-Tac-Toe
- Getting Attached: Bootstrapping BOSH
- Deploying XMPP Applications
- Writing Strophe Plug-ins
Note: CD-ROM/DVD and other supplementary materials are not included as part of eBook file.
This book covers the various aspects of developing web-based applications for iOS. Over the past four years, the iPhone and iPad have been amazingly successful. Because of this success, application developers are entering a world of sophisticated, multifunctional mobile applications. Now mobile web-based applications can bring together web apps, native apps, multimedia video and audio, and the mobile device itself. By using this book you will learn how to create a mobile application from beginning to end, utilizing open source frameworks to speed up development times, emulate the look and feel of built-in Apple applications, capture finger touch interactions, and optimize applications for Wi-Fi and wireless networks.
The book introduces you to the web application platform for iOS. It also guides you through the process of building new applications from scratch as well as migrating existing web applications to this new mobile platform. By doing this, the book helps readers design a user interface that is optimized for iOS touch-screen displays and integrate their applications with iPhone services, including Phone, Mail, Google Maps, and GPS.
This book is aimed at beginning and intermediate web developers who want to learn how to build new applications for iOS or migrate existing web apps to this platform. In general, you will find it helpful if you have a working knowledge of these technologies:
- HTML/XHTML
- CSS
- JavaScript
- Ajax
Written for experienced web developers, Professional Ajax shows how to combine tried-and-true CSS, XML, and JavaScript technologies into Ajax. This provides web developers with the ability to create more sophisticated and responsive user interfaces and break free from the "click-and-wait" standard that has dominated the web since its introduction. Professional Ajax discusses the range of request brokers (including the hidden frame technique, iframes, and XMLHttp) and explains when one should be used over another. You will also learn different Ajax techniques and patterns for executing client-server communication on your web site and in web applications. By the end of the book, you will have gained the practical knowledge necessary to implement your own Ajax solutions. In addition to a full chapter case study showing how to combine the book's Ajax techniques into an AjaxMail application, Professional Ajax uses many other examples to build hands-on Ajax experience. Some of the other examples include: web site widgets for a news ticker, weather information, web search, and site search preloading pages in online articles incremental form validation using Google Web APIs in Ajax creating an autosuggest text box Professional Ajax readers should be familiar with CSS, XML, JavaScript, and HTML so you can jump right in with the book and begin learning Ajax patterns, XPath and XSLT support in browsers, syndication, web services, JSON, and the Ajax Frameworks, JPSpan, DWR, and Ajax.NET.
Learn how to build apps for mobile devices on Cloud platforms
The marketplace for apps is ever expanding, increasing the potential to make money. With this guide, you'll learn how to build cross-platform applications for mobile devices that are supported by the power of Cloud-based services such as Amazon Web Services. An introduction to Cloud-based applications explains how to use HTML5 to create cross-platform mobile apps and then use Cloud services to enhance those apps. You'll learn how to build your first app with HTML5 and set it up in the Cloud, while also discovering how to use jQuery to your advantage.
- Highlights the skills and knowledge you need to create successful apps for mobile devices with HTML5
- Takes you through the steps for building web applications for the iPhone and Android
- Details how to enhance your app through faster launching, touch vs. click, storage capabilities, and a cache
- Looks at how best to use JSON, FourSquare, jQuery, AJAX, and more
- Shares tips for creating hybrid apps that run natively
If you're interested in having your application be one of the 200,000+ apps featured in the iPhone store or the 50,000+ in the Android store, then you need this book.
Create cross-platform mobile apps without having to learn a new language!
PhoneGap is an open source solution, ideal for web developers wanting to build cross-platform mobile apps without having to learn a new language. Using HTML, CSS, and Javascript, PhoneGap allows you to jump into the mobile world and develop apps for iPhone, Android, and the BlackBerry.
- Walks you through installing the development software
- Covers the basics of each of PhoneGap's functional units
- Introduces various projects you can build with the framework
- Discusses using HTML, CSS, JavaScript
- Explores the features accelerameter and compass
- Examines media, storage and files, camera, contacts, geolocation, and more
Within Beginning PhoneGap, each new chapter builds on the lessons taught in the previous so that by the end of the book, you can have mobile apps up and running!
NOTE: Several significant changes to the PhoneGap software occurred shortly after this book was published. The author has written extra pages to address these and other changes. You can download the updates to this book from the book's support page on the Wrox website.
Create cross-platform mobile apps without having to learn a new language! PhoneGap is an open source solution, ideal for web developers wanting to build cross-platform mobile apps without having to learn a new language. Using HTML, CSS, and Javascript, PhoneGap allows you to jump into the mobile world and develop apps for iPhone, Android, and the BlackBerry. Walks you through installing the development software Covers the basics of each of PhoneGap's functional units Introduces various projects you can build with the framework Discusses using HTML, CSS, JavaScript Explores the features accelerameter and compass Examines media, storage and files, camera, contacts, geolocation, and more Within Beginning PhoneGap, each new chapter builds on the lessons taught in the previous so that by the end of the book, you can have mobile apps up and running!'NOTE: Several significant changes to the PhoneGap software occurred shortly after this book was published. The author has written extra pages to address these and other changes. You can download the updates to this book from the book's support page on the Wrox website.' Content: What is javascript? -- JavaScript in html -- Language basics -- Variables, scope, and memory -- Reference types -- Object-oriented programming -- Function expressions -- The browser object model -- Client detection -- The document object model -- DOM extensions -- DOM levels 2 and 3 -- Events -- Scripting forms -- Graphics with canvas -- HTML5 scripting -- Error handing and debugging -- XML in javascript -- ECMAScript for XML -- JSON -- Ajax and comet -- Advanced techniques -- Offline applications and client-side storage -- Best practices -- Emerging apis. Abstract: A significant update to a bestselling JavaScript book As the key scripting language for the web, JavaScript is supported by every modern web browser and allows developers to create client-side scripts that take advantage of features such as animating the canvas tag and enabling client-side storage and application caches. Read more... Professional JavaScript for Web Developers, 3rd Edition begins with an indepth introduction to the JavaScript Language and then progresses to break down how JavaScript is applied for web development using the latest web development technologies. This latest edition is updated to fully cover HTML5 and other siginificant advances in Web Development as it realtees to JavaScript. Topic covered include: JavaScript language basics and syntax How JavaScript is implemented into HTML Objecte Oriented JavaScript Browser/Feature Detection in Scripts The HTML Document Object Model (DOM) Event driven JavaScript Development Graphics Development with Native Drag and Drop Controlling the and media elements Error reporting and Debugging Scripting XML JSON and AJAX Offline Application and Data Storage Best Practices Emerging JavaScript API's Much More. "PhoneGap is an open source solution, ideal for web developers wanting to build cross-platform mobile apps without having to learn a new language. Using HTML, CSS, and Javascript, PhoneGap allows you to jump into the mobile world and develop apps for iPhone, Android, and the BlackBerry. This book: walks you through installing the development software; covers the basics of each of PhoneGap's functional units; introduces various projects you can build with the framework; discusses using HTML, CSS, JavaScript; explores the features accelerameter and compass; examines media, storage and files, camera, contacts, geolocation, and more. Within Beginning PhoneGap, each new chapter builds on the lessons taught in the previous so that by the end of the book, you can have mobile apps up and running!"--Publisher's description "A significant update to a bestselling JavaScript book. As the key scripting language for the web, JavaScript is supported by every modern web browser and allows developers to create client-side scripts that take advantage of features such as animating the canvas tag and enabling client-side storage and application caches. After an in-depth introduction to the JavaScript language, this updated edition of a bestseller progresses to break down how JavaScript is applied for web development using the latest web development technologies. Veteran author and JavaScript guru Nicholas Zakas shows how JavaScript works with the new HTML5 as well as other significant advances in web development as it relates to JavaScript"--Provided by publisher