Click here to Skip to main content
15,892,674 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am working in ruby on rails and i am new to that.

I need to invoke a rails controller method as onclick event of already existing links in my application.

I learnt that it is not possible to invoke rails server method throug javascript which runs client side.

I would appreciate if anyone help me to write jquery with ajax for doing this thing.
Posted

1 solution

Hi Fathima,

For this you have many approches are their to call server side method from client side.

Some of them are

PageMethods
Ajaxpro (A third party javascript library)
Jquery $.ajax()
Many other approches...

you can choose any of them

http://www.dotnetcurry.com/ShowArticle.aspx?ID=109[^]

http://stackoverflow.com/questions/886903/calling-asp-net-server-side-method-via-jquery

[^]http://www.ajaxpro.info/quickguide.aspx[^]

Thanks
SP
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900