CORE/core/view.php : 237 CORE/core/view.php : 196 CORE/core/controller.php : 120 APP/controller/tools/source.php : 75 CORE/core/controller.php : 89 CORE/core/controller.php : 70 CORE/core.php : 170 BASE/index.php : 9 0.00099 - Loading view "view/page/source.html" CORE/core/view.php : 237 CORE/core/view.php : 196 CORE/core/controller.php : 120 APP/controller/index.php : 65 APP/controller/tools/source.php : 75 CORE/core/controller.php : 89 CORE/core/controller.php : 70 CORE/core.php : 170 BASE/index.php : 9 0.00136 - Loading view "view/page.html" UltraLight Showcase

Source for view:ajax

<p>This is a simple example of an ajax request.</p>
<p>
    <a id="testSuccess" class="btn btn-large btn-success">Click this button!!</a>
    <a id="testError" class="btn btn-large btn-danger">Or this button!!</a>
<p>
<div id="testResult" class="clear" style="margin: 20px; height: 80px;"></div>
<script>
    var clicked = 0;
    function handleResult(data) {
        var date = new Date(data.time * 1000);
        var text = "<p>Time: " + date.toUTCString() + "</p>";
        if (data.content) {
            text += "<p>Message: <b>" + data.content.message + "</b></p>";
            text += "<p>" + data.content.clicked + "</p>";
        } else {
            text += "<p class=\"text-warning\">Error: <b>" + data.error + "</b></p>";
        }
        $('#testResult').html(text);
    }
    $('#testSuccess').click(function() {
        clicked++;
        $('#testResult').html('Loading...');
        $.post('/ajax/example', {clicked: clicked}, handleResult, 'json');
    });
    $('#testError').click(function() {
        clicked++;
        $('#testResult').html('Loading...');
        $.post('/ajax/error', {clicked: clicked}, handleResult, 'json');
    });
</script>
CORE/core.php : 185 BASE/index.php : 9 0.00151 - Loaded classes array (14) ( 'Show' => array (2) ( 'file' => "CORE/show.php", 'time' => 0.00017, ), 'Config' => array (2) ( 'file' => "CORE/config.php", 'time' => 0.00019, ), 'Core\Cache' => array (2) ( 'file' => "CORE/core/cache.php", 'time' => 0.00024, ), 'Core\Cache\File' => array (2) ( 'file' => "CORE/core/cache/file.php", 'time' => 0.00024, ), 'Core\Arrays' => array (2) ( 'file' => "CORE/core/arrays.php", 'time' => 0.00042, ), 'Request' => array (2) ( 'file' => "CORE/request.php", 'time' => 0.00069, ), 'Sanitize' => array (2) ( 'file' => "CORE/sanitize.php", 'time' => 0.00071, ), 'Core\Controller' => array (2) ( 'file' => "CORE/core/controller.php", 'time' => 0.00075, ), 'App\Controller\Index' => array (2) ( 'file' => "APP/controller/index.php", 'time' => 0.00076, ), '\App\Controller\Tools\Source' => array (2) ( 'file' => "APP/controller/tools/source.php", 'time' => 0.00076, ), 'Core\View' => array (2) ( 'file' => "CORE/core/view.php", 'time' => 0.00079, ), 'App\Library\Sourcelist' => array (2) ( 'file' => "APP/library/sourcelist.php", 'time' => 0.00092, ), 'Core\Format\Variable' => array (2) ( 'file' => "CORE/core/format/variable.php", 'time' => 0.0012, ), 'Core\Bootstrap\Navbar' => array (2) ( 'file' => "CORE/core/bootstrap/navbar.php", 'time' => 0.00132, ), ) CORE/core.php : 186 BASE/index.php : 9 0.00268 - Debug "Done."