Yep, that was my confusion. reponseText (as it's name suggests) should be text/string. If the above comparison works then I would guess there is some implicit type conversion going on, and it was quite possibly a 'lucky stumble'? For instance, if reminderresponse contained the string "0", then (reminderresponse == 0) would indeed evaluate to true because of implicit type conversion.
Msg#: 4357685 posted 2:00 am on Sep 2, 2011 (gmt 0)
You shouldn't serve text files to your visitors, use responseXML instead.
With responseXML you should be able to check for childNodes.
Then you should be able to do something like...
...or count the number of childNodes...
Also avoid proprietary methods like innerHTML and stick to DOM methods like appendChild or importNode when importing AJAX loaded content in to a page otherwise you're going to deal with a lot of unreliable code and it's associated frustration.