Archive for the ‘web-design’ Category

A few thoughts on Yahoo’s free YUI hosting offer

Wednesday, February 28th, 2007

YUI has been my favorite AJAX library for two reasons: its unintrusiveness to the server side, and the excellent documentation. It is interesting and encouraging to see Yahoo offer free hosting for YUI. While there are obviously valid reasons for some sites not to use this service (external dependency etc.), the power of yahoo’s server facility, the advanced cache control, and the on-the-fly file size reduction (up to 90% according to the announcement linked) are in no doubt going to be very appealing to many others. more…

An Odd YUI Error

Thursday, August 17th, 2006

YUI Connection Manager throws this error when the ajax url passed to it is invalid (invalid as in, like, “I forgot to set the value!”). What makes it more obscure is it prints out the page url, which often looks alike, if not the same, the ajax url:

uncaught exception: [Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIXMLHttpRequest.open]” nsresult: “0×80070057 (NS_ERROR_ILLEGAL_VALUE)” location: “JS frame :: http://localhost:8080/myapp/foo.do :: anonymous :: line 0″ data: no]

X-JSON header useful in AJAX dialog submission flow

Tuesday, July 11th, 2006

One AJAX page I’ve been playing with has this UI flow that emulates a desktop form dialog - the user clicks on a link, a modal dialog shows up with a usual form, which the user fills out and submits to the server. Now, a successful response from the server can be one of these: if there are any form validation errors, the response is the same form annotated with the error message(s), in this case the response should be used to refresh the dialog. If there are no errors, the dialog is closed, and the response from the server should contain some content to update the area above the original link the user clicked on. more…

Sitemesh+YUI+IE=2 lessons learned

Sunday, June 4th, 2006

I’ve been using the Panel component in YUI(Yahoo UI Library) to build an AJAX page, which as part of the whole web application is wrapped by the standard boilerplate via sitemesh. It worked out all well and fairly straightforward - well, at least in Firefox and Opera, but in the dreaded, we-render-pages-with-lots-of-imagination IE 6, the panel showed up with a totally messed up layout, and worse, under the modal mode the entire page, including the panel itself, was masked with a 0.5 opaque layer and refused to take any input. more…

Add padding to images in IE

Thursday, April 20th, 2006

An IE quirks mode issue I ran into: more…

Another Reason for “No XHTML 1.1 STRICT”

Wednesday, January 25th, 2006

For me, other than the browser supporting issues cited by Brennan, one major and (I think) fairly practical obstable to adopting XML Strict is the difficulty to pop up a new browser window, simply because the ‘target’ attribute is being phased out. Of course, we can work around it with some Javascript stunt, just like what I’ve been doing with this blog site (I was in this “I’ve got to be strictly compliant” mode when I was putting together this site), but it just feels a bit silly after all the hoops, doesn’t it?

meebo: an AJAX IM

Thursday, September 15th, 2005

meebo is an AJAX-based instant messenger a few guys just launched. It’s still in “alpha”, but the idea is cool (some idea can be not really new, but still cool, ok? :) .)