Why's jquery ajax status not working for me?

Home

Why's jquery ajax status not working for me?

Mar82011

Here is my $.ajax({

url: 'http://www.clarkeology.com',

complete: function ( hxr, textStatus ) {

console.log( 'status ' + textStatus );

console.log( 'status ' + hxr.status );

}

});


And here's what my console says:

GET http://www.clarkeology.com/ 200 OK [x] 225ms

status error

status 0


So the console says clarkeology.com returned a 200, but jquery ajax says status is 0. What is going on? jquery api and jquery faq both say it should work.

UPDATE: I am an idiot, I'm trying this cross domain of course it won't work, thanks for the reminder :-(

:: :: Comment / reply

Over to you, discussion about anything local, but please be considerate... Folkestone on TV, Kent gigs, Find a flatmate, rent a room, property queries, current news, what's new, local events, for sale, local services, what I like about Folkestone, ask questions, offer advice, plug yourself... the more it's used the more useful a resource it will become. If you want a gig listed click here to add it (fixed now!), or just click here to post a message...

Also from the same week

Some more blog posts from the same week as .

Aha Jolsons / The Party Bar to reopen [Saturday 5 March 2011]

Andy Coveney raises a tonne for Kent Foundation Yeah, holler with excitement! [Thursday 10 March 2011]

Charity Boot Fairs in aid of Cancer Research UK 2011 [Thursday 10 March 2011]

Which Folkestone bar is to reopen then? as teased by The Herald on the twitter this week [Friday 4 March 2011]