Rassac
asked on
Is it possible to combine SPRY widgets?
Hi I would like to combine the Spry.Utils.setInnerHTML with Spry.Effect.Fade.
I have a form which when submit, it will load another page instead of the form itself. On submit, the form will call validateonsubmit()
function updateResponseDiv(req)
{
Spry.Utils.setInnerHTML('r esponse_fo rm1', 'confirm.html');
document.getElementById('f orm1').res et();
}
function validateonsubmit(form){
if (Spry.Widget.Form.validate (form) == true){
Spry.Utils.submitForm(form , updateResponseDiv);
}
return false;
}
Is it possible to use the Spry.Effect.Fade so that the new page (confirm.html) will fade in?
Thanks.
I have a form which when submit, it will load another page instead of the form itself. On submit, the form will call validateonsubmit()
function updateResponseDiv(req)
{
Spry.Utils.setInnerHTML('r
document.getElementById('f
}
function validateonsubmit(form){
if (Spry.Widget.Form.validate
Spry.Utils.submitForm(form
}
return false;
}
Is it possible to use the Spry.Effect.Fade so that the new page (confirm.html) will fade in?
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER