I’d like a script that could detect if called by jquery
If not, it’d display the page+layout, if not, it’d just so the content (but that is irrelevant)
But yeah, a way of detecting if it was called by jquery load – ajax – or directly requested.
Cheers!
Could you not send a GET parameter with the load?
Ie:
Any other value for normal script load
Then you let the PHP script deal with determining what to do next. By reading the value of
$_GET['jquery']