Created
February 27, 2012 16:24
-
-
Save brettp/1925073 to your computer and use it in GitHub Desktop.
Elgg 1.8 elgg.get() test.
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
<?php | |
require_once(dirname(__FILE__) . "/engine/start.php"); | |
$content = <<<JS | |
<script type="text/javascript"> | |
// normalizes the url to the current <site_url>/activity | |
elgg.get('/activity', { | |
success: function(resultText, success, xhr) { | |
console.log(resultText); | |
} | |
}); | |
</script> | |
JS; | |
echo elgg_view_page('JS Test', $content); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment