Hi,
If i correctly understood your problem, i had the same a few days ago and
this might work for you:
----------------------------------------------------------------------------
function saveStep2(t){
var error_msg = validateForm('step2');
var validate = t.responseText;
if(validate.indexOf(' ') != -1){
var error_msg = validate;
}
if(error_msg == ""){
prepareStuff('Saving your information...');
var poststr = saveString('step2');
new Ajax.Request('crossjax.php?step2', {parameters :
poststr, onSuccess : function(transport,json){ goTo(transport,json,'step3');
}, asynchronous : true});
} else {
errorStuff(error_msg);
}
return false;
}
function goTo (transport,json,yourdata){
var response = transport.responseText;
alert (yourdata);
}
----------------------------------------------------------------------------
Andreas
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---