Something like this might work:
var ajaxResponse;

$.ajax({
    url: 'ajax.php',
    complete: function(response) {
        ajaxResponse = response;
    }
});

-Hector


On Thu, Apr 9, 2009 at 3:44 PM, Nic Hubbard <nnhubb...@gmail.com> wrote:

>
> I have an $.ajax() call that I am using to GET some text from a page
> on my site.  I have put it in a variable with the success function.
> How can I move that var up and out of the $.ajax function so I can use
> it in other parts of my script?
>
> Thanks.

Reply via email to