A
abrtlt
I have a simple PHP script that sends a string to
XMLHttpRequestObject.responseText.
responseText as received from the PHP script begins with 2 extra
newline characters (\n\nMyString):
<?php
require_once('DB.php');
require_once('../myDir/myFile.php');
.......
echo('MyString');
?>
myFile.php
<?php
$var1 = 1;
$var2 = 2;
$var3 = 3;
?>
If I manually write the contents of myFile.php into the script, there
are no extra newlines in responseText. (Same behavior with IE/FireFox)
Am I missing something?
Thanks!
Andrew
XMLHttpRequestObject.responseText.
responseText as received from the PHP script begins with 2 extra
newline characters (\n\nMyString):
<?php
require_once('DB.php');
require_once('../myDir/myFile.php');
.......
echo('MyString');
?>
myFile.php
<?php
$var1 = 1;
$var2 = 2;
$var3 = 3;
?>
If I manually write the contents of myFile.php into the script, there
are no extra newlines in responseText. (Same behavior with IE/FireFox)
Am I missing something?
Thanks!
Andrew