18 November 2005

Attach file ala Gmail

Just publish my rudimentary version of attach file ala Gmail. I'm using behaviour and prototype to manipulate dom and make clean markup.

I had tried another implementation of behaviour, but I guess the function Behavior.apply() is buggy :(. Careful, since behaviour had call the window.onload in their script. hint (prototype: Event.observe(window, 'load', fn, false);). ShrinkSafe from dojo doesn't like the behaviour and the prototype script. ShrinkSafe == Not safe anymore :(

Did I say my script is clean markup? Below is the snippet:

<div id="attaches"></div>
<span class="attach">Add a file</span>
<br/><input type="submit" value="Send">

p/s: this is not related to AJAX.
Post a Comment