2

I'm wondering.. how would I get the XHR finished loading string?

Basically, I'm on Google instant's page and I want to get the return the "real" URL of the search results in the form of a string.

Skizit
  • 43,506
  • 91
  • 209
  • 269
  • Can you explain what you're looking for a bit more? – T.J. Crowder Jan 31 '11 at 11:55
  • What exactly do you mean? Do you want the response of the request? – Felix Kling Jan 31 '11 at 11:55
  • So this is actually the same as you previous question? http://stackoverflow.com/questions/4850349/window-location-force-to-update If you don't provide a detailed description of your problem, you won't get good answers. Don't let us guess, be specific. – Felix Kling Jan 31 '11 at 12:10
  • It's not so much the same.. this is an extension to my last question. – Skizit Jan 31 '11 at 12:14
  • @Skizit: But what is the difference? It seems to be the same goal: Get the "real" URL. Or am I missing something? If the questions are 98% the same that you should edit and clarify your original question instead of creating a new one. I asked a couple of questions about your previous question and you did not even bother to answer them. Don't expect help from us if you don't help us to help you. – Felix Kling Jan 31 '11 at 12:25
  • @Felix Kling I didn't see your reply to the other question. I have responded and voted to close this question. – Skizit Jan 31 '11 at 12:34
  • As I understand you want to monitor ajax requests that are being made by google and get notified when such request finishes. Is it correct? – serg Jan 31 '11 at 17:04

1 Answers1

2

If jQuery is an option, you can do an Ajax call and get the result of the page in the succes event

    $.ajax({
  url: 'ajax/test.html',
  success: function(data) {
    $('.result').html(data);
    alert('Load was performed.');
  }
});
Ivo
  • 3,406
  • 4
  • 33
  • 56