All AJAX shortcuts, such as:
.get()
.post()
.getScript()
.getJSON()
all uses the .ajax() function.
But the most settings of these functions are allready defined.
Look at the jQuery code:
return jQuery.ajax({
type: "GET",
url: url,
data: data,
success: callback,
dataType: type
});
so if you want to set your own settings use the .ajax() function!
On 6 Okt., 08:50, Micky Hulse <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have this bit of code that runs on page load:
>
> $.get(token, function(txt) {
> $emailStory.append('<input type="hidden" name="ts" value="' + txt +
> '">');
>
> });
>
> But it triggers ajaxStart/ajaxStop... I have tried:
>
> $.ajax({
> url: token,
> global: false
>
> });
>
> But that does not seem to help... I assume that is because $.get() is
> not $.ajax().
>
> Is there any way I can use $.get() but have ajax*() events ignore the
> $.get() request?
>
> Thanks for the help.
> M