A widget/module to create cross browser styled forms. A validation
functionality to create a form within 1 function. This should be for
<input>, <select>, <textarea> and any other usable tags that are used often
in forms. The button widget is nice, but needs way too much configuration
to quickly setup large forms.
I hope this makes sense, if not you can email me for more details (com
yahoo mvanleest_nl).
Something like:
YAHOO.util.Event.onContentReady("form1", function () {
var sideMenu = new YAHOO.widget.Form("form1", {type: "submit",
action:"/index.cfm?type=saveform" effect: { effect:
YAHOO.widget.ContainerEffect.FADE, duration: 0.25}
}
);
form1.render();
});
<form id="form1" action="">
<input name="textitem1" class="required pattern" type="text" />
<input name="textitem1_pattern" value="regexp pattern(or standard ones like
zip, state etc)" />
<div id="products" class="checkboxgroup">
<input name="checkbox" value="product1" />
<input name="checkbox" value="product2" />
<input name="checkbox" value="product3" />
<input name="checkbox" value="product4" />
<input name="checkbox" value="product5" />
<input name="products_maxcheck" type="hidden" value="2" />
</div>
<input name="checkForm" click="form1.validate()" />
</form>
Nobody/Anonymous ( nobody ) - 2008-02-29 04:09
5
Closed
None
george puckett
None
None
Public
|
Date: 2009-01-23 00:44 The YUI project has been migrated from Source Forge to YUILibrary.com. |
|
Date: 2008-04-21 23:02
|
|
Date: 2008-03-26 19:02
|
|
Date: 2008-03-05 07:24
|
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2009-01-23 00:44 | gpuckett |
| assigned_to | kloots | 2009-01-23 00:44 | gpuckett |
| allow_comments | 1 | 2009-01-23 00:44 | gpuckett |
| close_date | - | 2009-01-23 00:44 | gpuckett |
| summary | Forms Widget | 2008-11-24 05:56 | gpuckett |
| assigned_to | miraglia | 2008-03-05 07:24 | miraglia |
| assigned_to | nobody | 2008-03-05 07:21 | gpuckett |