File: testAJAXLoadContent.php

Recommend this page to a friend!
  Classes of Manuel Lemos   AJAX Load Content   testAJAXLoadContent.php   Download  
File: testAJAXLoadContent.php
Role: Auxiliary data
Content type: text/plain
Description: AJAX content loader example response script
Class: AJAX Load Content
Load HTML and submit forms using AJAX requests
Author: By
Last change:
Date: 9 years ago
Size: 575 bytes
 

Contents

Class file image Download
<?php /* * testAJAXLoadContent.js * * @(#) $Id: testAJAXLoadContent.php,v 1.3 2014/07/08 04:29:15 mlemos Exp $ * */ $header = new stdClass; $header->element = 'feedback'; $body = '<div>Success!</div><pre>'.HtmlSpecialChars(print_r($_POST, true))."\n\n".HtmlSpecialChars(print_r($_FILES, true)).'</pre><script type="text/javascript"><!--'."\n".'alert("JavaScript code executed!");'."\n// --></script>\n"; /* * Build a JSON encoded header with custom out of band response data */ $json = json_encode($header); echo strlen($json), "\n", $json, $body; ?>