Archive for the ‘UI Design’ Category

Creating an XML vocabulary for the UI

Saturday, February 27th, 2010

One benefit I’ve experienced is that you have tighter, centralized control over the markup generated for the UI when developing under an XML language for UI pages.

If you get 5 people coding forms in html, you’ll get 5 variations on the markup. Using XML instead, you can have tight control over what is and isn’t allowed.

<ui:form method="POST">
    <ui:field name="street1" />
    <ui:field name="street2" />
    <ui:field name="phone" />
    <ui:hidden_field name="id" />
</ui:form>

XSLT can be used to create the html you’d like:

  • automatically surround fields with fieldset element
  • automatically create submit buttons without having to declare them.
VN:F [1.8.4_1055]
Rating: 5.5/10 (2 votes cast)
VN:F [1.8.4_1055]
Rating: +1 (from 1 vote)

Warning: Unknown: Your script possibly relies on a session side-effect

Monday, February 1st, 2010

I came across this error a few times, enough to where I dug around and finally found the real fix to supress the error completely.

Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively in Unknown on line 0

I was able to supress the error by properly unsetting a session variable:


  //replace this:
  $_SESSION[$field] = null;

  //with this:
  unset($_SESSION[$field]);

The warning is triggered by assigning to the $_SESSION super global directly. By using unset(…) we are not assign null directly.

VN:F [1.8.4_1055]
Rating: 10.0/10 (1 vote cast)
VN:F [1.8.4_1055]
Rating: +1 (from 1 vote)

iPad Hype

Thursday, January 28th, 2010

Depressing release day for Apple’s iPad perhaps (their stock didn’t go bazirker); however neither did it when Apple originally released the iPod — it took about 6 months to a year before the iPod became mainstream (I’m sure it will impact their stock the same way for the iPad).

I’m betting the iPad has it’s uses (and people will want it) — digital magazine, books, recipes, couch, in bed, passenger in car/train etc….when you don’t want to lug a laptop around, and want a little more screen real estate than an iPhone/iTouch, you’ll want an iPad.

VN:F [1.8.4_1055]
Rating: 10.0/10 (2 votes cast)
VN:F [1.8.4_1055]
Rating: 0 (from 0 votes)