JavaScript Journal

Subscribe to JavaScript Journal: eMailAlertsEmail Alerts newslettersWeekly Newsletters
Get JavaScript Journal: homepageHomepage mobileMobile rssRSS facebookFacebook twitterTwitter linkedinLinkedIn

Top Stories

This excerpt is from the book Murach's JavaScript and jQuery by Mike Murach and Zak Ruvalcaba. Now that you have the JavaScript skills that you need for using jQuery, you're ready to learn jQuery. So, in this excerpt, you'll learn a working subset of jQuery that will get you off to a fast start. When you complete this section, you'll have all the jQuery skills that you need for developing professional web pages. You can also go on to any of the three sections that follow because they are written as independent modules. If, for example, you want to learn how to use Ajax next, skip to section 4. Get off to a fast start with jQuery In this excerpt you'll quickly see how jQuery makes JavaScript programming easier. Then, you'll learn a working subset of jQuery that will get you off to a fast start. Along the way, you'll study four complete applications that will show you ... (more)

New @PubNub App Template for #WebRTC | @ThingsExpo [#IoT]

November 13, 2013 PubNub released an open source template to allow developers to add Skype-like video chat into their apps. The free template provides a fully functional video chat platform using WebRTC, PubNub and Google Authentication for a global, reliable collaboration solution. "While the WebRTC protocol has created huge excitement as a way to deliver video chat ubiquitously, there's still a gap between the protocol itself and the ability to deploy a working, globally scaled, collaboration application using this technology," said Stephen Blum, CTO and co-founder of PubNub. "Now, by combining PubNub's Real-Time Network and WebRTC, anyone can deliver a true, Skype-like video chat app in a matter of days." All the core elements needed to build and deploy a fully featured WebRTC video chat product are available as a documented, open source template. This new temp... (more)

Is Test Overlap A Necessary Evil?

In a recent blog post titled "The Limitations of TDD", Jolt Awards colleague Andrew Binstock shared some reservations Cédric Beust has about TDD. When a person of extensive experience like Cédric speaks about testing, you pay attention. And I did. Among the very interesting quotes from Cédric that Andrew has reproduced, the following really struck me: Another important point is that unit tests are a convenience for *you*, the developer, while functional tests are important for your *users*. When I have limited time, I always give priority to writing functional tests. Your duty is to your users, not to your test coverage tools. You also bring up another interesting point: overtesting can lead to paralysis. I can imagine reaching a point where you don't want to modify your code because you will have too many tests to update (especially in dynamically typed languages, wh... (more)

WebRTC Summit Power Panel: The Future of WebRTC

WebRTC is the latest superhot topic emerging from Cloud Expo, and emerging from the worlds of open-source development and cloud computing worldwide. The WebRTC mission is deceptively simple: to enable rich, high-quality RTC applications delivered to browsers through JavaScript APIs and HTML5. It is already the result of a few years of dedicated effort by an enthusiastic developer community. In this WebRTC Power Panel being held Nov. 6 at 7:10 pm at the 1st WebRTC Summit, Nov. 6-7, at the Santa Clara Convention Center, Santa Clara, CA, a distinguished lineup of expert speakers will focus on such topics as: WebRTC for telcos - is there a real business opportunity? Is Skype a WebRTC Killer, or is WebRTC a Skype killer? Peer-to-peer use of WebRTC RTCPeerConnection Integrating WebRTC with Web Audio The Voice-Enabled Web P2P communication in the browser The monetization o... (more)

Google To Debut Its "Beacon" Internet Of Things Technology At @ThingsExpo

Google To Debut "Physical Web Beacon" at @ThingsExpo Silicon Valley In his session at Internet of @ThingsExpo, Google's Scott Jenson will discuss how the Physical Web incorporates beacons that can be put in any small retail store, for example, so that every store now has "an app" for its customers. The Physical Web is an open standard so any device can broadcast a URL wirelessly, so any phone/tablet/watch nearby can see and rank those devices. When the user taps on one, they just go to that web page. It's really that simple. It's about thinking small, enabling micro-information (what is in my prescription bottle) or micro interaction (can I buy a candy bar). Scott Jenson leads a project called The Physical Web within the Chrome team at Google. Project members are working to take the scalability and openness of the web and use it to talk to the exponentially explodi... (more)

JavaScript Errors | @DevOpsSummit @Dynatrace #JavaScript #AI #WebPerf

