My code:

function get_data_default() {
new Ajax.Request('/adress',
    onSuccess: function(data){ return data.responseText.evalJSON
(true); },
    onFailure: function(){ alert('Something went wrong...') }
function show(){alert(get_data_default());}

I want to function get_data_default return data recived from OnSucces
function. How do that?


You received this message because you are subscribed to the Google Groups 
"Prototype &" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to