After an ajax call I cannot edit the content of the with ajax pulled content anymore.
I cannot edit the contents of the content
div anymore. Neither .show()
nor .animate()
do work anymore.
Does anybody have an idea what is going on?
index.php
if (!empty($uri)) {
$first = substr($uri, 0, 1);
if ($first == '/') {
$uri = substr($uri, 1);
}
if (!empty($uri)) {
$uri = explode('?', $uri);
$uri = explode('/', $uri[0]);
if (isset($uri[1])) {
$page = $uri[1];
} else {
$page = array_shift($uri);
}
if ($uri[0] == 'blanc' && empty($uri[1])) {
$page = 'profile';
}
}
}
$content = Helper::getContent($page);
if (!empty($_GET['ajax'])) {
echo $content;
} else {
require_once ('template.php');
}
?>
template.php
<div class="content">
<?php
echo $content;
?>
</div>