Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor florianhaar's Avatar
    Join Date
    Aug 2009
    Posts
    50
    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 jappit's Avatar
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,391
    Hi florianhaar,

    you should use responseText property instead of responseBody.

    Hope it helps,
    Pit

Similar Threads

  1. undefined symbol?????
    By soumaya in forum Symbian C++
    Replies: 13
    Last Post: 2009-06-24, 09:13
  2. Undefined Identifier
    By ASP-NewBie in forum Symbian C++
    Replies: 5
    Last Post: 2009-03-07, 15:42
  3. undefined symbol
    By fmang in forum Symbian C++
    Replies: 25
    Last Post: 2007-11-20, 08:17
  4. Undefined symbol
    By MihailN in forum Symbian C++
    Replies: 1
    Last Post: 2007-07-26, 16:43
  5. Undefined TFontSpec
    By jonah786 in forum Symbian C++
    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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved