Link to home
Start Free TrialLog in
Avatar of Klaus Talkenberger
Klaus TalkenbergerFlag for Germany

asked on

check url with $.ajax

hello

i have to check if a external url exists ..
this is my solution

$.ajax({

    crossDomain:true,
   xhrFields: {
      withCredentials: true
   },
       type: "POST",
    url: "http://web.de/magazine/finanzen/index.html",
    success: function(data){
			console.log( "success" );
    },
    error: function(data){
			console.log( "error" );
    },
    complete: function(data){
			console.log( "complete" );
    }
});

Open in new window


but it retrns alwasy error ... the url exists ...

hope you can help

Talki
ASKER CERTIFIED SOLUTION
Avatar of Jon Norman
Jon Norman
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial