/** * * @access public * @return void **/ function onAbort(){ alert("Callback aborted!"); } function onCallbackError(src) { document.forms["frmMain"].content.value = src.error; } </script> </head> <body> <form name="frmMain" method="post"> <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();" /><br /> <textarea id="content" name="content" rows="18" cols="85"></textarea> <?php $cb->Render(); $cbA->Render(); ?> <!-- <script type="text/javascript" src="js/ajax_sample.js"></script> --> </form> </body> </html>
myCbA.addParameter("Email", "*****@*****.**"); myCbA.addParameter("Phone", ["2543243", "2554545", "35435435"]); myCbA.request("hi hi", "khi khi"); } function onCallback() { //alert("hehe"); } function onCallbackComplete(value) { //alert(value); } function onCallbackError(status, text, error) { //alert(error); } </script> </head> <body> <form name="frmMain" method="post"> <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();" /> <?php $cb->Render(); $cbA->Render(); ?> </form> </body> </html>