Esempio n. 1
0
 function action_index()
 {
     echo '<html>';
     echo '<head>';
     echo $this->ajax->csrf();
     echo '</head><body>';
     echo HTML::script('javascripts/jquery.js');
     echo HTML::script(Route::get('phery.js')->uri());
     echo Phery::link_to('link', 'remote');
     echo '</body></html>';
 }
Esempio n. 2
0
function trigger()
{
    return PheryResponse::factory('div.test')->trigger('test')->jquery('<li/>')->css('backgroundColor', '#0f0')->html('<h1>Dynamically added, its already bound with phery.js AJAX upon creation because of jquery delegate()</h1>' . Phery::link_to('Click me (execute script calling window.location.reload)', 'surprise'))->appendTo('#add');
}