Thank you so much Eric.

Now i understand that, cross domain access is not possible. Which also means that, the responseText can never contain, a response given by a resource from some other domain.
But i have another doubt related to this,
What if the there is a need to access third party application to show updates about something at regular intervals on a part of page without refresh...like for example ... news ? or weather? or cricket/football match score? How can this be achieved in such a scenario?
Another doubt, let's say i have hosted two web applications on abc.com as
app1 and
app2.
If i want to access
app1 i will hit the url as : -
http://abc.com/app1/home.htm if i want to access
app2 i will hit the url as : -
http://abc.com/app2/welcome.htm in such an environment, can i access
app2 from
app1 using Ajax, as their domains are same that is "localhost" ?
For example, in Ajax script of
home.htm of
app1 if i write,
xmlHttpObj.open("GET", "
http://abc.com/app2/welcome.htm", true);
is that allowed in AJAX? Million thanks in advance