afcn007-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Oct-12 11:48 UTC
synchronous with Ajax.Request
I want to get the remote data with a function, or the Ajax.Request,
and I have found the Ajax.Request''s options include asynchronous and
it can be set to false, so I write a wrapper:
function a(e){
var result;
var temp=new Ajax.Request(e,{
asynchronous:false,
onSuccess:function(w){result=w.responseText}
});
return result;
}
But what I want to know Is there a way to use simple Ajax.Request to
get the remote data or something like that, I donot want to write a
wrapper, I think Prototype should support this feature, and jQuery has
$.get and any suggestions? or Prototype support it and I donot how to
use it? Thanks for your reply
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---