21305 Posts in 5736 Topics by 2603 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 265 Views |
-
Executing controller function via AJAX

27 August 2012 at 9:10pm
Hi.
Is it possible to execute a controller function through Ajax? I want to get an array with objects the function fetches for me, but I have no clue how to execute the function.
Thanks in advance.
- Mario -
-
Re: Executing controller function via AJAX

28 August 2012 at 12:46am
You can execute a controller function using the the $Page/$Action/$Parameter url pattern, where $Page is the URL, the $Action is the name of the controller function and $Parameter is an variable you may need to push.
It should be noted that if you're trying to get data to display on the site your better off using RenderWith on the action that calls a template that renders the data and use it as a jQuery object
| 265 Views | ||
|
Page:
1
|
Go to Top |


