×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Aug 2009
    Posts
    50

    responseBody = undefined

    Hello,

    when I made an XHR and I want to show the responseBody, I get "undefined". What is the problem?

    Here is my code

    Code:
    client.open("POST", url, false);
    client.onreadystatechange = function() {
    	switch(client.readyState){
    		case 4: 
    		if(client.status == 200){
    			alert(client.responseBody);
    			document.getElementById('test').innerHTML = client.responseBody;
    		}
    	              break;
    	}
    }	
    	
    client.send(null);
    thanx for help
    florianhaar

  2. #2
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: responseBody = undefined

    Hi florianhaar,

    you should use responseText property instead of responseBody.

    Hope it helps,
    Pit

Similar Threads

  1. undefined symbol?????
    By soumaya in forum Symbian
    Replies: 13
    Last Post: 2009-06-24, 09:13
  2. Undefined Identifier
    By ASP-NewBie in forum Symbian
    Replies: 5
    Last Post: 2009-03-07, 15:42
  3. undefined symbol
    By fmang in forum Symbian
    Replies: 25
    Last Post: 2007-11-20, 08:17
  4. Undefined symbol
    By MihailN in forum Symbian
    Replies: 1
    Last Post: 2007-07-26, 16:43
  5. Undefined TFontSpec
    By jonah786 in forum Symbian
    Replies: 2
    Last Post: 2007-04-19, 13:35

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×