myExternalFunction.php 618 B

1234567891011121314151617181920
  1. <?php
  2. function myExternalFunction()
  3. {
  4. $objResponse = new xajaxResponse();
  5. $objResponse->addAlert('External function successfully included and executed');
  6. return $objResponse;
  7. }
  8. class myExternalClass
  9. {
  10. function myMethod() // static (can't hardwire that in because of PHP 4)
  11. {
  12. $objResponse = new xajaxResponse();
  13. $objResponse->addAlert('External class successfully included and method executed');
  14. return $objResponse;
  15. }
  16. }
  17. ?>
  18. <p> This is some content that should be ignored by an asynchronous request
  19. through xajax, but will show up if the file is otherwise included into the script. </p>