-
-
Save elricco/945f916d19c4a63a9e04fdbd7abc9de2 to your computer and use it in GitHub Desktop.
AJAX Call in REDAXO 5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.post( | |
location.href, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!rex::isBackend()) { | |
if (!empty($_POST)) { | |
exit; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Ajax check | |
if (rex_request::isXmlHttpRequest()) { | |
print $this->getArticle(1); | |
} else { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment