For information on DavisSoft visit our web presence at DavisSoft

JQuery Parsed Ajax Errors

December 15, 2011 Leave a comment

A very cool code fragment I ran into while looking for something else — funny how that happens.

jQuery Deferreds and the jQuery Promise Method

JQXHR AND THE PROMISE INTERFACE

  1. $.ajaxPrefilter(function( options, originalOptions, jqXHR ) {
  2.   if ( options.parseError ) {
  3.     jqXHR.pipe( null, function( jqXHR, statusText, errorMsg ) {
  4.         var parsed = $.parseJSON( jqXHR.responseText );
  5.         return $.Deferred().rejectWith( this, [ jqXHR, statusText, parsed ] );
  6.     }).promise( jqXHR );
  7.     jqXHR.success = jqXHR.done;
  8.     jqXHR.error = jqXHR.fail;
  9.   }
  10. });

http://lithostech.com/2011/04/jquery-deferreds-and-the-jquery-promise-method/

Categories: Uncategorized

JQuery 1.7 Callbacks

October 30, 2011 Leave a comment

Callbacks

The general idea behind pub/sub (the Observer pattern) is the promotion of loose coupling in applications. Rather than single objects calling on the methods of other objects, an object instead subscribes to a specific task or activity of another object and is notified when it occurs.

http://dailyjs.com/2011/10/25/jquery-roundup/

Categories: Uncategorized

ParseResponse({“title” : “Get Your JSON Response Anywhere”})

October 7, 2011 Leave a comment

From Programmable Web

JSONP simply wraps the response in a function call named by the developer. The P stands for “padding,” where the provider needs only pad the results with a bit more information. Supporting JSONP is a cinch.

258 JSONP APIs: Get Your JSON Response Anywhere http://bit.ly/q6Lo4x

Categories: Uncategorized

JQuery Plugin Mechanism

May 11, 2011 Leave a comment

Extending the Library

Another excellent article on extending JQuery.

The jQuery library is centered on a root object, which exposes a number of methods. After doing whatever tasks it was called to do, each method just returns the instance of its parent object. In this way, a new call to another method can be arranged on the same expression.

(function( $ ){
 $.fn.yourPluginName = function() {
 // your code here
 };
})(jQuery)

Read the rest of the article http://drdobbs.com/web-development/229403172

Categories: Code, JQuery

Elements of Design?

April 29, 2011 Leave a comment

An interesting take on what a design is, rather than how to accomplish one.

By exploring these elements individually—and by thinking about design as not just a noun (the design) but also a verb (to design)—we can approach the abstract question of “What is design?” in a productive way.

Read the full article http://www.technologyreview.com/business/37225/?a=f

Categories: Uncategorized

Using the JQuery Cache

April 23, 2011 Leave a comment

Using Client Side Storage

Session duration storage management made not a total pain in the browser.

The jQuery library offers ..  a simple but quite effective API to store data in the browser’s memory for the duration of a session.

Read more http://drdobbs.com/web-development/229402114

Categories: HTML, JQuery

Agility at the Speed of Kwality

April 5, 2011 Leave a comment

The Agile UnManefesto

Dr. Dobb article on Agile umpteen years later. The Agile process is popular but sometimes just doesn’t turn out so well.  Process in general improves the end product, thats the idea anyway.

My own feeling is that Agile tries to capture how a high quality engineer works. Unfortunately, it takes a high quality engineer. Agile really depends on a great team leader and a good team to be successful, more so than other processes.

From the article, link below.

First, let’s jump to what most people will perceive to be the end results. As a group, we agreed on the following four belief statements:

  1. Demand technical excellence
  2. Promote individual change and lead organizational change
  3. Organize knowledge and improve education
  4. Maximize value creation across the entire process

Let’s dive down into what these belief statements imply. The first statement, demand technical excellence, is a reflection both of the general values of the working group and also our frustration with what we’re seeing in practice — or more accurately, not seeing in practice.

Read more here http://drdobbs.com/architecture-and-design/229301128

Agile development explained

Categories: Agile, Methodologies

HTML5, Promise, Hype, Whatever

April 1, 2011 Leave a comment

Syntax and Semantics Are Important

An interesting article on marketing versus reality on HTML5.

It has been my opinion that HTML, the language written over 30 years by committee and pushy individuals, is less than perfect.

I’d rather see XML period. A markup language in XML would be semantically correct, and syntactically consistent.

Until then, market me this 🙂

Read the article here http://www.wait-till-i.com/2011/02/09/using-html5-sensibly-and-multimedia-on-the-web-speaking-at-the-london-ajax-meetup/

Categories: HTML Tags:

Why People ‘Like’ on Facebook

January 11, 2011 Leave a comment

How to win friends and influence customers.

Interesting article on what people expect or hope when they follow a company on facebook.

1. 40% want to receive discounts and promotions
2. 37% want to show support for the brand/company to others
3. 36% hope (want) to get free samples, a coupon (a.k.a. freebies)
4. 34% want to stay informed about the activities of the company
5. 33% want to get updates on future products
6. 30% want to get updates and information on future sales
7. 27% like to get fun and entertainment out of it
8. 25% want to get access to exclusive content
9. 22% mentioned they were referred by someone to follow this brand/company
10. 21% want just to learn more about the company

Read the full article.

Categories: Social Networking

JQuery Event Handling

December 18, 2010 Leave a comment

De-complicating Browser Event Handling

JQuery simplifies event handling across browsers.

In jQuery, you define an event handler by simply passing the code you want to execute to a function that identifies the particular event.  There are several ready-made functions for most common events such as click, blur, hover, change, dblclick, focus, select (text selection), ready, scroll, and resize , plus multiple events for keyboard and mouse actions.

Read the article at Dr. Dobbs http://www.drdobbs.com/java/228800832

Categories: Code, JQuery
Design a site like this with WordPress.com
Get started