21 May 2012

The Tech Reflector

 
Star Following

  Source Favicon
On DailyJS 8 months ago.
Email

LAB .src.js . To create a suitable unit test, I've used the Turing Ajax test harness. The test itself just needs to ensure JavaScript gets loaded and executed as expected:

'test require' : function () { $t . require ( '/load-me.js' , function () { assert . equal ( loadMeDone , 1 ); }); }

The load-me.js script sets a global, loadMeDone , and the assertion tests for this. The script's onload method will be set to this callback.

Internet Explorer

dailyjs.com Read
  Source Favicon
Email

…(such as Dojo). A practical use case might be an Ajax call: a simple Ajax call might have two callbacks: a success and a failure callback. However, deferreds offer a decoupling by essentially abandoning callbacks and moving to a pub/sub system. Now multiple modules/processes can subscribe to a single " Ajax success" event. And modules/processes can even potentially subscribe to the success event in the time between the Ajax request is sent and before it's received. Again, …

jsmag.com Read
  Source Favicon
By Leah Silber of Official jQuery Blog 8 months ago.
Email

…should be familiar with HTML, CSS, and JavaScript.

Prior exposure to any of these concepts will be helpful, but not required: AJAX, XML, jQuery, HTTP, REST.

It's short notice, but we hope you can make it, so register now ! As always, feel free to email events@jquery.org with any event related questions.

See you all at the show!

blog.jquery.com Read
  Source Favicon
On DailyJS 8 months ago.
Email

Let's Make a Framework is an ongoing series about building a JavaScript framework from the ground up.

These articles are tagged with lmaf . The project we're creating is called Turing . Documentation is available at turingjs.com .

API Redesign

As I mentioned last week, I thought it would be interesting to change the turing.net module to have a chained API that looks more like TJ Holowaychuk's Superagent library. …

dailyjs.com Read
  Source Favicon
By dmethvin of Official jQuery Blog 9 months ago.
Email

Ajax

# 9255 : jQuery.parseXML error handling does not work in webkit browsers

# 9854 : Pass statusText through instead of "normalizing" it

# 9887 : jQuery.ajaxSetup may cause unnecessary memory usage

# 9970 : Typo in ajax.js: status should be jqXHR.status?

# 10098 : Encode comment-like Accept headers to avoid mobile carrier mangling

Attributes

# 9630 : foo.contents().hasClass() returns incorrect value …

blog.jquery.com Read
  Source Favicon
On Jupiter Home articles 8 months ago.
Email

Organizing Ajax and the Domain Model

Deffereds

Ajax Fixtures

Client Side Templates

The Perfect jQuery Plugin

Prototypal Inheritance

File/Folder Organization

Dependency Management

Production Builds

Testing

QUnit, Jasmine, Selenium, FuncUnit, Waitr, etc

High Performance jQuery

Even More Design Reviews

Yes, that's a whole lot to cover! So come and be prepared to have your mind blown (and let me know if there's something else …

jupiterjs.com Read
  Source Favicon
Email
  Source Favicon
By Robert Nyman of Robert's talk 10 months ago.
Email

When the AJAX wave came in 2005 when Jesse James Garrett coined the term and then everyone wanted it, one of the major shortcomings was that dynamic updates of only portions of a web page lead to inconsistent history handling and back/forward navigation button problems in web browsers and poor end user experiences. Enter the HTML5 History API .

The HTML5 History API aims to offer web developers a very simple way to push states of a web page into the history of the web browser, …

robertnyman.com Read
  Source Favicon
By Chris Heilmann of Mozilla Hacks - the Web developer blog 10 months ago.
Email

When AJAX came around we totally killed the bookmarking and history of the browser. This was a problem as our visitors have already been conditioned to hit the back button every time something goes wrong (admit it, you also found yourself reloading or hitting back in GMail one time or another). We needed a fix for that. As far as I remember Mike Stenhouse was the first to propose a fix in 2005 using the fragment identifier of the URI to store information and a hidden iframe element …

hacks.mozilla.org Read
  Source Favicon
By James Coglan of The If Works 10 months ago.
Email

jQuery - client side DOM, Ajax and effects library used to handle from submissions

JS.Class , JS.Test - portable object system and testing framework for JavaScript

Cucumber - Ruby acceptance testing framework used for writing plain-text test scenarios

Capybara - web scripting API that can drive many different backends

Rack::Test - Capybara backend that talks to Rack applications directly with no wire traffic, suited to …

blog.jcoglan.com Read