header("Expires: Mon, 26 Jul 1997 05:00:00 GMT" ); header("Last-Modified: " . gmdate( "D, d M Y H:i:s" ) . "GMT" ); header("Cache-Control: no-cache, must-revalidate" ); header("Pragma: no-cache" ); header("Content-Type: text/xml; charset=utf-8"); include('database.php'); $xml = '<?xml version="1.0" ?><root>'; $xml .= '<message id="0">'; $xml .= 'mamy'; $xml .= jakis'; $xml .= 'text'; $xml .= '</message>';
if (obj.readyState == 4) { var xmldoc = obj.responseXML; var message_nodes = xmldoc.getElementsByTagName("message"); ...
w tym miejscu JS zatrzymuje sie i pojawia sie błąd : xmldoc is null
Proszę o pomoc w znalezieniu błędu.
Pozdrawiam