0

I'm developing an extension and I've run into a problem... I'm wondering how would I grab the URL's of a Google instant search page? Since the browsers http bar doesn't update! I would really appreciate any help with this!

Google instant appears to be using ajax to generate it's results. I need a way of grabbing the new URL when the page updates.

Skizit
  • 43,506
  • 91
  • 209
  • 269
  • 1
    To check if it's a Google Instance page, look for `#po-on-message` which `display` value is not `hidden` – Andris Jan 30 '11 at 13:44

1 Answers1

1

The hash part of the URL is updated a few seconds after the last typed key.

If you can't wait, you could be able to build the URL by serializing the search form:

// (jquery / pseudo code)
var base = $('form[name="gs"]').attr('action');
var params = $('form[name="gs"]').serialize();
var url = base + '?' + params;

The resulting URL will be similar to what it would have looked if the user submitted the form.

Arnaud Le Blanc
  • 98,321
  • 23
  • 206
  • 194