Hello,
if I click on the Reset-Button below, the method resetFilter() take always the
Set-Button. Did I something wrong or is there an error in prototype.js
(Version 1.7) in method Form.serializeElements()?
Thank you for an answer in advance.
Manfred
HTML (as part of a form):
<div id="VFTFilter">
<input type="submit" onclick="VENDialog.submitFilter(event);return false;"
name="BTN_VFTSET" id="ID_VFTSET" value="Filter setzen" />
<input type="submit" onclick="VENDialog.resetFilter(event);return false;"
name="BTN_VFTRESET" id="ID_VFTRESET" value="Filter löschen" />
</div>
JS:
var AthDialogs = Class.create(
{
initialize: function()
{
},
resetFilter: function(event)
{
var arr = $$('#VFTFilter input[type=submit]');
var ty='';
for(var i=0; i < arr.length; i++)
ty+=arr[i].name + ", ";
alert(ty);
var json;
json = Form.serializeElements(arr, { hash: true });
var tx = Object.toJSON(json);
alert("reset Serialize: " + tx);
}
});
--
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en.