JavaScript Journal

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


Top Stories

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)

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)

HTML5 Web Sockets: A Quantum Leap in Scalability for the Web

Lately there has been a lot of buzz around HTML5 Web Sockets, which defines a full-duplex communication channel that operates through a single socket over the Web. HTML5 Web Sockets is not just another incremental enhancement to conventional HTTP communications; it represents a colossal advance, especially for real-time, event-driven web applications. HTML5 Web Sockets provides such a dramatic improvement from the old, convoluted "hacks" that are used to simulate a full-duplex connection in a browser that it prompted Google's Ian Hickson - the HTML5 specification lead - to say: "Reducing kilobytes of data to 2 bytes...and reducing latency from 150ms to 50ms is far more than marginal. In fact, these two factors alone are enough to make Web Sockets seriously interesting to Google." Let's look at how HTML5 Web Sockets can offer such an incredibly dramatic reduction of... (more)

Building Windows 8 Apps with JavaScript

Although I started with ColdFusion for application development, I did plenty brochureware sites with HTML. I believe the version was HTML 2.0 for IE 2.0. I lived in the browser world for years doing Cold Fusion, ASP, and HTML sites. When winforms and Smart Client with web services emerged I changed my religion. Since then I have been avoiding the browser whenever possible since. For the past couple of years my extent of using simple HTML has been limited to writing blogs and book reviews. Simple HTML means no ASP.NET or ASP.NET MVC. I have used HTML/JavaScript/CSS a lot as a byproduct of building ASP.NET and ASP.NET MVC applications for public consumption. Internal enterprise applications I will still push for using WPF and web services over ASP.NET or ASP.NET MVC, but I lose that battle a lot, especially when the developers have never learned WPF (XAML) and have no... (more)

WebRTC Summit | The WebRTC Data Channel

Slide Deck: The WebRTC Data Channel The WebRTC Data Channel is the next big thing in browser real-time communication. In his session at WebRTC Summit, Dan Ristic, a developer evangelist for PubNub, explored the specification of what the data channel is, the potential road blocks to using it, and where to use it in production today. He also explored the future of the data channel and how it will change the browser landscape in the years to come. Click here to follow ▸@WebRTCSummit WebRTC Journal ▸Home Speaker Bio Dan Ristic is a developer evangelist for PubNub, the leading provider of real-time technologies. He is passionate about front-end engineering and looks to push the web to its limits every day. His goal is to map the future of the web and how it will change the future of the world. A Rock Star Faculty, Top Keynotes, Sessions, and Top Delegates! Cloud Expo® 201... (more)

WebRTC Summit | Is WebRTC a Second Stage Engine in the Telehealth Rocket?

Slide Deck: Is WebRTC a Second Stage Engine in the Telehealth Rocket? Telehealth legislation opened the floodgates for investment in modern communications services and APIs since 2010. WebRTC promises a second revolution. In his session at 1st WebRTC Summit, Ivelin Ivanov, co-founder of TeleStax, first discussed a real-world example where telephony APIs make a difference in improving patient care and reducing healthcare costs. He then looked into a brighter telehealth future with secure, high quality, ubiquitous WebRTC video interactions. Speaker Bio Ivelin Ivanov is a technology entrepreneur who founded Mobicents, an Open Source VoIP Platform, to help create, deploy, and manage applications integrating voice, video and data. He is the co-founder of TeleStax, an Open Source Cloud Communications company that helps the shift from legacy IN/SS7 telco networks to IP-ba... (more)

Angular 2 and TypeScript | @ThingsExpo @YFain #IoT #JavaScript #TypeScript

Why Java Developers Will Embrace Angular 2 and TypeScript Most of the Java developers I know don’t like JavaScript. Initially. They would give you different reasons why, but the real one is simple: too much to learn to make it work. For many Java developers creating the front end of a Web application in JavaScript is a chore to write and a burden to maintain. Nevertheless JavaScript rules in Web development and the new version of JavaScript (ES6) will make it even more popular. ES6 offers classes, standardized module definition, arrow expressions (lambdas), predictable “this” and a lot more. Firefox and Chrome already support most of the ES6 syntax, and other browsers are getting there as well. But there is something better than ES6: the TypeScript language, which has most of what ES6 has to offer plus types, casting, interfaces, generics, and annotations. The TypeSc... (more)

JavaScript: Beyond Just Web Apps | @ThingsExpo #IoT #M2M #API #ArtificialIntelligence

JavaScript: Beyond Just Web Apps By Omed Habib The age of computers is over. You are now living in the age of intelligent processing by just about everything else. Like vacuum tubes and tape drives, desktops and laptops are on their way to becoming odd relics of a distant age, if people remember them at all. That may sound a bit extreme, but the fact is that applications are not married to any technological substrate, not even the most advanced mobile devices. That is why smart developers have already turned their attention to using JavaScript for building out next-generation technology like drone controllers, big data management tools, and connectors for the Internet of Things (IoT). The World After Web Apps In Fabio Nelli’s “Beginning JavaScript Charts: With jqPlot, d3, and Highcharts,” he starts off by saying “JavaScript is experiencing a rebirth as a result of t... (more)

JSON Creator Douglas Crawford Reveals the Brilliance Within JavaScript at AJAXWorld

JavaScript is currently the world's most used programming language, JSON creator Douglas Crawford told a very full keynote room full of delegates at the 6th International RIA Conference & Expo in San Jose, CA, today. "The very best part of JS is its stability. That is what made AJAX possible," declared Crockford. He then went on, though, to sketch in details some of JavaScript's bad parts. The Most Distinguished Conference Faculty Alumni - A Who's Who of the RIA Rock Stars! AJAXWorld RIA Conference & Expo faculty alumni include such notable speakers as: Brad Abrams (Microsoft), Danny Allan (Watchfire), Jean-Francois Arcand (Sun Microsystems), Roland Barcia (IBM), Jeffrey Barr (Amazon), Robb Beal (Lazslo Systems), Sumeer Bhola (IBM), Robert Boedigheimer (The Schwan Food Company), David Boloker (IBM), Jeff Brown (G2One), Shane Bryzak (JBoss), Bob Buffone (Nexaweb), Ku... (more)

Inheritance Patterns in JavaScript

Inheritance Patterns in JavaScript Interesting points on using pseudo-classical inheritance pattern vs the functional pattern.  SproutCore is pseudo-classical based, just like Closure, primarily because of memory concerns.  Nice to see folks at Google went down the same direction. ... (more)

Gosling Hints He Left Oracle over Money

Java papa James Gosling, who left Oracle on Good Friday slamming the door behind him, has dropped another provocative hint about the circumstances of his departure from Sun's new master. When he blogged that he'd quit, he wrote "As to why I left, it's difficult to answer: Just about anything I could say that would be accurate and honest would do more harm than good. The hardest part is no longer being with all the great people I've had the privilege to work with over the years." Now he's saying that he's been "spending quality time with my lawyer, resigning has been a full time job (before I quit, several friends said I'd need a lawyer because ‘this is Oracle we're talking about'...sadly, they were right)...." "I didn't leave Oracle because I had some next great thing to go to. I'm feeling pretty burned out and trashed, so the only thing I know for certain is that... (more)