Pin plugin Code for Prototype

Pin plugin Code for Prototype

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...
166 views

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

http://www.ajaxupdates.com/wp-content/plugins/sociofluid/images/stumbleupon_32.png http://www.ajaxupdates.com/wp-content/plugins/sociofluid/images/delicious_32.png http://www.ajaxupdates.com/wp-content/plugins/sociofluid/images/blinklist_32.png http://www.ajaxupdates.com/wp-content/plugins/sociofluid/images/furl_32.png http://www.ajaxupdates.com/wp-content/plugins/sociofluid/images/technorati_32.png http://www.ajaxupdates.com/wp-content/plugins/sociofluid/images/magnolia_32.png http://www.ajaxupdates.com/wp-content/plugins/sociofluid/images/google_32.png http://www.ajaxupdates.com/wp-content/plugins/sociofluid/images/myspace_32.png http://www.ajaxupdates.com/wp-content/plugins/sociofluid/images/facebook_32.png http://www.ajaxupdates.com/wp-content/plugins/sociofluid/images/sphinn_32.png http://www.ajaxupdates.com/wp-content/plugins/sociofluid/images/mixx_32.png http://www.ajaxupdates.com/wp-content/plugins/sociofluid/images/twitter_32.png

Related Listings:

  1. Cross Site Plugin for Prototype During cross site Ajax requests the standard XmlHttpRequest approach breaks...
  2. Control.Rating using Prototype Control.Rating attaches to any div, span or table cell on...
  3. Prototype – Javascript Framework Prototype is a JavaScript Framework that aims to ease development...
  4. Prototype window login form Here is a simple tutorial to demonstrate the use of...
  5. jQuery Field Plugin This plugin greatly expands the ability to retrieve and set...

Do you like this post?

Email:     

Tags: , , , , , , , , , , , ,

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment



Web Design & CSS (Templates) - TOP.ORG