<?php require_once 'class/autoloader.php'; Ajax::Angular(); // Auth::check(); /** * @internal * @param : Nombre del metodo a llamar dentro de la clase Ajax */ $ajax = new Ajax($_POST['get']); $ajax->init();
<input type="button" name="haha1" value="Callback 2" onclick="doCallbackA();" /> <ajax id="myCb" onRequest="onCallback" onComplete="onCallbackComplete" onError="onCallbackError" debug="true" ajaxPanel="true" loadingPanelTemplate="waiting.html" cssClass="myCb"> <div id="prepage" style="font-family: arial; font-size: 16px; background-color: white;"> <table width="100%"> <tr> <td><b>Yooour Content Here!</b></td> </tr> </table> </div> </ajax> <div> aS as ASA D SAD SA SAD SAD SAD SAD SA </div> <ajax id="myCbA" onRequest="onCallback" onComplete="onCallbackComplete" onError="onCallbackError" debug="true" ajaxPanel="true"> <div id="prepage" style="font-family: arial; font-size: 16px; background-color: white;"> <table width="100%"> <tr> <td><b>Yooooooooour Content Here!</b></td> </tr> </table> </div> </ajax> </form> </body> </html> <?php Ajax::init();
<input type="text" name="action" /> <input type="button" name="haha" id="haha" value="Callback 1" onclick="doCallback();" /> <input type="button" name="haha1" value="Callback 2" onclick="doCallbackA();" /> <ajax id="myCb" onRequest="onCallback" onComplete="onCallbackComplete" onError="onCallbackError" debug="true" ajaxPanel="false"> <div id="prepage" style="position: absolute; font-family: arial; font-size: 16px; left: 0px; top: 0px; background-color: white; layer-background-color: white; height: 100%; width: 100%;"> <table width="100%"> <tr> <td><b>Loading ... ... Please wait!</b></td> </tr> </table> </div> </ajax> aS as ASA D SAD SA SAD SAD SAD SAD SA <ajax id="myCbA" onRequest="onCallback" onComplete="onCallbackComplete" onError="onCallbackError" debug="true"> <div id="prepage" style="position: absolute; font-family: arial; font-size: 16px; left: 0px; top: 0px; background-color: white; layer-background-color: white; height: 100%; width: 100%;"> <table width="100%"> <tr> <td><b>Loading ... ... Please wait!</b></td> </tr> </table> </div> </ajax> </form> </body> </html> <?php $parser = Ajax::init();