The Impact of JavaScript Errors These days we are moving more and more logic towards the user into the browser to achieve higher performance and better user experience. There are Single Page Application frameworks like AngularJS, React, Ember and others supporting this trend. If it works, everything is fine. But with this trend a JavaScript error can become a website killer. What does this mean? Below you can see the same page twice, but depending on the browser used, you get a product list from which you can make a selection…or NOT! The difference is the result of a simple JavaScript error. Figure 1: JavaScript error causing a product search to return no result Here is another example of an online email interface showing a list of contacts, or in this case NONE, due again to a simple JavaScript error. JavaScript errors today can ruin the user experience of a web ap... (more)

Let's talk JavaScript

Writing a book is not an easy job, and writing a tutorial on programming language is even harder. "The Book of JavaScript" (No Starch Press) is a well written tutorial, with clear and well explained code samples.   Below is a transcript of my dialog with Dave Thau, the author of this book. Q. For many years JavaScript was considered as a sort of a second-tier programming language with a limited use of prettifying Web pages. The first and second editions of your book  were published six years apart.  How would you compare the now-and-then positions of JavaScript  ? A. When the first edition of the Book of JavaScript came out, JavaScript was already a mature language.  In the six years between then and the new edition, the language has changed in three directions.  First, the language itself has added a number of new features, including new useful methods to extant object... (more)

Using Ext JS, Servlets, JSON, MySQL and Tomcat on Fedora

Java Developer Magazine on Ulitzer These days the popularity of Ext JS (a JavaScript library) is gaining momentum. One of the most popular widgets within Ext JS is the DataGrid. The reason - displaying data from a database is one of the most common tasks of a web application. "Out of the box" the DataGrid has functionality (for instance, ascending or descending sorting and reordering of columns by dragging it) that otherwise would require some effort from developers. Another attractive feature of the DataGrid is that it can use JSON (JavaScript Object Notation), which allows you to reduce traffic in comparison with full Swing HTML or XML formatting on the server. Examples from Ext JS site [1] and Ext JS books such as Learning Ext JS.Packt Publishing [2] are focused on PHP in conjunction with Ext JS. However, what if your organization already uses servlets for web a... (more)

Cloud Expo 2011 New York: Application Development in the Cloud

Cloud Expo 2011 New York $800 Savings here! At they understand that the browser is the future; therefore they have always seen the Open Web as a robust platform for application development. Meanwhile JavaScript is making its grand comeback. Combine these two ideas and you get Cloud9 IDE. Cloud9 IDE hopes to be the IDE for JavaScript developers built by JavaScript developers. JavaScript applications run online for a purpose, so why shouldn't you develop your application online too? In their session at the 8th International Cloud Expo, Lieke Arends, Business Development Manager at, and Rik Arends, Co-Founder and CTO of, will discuss the advantages of developing in the cloud (many of which most developers probably don't know). Explore Cloud Expo Sponsorship & Exhibit Opportunities ! Speaker Bios: Lieke Arends is Business Development Manager ... (more)

RIA Load Testing for Dummies

We all know that since the early ‘90s, Internet usage has exploded. Buying online, booking a trip or communicating with friends and relatives are just a few examples of what all of us are doing every day. The continuous development of broadband connectivity has also made easy the growth of those services and, as more bandwidth becomes available, quality will continued to improve as well. Considering this evolution and looking at the details of its capabilities, it appears Rich Internet Applications are one of the most important elements to improve the user experience in the modern Internet era. From HTML to RIA First let's explore how we got to where we are today by looking at the major steps in the development of the Internet. Back in the ‘90s, HTML came out and was quickly established as the main markup language for web pages. HTML allows images and objects to be e... (more)

Mobile Web Apps vs. Native Apps

Web Apps vs. Native Apps is a topic that still excites readers to this day, as if it were anticipated that one side will win and the other will lose. Contrary to popular belief, the discussion doesn't need to produce a winner and a loser. Instead of classifying apps as web apps or as native apps, why not just call them mobile apps? I believe "mobile app" is a great name. Under this name there are simply two variations of mobile app that can be created: web app and native app. A web app is an HTML5, JavaScript, CSS app running in a mobile browser. Now, you might wonder, why not just call this a mobile site? This is a fair point, and I believe the term "mobile site" can also be used. However, it is common to distinguish a mobile web app by one important extra feature, that it is invoking some remote services, usually a REST API (instead of just loading a static mobile ... (more)