Sunday, September 23, 2007

A quick patch to iUI

I've mentioned Joe Hewitt's iUI web framework before, and it does a pretty good job of imitating the iPhone native look and feel for web applications. However I was fiddling around with the framework and really wanted to be able to load an HTML fragment inline instead of appending it, which is the current behaviour of the "_replace" target, so I created a new "_insert" target to do just that...

The great thing about open source is that I can take some software that almost does what I want, scratch my itch, and make it do exactly what I want. If you're interested in scratching the same itch, you can download the patch files [1, 2] I've generated against the current release of iUI.

3 comments:

  1. Will what your describing here support the ability to update an iui page (say a panel page with text data) without having to leave the page? Im trying to creat a button to initiate a "page update" without the sliding animation.
    Thanks

    ReplyDelete
  2. Yup, that's exactly what this lets you do...

    ReplyDelete
  3. I have your patched iui version. but when trying this code, nothing happens;
    < li > < a target="_insert" href="test.html">Refresh< /a >< /li >

    Is this the good way or am i wrong?

    ReplyDelete