Connecting Tech Pros Worldwide Forums | Help | Site Map

ajax - obj.responseText

Newbie
 
Join Date: Oct 2008
Posts: 3
#1: Nov 9 '08
hi,
I am returning a string "hello" from an ajax page and retrieveing it with
object.responseText ;like
echo "hello" ;
var test = object.responseText;
but the statement below is not working... Any idea ?
if(test=="hello")

Dormilich's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 3,660
#2: Nov 9 '08

re: ajax - obj.responseText


did you check that you actually receive anything? (alert responseText or use Firebug (FF plugin))

regards
Reply