Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [AJAX][PHP]nie pobiera z xml
neo1986kk
post
Post #1





Grupa: Zarejestrowani
Postów: 561
Pomógł: 3
Dołączył: 2.02.2009

Ostrzeżenie: (0%)
-----


  1.  
  2. header("Expires: Mon, 26 Jul 1997 05:00:00 GMT" );
  3. header("Last-Modified: " . gmdate( "D, d M Y H:i:s" ) . "GMT" );
  4. header("Cache-Control: no-cache, must-revalidate" );
  5. header("Pragma: no-cache" );
  6. header("Content-Type: text/xml; charset=utf-8");
  7. include('database.php');
  8.  
  9. $xml = '<?xml version="1.0" ?><root>';
  10.  
  11. $xml .= '<message id="0">';
  12. $xml .= 'mamy';
  13. $xml .= jakis';
  14. $xml .= 'text';
  15. $xml .= '</message>';


  1. if (obj.readyState == 4) {
  2. var xmldoc = obj.responseXML;
  3. var message_nodes = xmldoc.getElementsByTagName("message");
  4. ...


w tym miejscu JS zatrzymuje sie i pojawia sie błąd : xmldoc is null
Proszę o pomoc w znalezieniu błędu.
Pozdrawiam
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 20.09.2025 - 02:34