[eluser]D_Williams[/eluser]
One of the controllers I'm currently working on has a mix of "normal" controller functions and ones designed to be called by AJAX in my views.
Is there any way for me to test whether my function is being called from AJAX so I can prevent my function from being called in a browser?
Better yet, should I even bother? If somebody goes to mysite.com/whatever/ajaxfunction and it spews garbage output at them should I care? I can't think of any security risks in doing that...