Friday, May 4th, 2007

How to correctly use the power of widgets in Ajax

Category: Articles, Component

<p>Laurent Haan has followed up his post on creating an Ajax ratings widget by getting a little more meta, and has posted on how to correctly use the power of widgets in Ajax.

It covers the usability and accessibility problems of custom widgets, compared to the standard HTML widgets and discusses the possible implementation methods that could be used to implement them in JavaScript.

There is a lot of work in this area. From the Widget W3C group, to the new the new dijit project.

Related Content:

  • Gaia Ajax Widgets adds controls, documentation
    The open-source Ajax toolkit for ASP.NET 2.0 has additional controls, XML documentation and sample code in its latest quarterly...
  • Correct use of CLOB datatype
    I have a database design where CLOB datatypes are being used in place of VARCHAR2 datatypes. The VARCHAR2 datatypes are not large. I believe this was...
  • Data correction
    David Loshin suggests instituting some straightforward controls over data correction to prevent arbitrary modifications to customer...
  • How is Ajax used?
    New uses of Ajax are constantly being discovered and old uses are still being refined. This page provides an overview of some of the most general...
  • Finjan: Attackers wild about widgets
    In a new report, security firm Finjan says the digital underground will have no trouble finding flaws to exploit in the widgets most Web users take...

Posted by Dion Almaer at 3:27 pm
8 Comments

++++-
4.1 rating from 41 votes

8 Comments »

Comments feed TrackBack URI

I dont understand why developers cant transport xml/xhtml/html using javascript directly, but has to work around it, using stuff like json?

XIN fetches entire xml/xhtml apps, with images, css, scripts and all, as a single unit and writes it into the page as part of it’s dom on the fly, works in all browsers too, and both the images and css are forceloaded into the page.

http://www.widgetplus.com is basically ‘proof of concept’ for this approach.
These widgets can be fetched cross-domain and appear anywhere, being injected into blogs, etc, using a single js-link.

There are no tricks, iframes or xmlhttp problems involved with this, and the apps are just plain dhtml apps with a server backend, so there’s nothing complicated writing one.

Comment by mikael bergkvist — May 5, 2007

I’m sure you didn’t take the time to read the article or you would know that I’m not talking about “stand-alone” widgets that are responsive and already implement their functional behavior themselves, but rather input widgets that can be used in standard forms to enter a value in a more fancy way. A basic example would be an horizontal slider that is used to enter a value between 0 and 10.
This can’t be done without any fancy “work-around” since the interaction with the slider only results in an internal value change and not in something like a server request as in the rating widget example.

Comment by Laurent Haan — May 5, 2007

The widgetplus widgets are all serverbased, and updates remotly from the server live.
- I did read the article.

Comment by mikael bergkvist — May 5, 2007

This shows you what I mean.. http://www.widgetplus.com/create.htm

Comment by mikael bergkvist — May 5, 2007

The article would do well with subheadings and paragraph margins.

Comment by Jordan — May 5, 2007

Yeah, I thought so too.

Comment by mikael bergkvist — May 5, 2007

mikael, typo on your site — “This is a series of interconnected widgets, a suit of widgets if you will”… “suit” =>”suite”

Comment by MD — May 5, 2007

Right. I’ll fix that pronto.

Comment by mikael bergkvist — May 5, 2007

Leave a comment

You must be logged in to post a comment.