Friday, April 16, 2010

sending ajax request in rails

Hi

Just for syntax, used this for sending ajax request..


new Ajax.Request('/controller/action', {asynchronous:true, evalScripts:true, method:'get', parameters:'params1=' + param + '&param2=' + param + '&param3=' + param }); return false;

Thanks,
Sri

2 comments:

Unknown said...

Why don't you use jqeury?

Srikanth Jeeva said...

I used prototype!