We have never enough of RIA, today I wrote a pin plugin for prototype which aims to remember some field’s values. The problem faced is that some forms are extensively used, and if for a reason or another the enduser had some repetitive fields to enter, he can activate the pin plugin in front of the field and memorize it for the next action. The plugin simply use prototype and cookies :
<html><head>
<script type="text/javascript">
window.onload = init;
function init() {
AttachPin('name');
}
</script>
</head><body>
Name <input type="text" name="name" value="" id="name"/>
</body></html>
Only multiple select is not yet supported, otherwise you can see the pin plugin working online in Demo Link.
Demo: http://www.phpmagazine.net/demo/pin/
Download: http://www.phpmagazine.net/demo/pin/pin.js
Source: http://ajax.phpmagazine.net/2007/04/pin_plugin_for_prototype_remem.html

Related Listings:
No comments yet.
RSS feed for comments on this post. TrackBack URL