Web Info & Tutorials

April 4th, 2008

ASP.NET AJAX SITE AND SILVERLIGHT

Silverlight on MS Ajax Page

This is an interesting one. If you go to learn about ASP.Net Ajax at the Microsoft site itself you not only see info about the product, including this:

ASP.NET AJAX is a free framework for quickly creating efficient and interactive Web applications that work across all popular browsers.

ASP.NET AJAX is built-into ASP.NET 3.5. It is also available as a separate download for ASP.NET 2.0.

But, you may get a full screen modal popup that tells you how much better Silverlight is than anything the Open Web has to offer ;) NOTE: Some people see this, and others do not.

I don’t see this when I go to Adobe Spry. There is no “FLEX FLEX FLEX” message.

How do you feel about that?

April 4th, 2008

DOJO-MINI AND THE FEATURE EXPLORER

Above is the breakdown from the Dojo distribution. Peter Higgins was working on an AIR application using the new Dojo AIR integration and wanted to do a better job at stripping down the Dojo build for what he needed.

He ended up with a set of scripts to create a custom build nicely which includes:

  • Nuking all of the cruft you don’t want
  • Minifying the script
  • CSS inline optimization

So, you can run something like:

% ./build.sh profile=standard optimize=shrinksafe.keepLines version=1.1.0mini cssOptimize=comments.keepLines cssImportIgnore=../dijit.css action=release

Also, the fine Dojo Campus folks have created a Dojo feature explorer that acts as a showcase for Dojo itself:

Dojo Feature Explorer

April 4th, 2008

POPULARITY, HISTORY, AND SCRIPT SHARED

Brendan Eich has responded to Doug Crockford talking about the popularity of JavaScript, and the hash method for sharing JavaScript, in his post on Popularity.

In in he starts out by discussing the history of JavaScript, warped as it may be:

As I've often said, and as others at Netscape can confirm, I was recruited
to Netscape with the promise of "doing
Scheme"
in the browser. At least client engineering management including
Tom Paquin,
Michael Toy, and
Rick Schell,
along with some guy named

Marc Andreessen, were convinced that
Netscape should embed a programming language, in source form, in HTML. So it
was hardly a case of me selling a "pointy-haired boss" -- more the reverse.

Whether that language should be Scheme was an open question, but Scheme was
the bait I went for in joining Netscape. Previously, at SGI,
Nick Thompson had turned me on to
SICP.

What was needed was a convincing proof of concept, AKA a demo. That, I
delivered, and in too-short order it was a fait accompli.

He continues to talk about how Java came into the equation and the question of "do we need two languages?" came out of that. Scheme with a Java like syntax? That is what won out in the end.

No need to smoke the hash?

Brendan also feels like the hash method has some failings such as security: poisoning attacks and the safety of crypto-hashes. Also, having hash="some crazy hash" would look a little ugly in your HTML :)

Brendan proposes a shared URL:

HTML:
  1.  
  2. <script src="http://my.edge.cached.startup.com/dojo-1.0.0.js" shared="http://o.aolcdn.com/dojo/1.0.0/dojo/dojo.xd.js"></script>
  3.  

Imagine if we had an AOL CDN / YUI CDN that anyone could use? Some people may not like the "centralized" side of it, but I think it would be huge.

April 4th, 2008

AUDIBLE AJAX EPISODE 25: STATE OF AJAX

Ben and I were both in the same place for once, so we whipped out a recorder and produced a new Audible Ajax podcast.

There has been a lot going on in the Ajax-related space, and we cover our thoughts on:

  • IE 8 and standards
  • Acid3 testing
  • Server side JavaScript vs. polyglots
  • Fluid and GreaseKit
  • The meaning of the Open Web

We have the audio directly available, or you can subscribe to the podcast.

April 4th, 2008

NEW SHELL MOSAIK MASTERCARD FROM BMO BANK OF MONTREAL FUELS CUSTOMER SAVINGS

"No other card lets you choose your reward and provides such great value by giving you cash in your pocket or AIR MILES reward miles."

New card offer gives drivers 5% back on fuel purchases or 300 bonus AIR MILES reward miles. via CNW Group

April 4th, 2008

GQUERY: JAVA, GWT, AND JQUERY TOGETHER

Are you a follower of GWT but would same toms jQuery illusion integrated in? Ray general has your back, as he has created GQuery, an feat of jQuery for GWT.

This effectuation that you crapper indite cipher same this:

JAVA:

  1.  
  2. public void onModuleLoad() { 
  3.   $(“div”).css(“color”, “red”).click(new Function() { 
  4.      public void f(Element e) { 
  5.        Window.alert(“Hello”)
  6.          $(e).as(Effects).fadeOut()
  7.       } 
  8.    })
  9. } 
  10.  

I definite to shew whatever of the Brobdingnagian benefits of 1.5 by implementing a type-safe JQuery image in GWT.

That’s right, for every those folks who don’t poverty to care with GWT Widgets, but meet poverty to query, wrap, and cook stark older DOM elements in GWT, this article is for you. I’m conversation to you, you self-hating Java technologist with an intrinsic Javascript Ninja solicitation to be permit out.

After the GWT programme gets its safekeeping on it, the warning comes in at 5459 bytes. This accumulation crapper exclusive be achieved with GWT 1.5 features, and gives you:

  • Joel Webber of the GWT Team meet submitted a connector to GWT 1.5 that implements every DOM2 Core+HTML collection as a subclass of the newborn JavaScriptObject. This not exclusive prefabricated the writing of GQuery rattling easy, but it produces nicely optimized JavaScript.
  • Static Imports. The $ duty would not nearly be as pleasant without noise imports.
  • Generics and Covariant return. The Plugin execution utilizes this to imitation image supported overrides of the GQuery object.

Fun lowercase feature, $$

jQuery contains a aggregation of methods which verify essentially property/value pairs in a Javascript goal literal. Emulating this with Java structure would be likewise windy (Scala frontend to GWT, please!), however, to assist this ingest case, I additional a orbicular $$ duty for touching JavaScriptObject/JSON objects easily.

JAVA:

  1.  
  2. Properties exact = $$(“{ foo: ‘bar’, baz: ‘bam’}”)
  3. $$(“{foo: 1, forbid : 2}”).get(“foo”) == 1;
  4.