Thursday, November 27, 2014

Introduction to jQuery, from MicrosoftLearningExperiences

jQuery 101: Learn exactly what jQuery is and why you've heard so much about it. Explore considerations, such as when to take jQuery as a dependency and how to include it locally or via a CDN, and find out about the history and contributors to this very popular JavaScript library.​


Selection: Arguably the most powerful offering of jQuery over raw JavaScript, at least in the early days, was its ability to select one or more DOM elements using the popular CSS syntax. Take a look at this feature and how you can use it to select exactly what you need to manipulate.


Manipulating the DOM: Learn about selecting the elements you need, and see how to manipulate them.​


Events: One of the other super helpful features of jQuery is its provision for event handling. See how to tie your code up to user events so that the right thing happens at the right time.​


Effects: Effects give jQuery-enabled apps a little bit of jazz. Get the details on effects, like fades, slides, and other animations.​


Ajax and Async: Modern web apps don't just do a fetch and then sit there. There are often a lot of behind-the-scenes calls to web services and other online content. Take a look at how jQuery covers this case.​


Libraries: jQuery is obviously not the only library out there and may not be the right tool for the job. If you're wondering whether you should use it and curious about what other libraries it works well with, be sure to check out this module.​​



~ MicrosoftLearningExperiences

Wednesday, October 22, 2014

jQuery 2 Recipes: A Problem-Solution Approach

jQuery 2 Recipes: A Problem-Solution Approach

jQuery is often referred to as the 'write less, do more' JavaScript library. It allows a few clear lines of elegant, well-tested, code to replace many pages of complex hand-coded script, speeding development times and providing substantial cost savings. You will find jQuery 2 Recipes' problem-solution approach to be an excellent value and a feature-packed resource as you begin to include jQuery in your own projects. This book is bursting with fully-worked example recipes showing the core jQuery frameworks (jQuery, jQuery Mobile, jQuery UI) in action. Starting with fundamental principals and progressing to more advanced topics you'll be shown how to make the very best use of jQuery every step of the way. Early on, you'll learn to work confidently with dynamic data and to handle the jQuery events that form the foundation of your application. We'll then build on this foundation to demonstrate how fully working user-interface animations and AJAX data-validation can be constructed within jQuery. We'll show how add-on libraries like jQwidgets can be deployed to create professional quality apps for both the desktop and web with minimal coding. Finally, a full set of debugging and error-handling recipes is included to help you track down bugs and ensure your code is as robust as it can be. What you'll learn This book contains a comprehensive collection of recipes that will help you solve a wide range of jQuery 2.0 problems. Follow working examples of the main features of all three core jQuery frameworks (jQuery, jQuery UI and jQuery Mobile) in action. See how to integrate jqWidgets into your application effectively. Learn the techniques to create and implement custom animations and effects

Monday, October 13, 2014

JavaScript & jQuery: The Missing Manual, 3rd Edition

JavaScript & jQuery: The Missing Manual

JavaScript lets you supercharge your HTML with animation, interactivity, and visual effects—but many web designers find the language hard to learn. This easy-to-read guide not only covers JavaScript basics, but also shows you how to save time and effort with the jQuery and jQuery UI libraries of prewritten JavaScript code. You’ll build web pages that feel and act like desktop programs—with little or no programming.

The important stuff you need to know:
  • Pull back the curtain on JavaScript. Learn how to build a basic program with this language.
  • Get up to speed on jQuery. Quickly assemble JavaScript programs that work well on multiple web browsers.
  • Transform your user interface. Learn jQuery UI, the JavaScript library for interface features like design themes and controls.
  • Make your pages interactive. Create JavaScript events that react to visitor actions.
  • Use animations and effects. Build drop-down navigation menus, pop-ups, automated slideshows, and more.
  • Collect data with web forms. Create easy-to-use forms that ensure more accurate visitor responses.
  • Practice with living examples. Get step-by-step tutorials for web projects you can build yourself.

Wednesday, August 13, 2014

Chrome Dev Editor (developer preview) - tool for building apps on Chrome platform

Chrome Dev Editor (CDE) is a developer tool for building apps on the Chrome platform - Chrome Apps and Web Apps, in JavaScript or Dart. CDE is built as a Chrome App written in Dart and uses Polymer. CDE runs on Windows, Mac, Linux, and Chrome OS! CDE supports Git, Polymer, and mobile development.




Check out the video from Google I/O 2014 about building apps on the Chrome platform and how Chrome Dev Editor (CDE) is build.



Wednesday, July 16, 2014

Node.js example - retrieve dir and base using path module

The "path" module contains utilities for handling and transforming file paths.

Example to using path module:

var http = require("http");
var path = require("path");
 
http.createServer(function(request, response){
 
 var dirname = path.dirname(decodeURI(request.url));
 var basename = path.basename(decodeURI(request.url));
 
 response.writeHead(200, {"Content-Type": "text/plain"});
 response.write("Hello World! \n");
 response.write("from mobile-web-app.blogspot.com \n");
 
 response.write("dirname: " + dirname + "\n");
 response.write("basename: " + basename + "\n");
 
 response.end();
}).listen(8888);


Friday, June 27, 2014

Example of Javascript String comparison

Example of Javascript String comparison:

<html>
<body>
<script>
console.log("mobile-web-app Javascript String comparison");
var result1 = 'abc'===new String('abc');
var result2 = 'abc'===new String('abc').toString();
var result3 = 'abc'== new String('abc');
var result4 = 'abc'== new String('abc').toString();

console.log("'abc'===new String('abc') : " + result1);
console.log("'abc'===new String('abc').toString() : " + result2);
console.log("'abc'== new String('abc') : " + result3);
console.log("'abc'== new String('abc').toString() : " + result4);
</script>

</body>
</html>