Welcome Guest, Not a member yet? Register   Sign In
Ajax and MVC
#8

[eluser]jbowman[/eluser]
No guys, really, this is simple. If you're making AJAX requests, you should have the ability to include a post variable with the request. So in your controller check for that variable.

if (_POST['ajaxRequest'] == true )
{
/* load what my ajax request is expecting, json, xml, piece of html, whatever */
} else {
/* load whatever full page view for people who don't have javascript or whatever */
}


Messages In This Thread
Ajax and MVC - by El Forum - 07-11-2007, 12:45 PM
Ajax and MVC - by El Forum - 07-11-2007, 02:34 PM
Ajax and MVC - by El Forum - 07-11-2007, 03:28 PM
Ajax and MVC - by El Forum - 07-12-2007, 10:28 AM
Ajax and MVC - by El Forum - 07-12-2007, 08:39 PM
Ajax and MVC - by El Forum - 07-12-2007, 10:43 PM
Ajax and MVC - by El Forum - 07-13-2007, 01:10 PM
Ajax and MVC - by El Forum - 07-13-2007, 01:25 PM



Theme © iAndrew 2016 - Forum software by © MyBB