-4

Possible Duplicate:
How to redirect from one URL to another URL?

I have the following jQuery function in which I am trying to re-direct to another page -- how would I do this?

$.post('/ajax/change_qc_status/',  {
        'qc_note': qc_note,
        'user': user
    }, 
    function(request){
        $.get('/summary/90') // this does nothing
    }
);

Note that if I go to the page /summary/90 it is the correct page.

Community
  • 1
  • 1
David542
  • 96,524
  • 132
  • 375
  • 637
  • 1
    God how I hate `tab` spaces. You're *not* doing a redirect per se. You're trying to *asynchronously get* content. It's not the same. – Jared Farrish Aug 13 '12 at 00:07

1 Answers1

4

You don't need jQuery for this at all.

Just use window.location = "intended URL"

ahren
  • 15,967
  • 5
  • 44
  • 67