Kunal Lakhani wrote:
But, on deploying and running, It shows alert with message as "inside receiveddata", then doesn't process "document.getElementById("Text6").innerHTML = request.responseText;", goes back to function getIntroducerDetails(), again enters the receivedData(), then shows alert with message as "inside receiveddata" thrice, and then shows alert with message as "Sorry"
I am not getting why its behaving like this
Are you not getting JS errors in line 5?? What's the value of that request Object? I think you may want to pass the arguments in the function declaration and use the correct object to check the status. Also would be a great idea to
debug your code using Firebug or Chrome Inspector or even Internet Explorer Developer Tools, it will save you tons of time.