Welcome Guest, Not a member yet? Register   Sign In
Non-Javascript Friendly Site
#8

[eluser]Narkboy[/eluser]
[quote author="dudeami0" date="1290331324"]
Code:
function show_cart() {
   $ajax = isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest';
   if (!$ajax) {
      // Full page view
   } else {
      // Partial page view
   }
}

Might work for you Smile[/quote]

Oooooh - this is exactly what I was looking for! Broswer sends the request as AJAX if it can, PHP returns output based on the type of request! Perfect; simple, unobtrusive, invisible to the user. Everything can just work which is the goal Smile

Thanks!!!!


Messages In This Thread
Non-Javascript Friendly Site - by El Forum - 11-20-2010, 03:10 PM
Non-Javascript Friendly Site - by El Forum - 11-20-2010, 03:46 PM
Non-Javascript Friendly Site - by El Forum - 11-20-2010, 03:46 PM
Non-Javascript Friendly Site - by El Forum - 11-20-2010, 03:57 PM
Non-Javascript Friendly Site - by El Forum - 11-20-2010, 04:03 PM
Non-Javascript Friendly Site - by El Forum - 11-20-2010, 04:16 PM
Non-Javascript Friendly Site - by El Forum - 11-20-2010, 09:22 PM
Non-Javascript Friendly Site - by El Forum - 11-21-2010, 03:55 AM
Non-Javascript Friendly Site - by El Forum - 11-25-2010, 11:27 PM
Non-Javascript Friendly Site - by El Forum - 11-26-2010, 03:50 AM
Non-Javascript Friendly Site - by El Forum - 11-26-2010, 06:36 AM
Non-Javascript Friendly Site - by El Forum - 04-19-2011, 09:22 AM
Non-Javascript Friendly Site - by El Forum - 04-19-2011, 01:28 PM
Non-Javascript Friendly Site - by El Forum - 04-19-2011, 04:48 PM
Non-Javascript Friendly Site - by El Forum - 04-19-2011, 05:01 PM



Theme © iAndrew 2016 - Forum software by © MyBB