Ver Mensaje Individual
  #1 (permalink)  
Antiguo 03/05/2013, 07:06
jesramgue
 
Fecha de Ingreso: mayo-2013
Mensajes: 1
Antigüedad: 11 años
Puntos: 0
Ajax en Osscommerce

Hola estoy intentando lanzar una petición ajax (con jquery) desde un servidor osscommerce hacia otro servidor (tomcat) y siempre me llega la respuesta de la petición con fallo.

¿cómo puedo hacerla o como debo hacerla? ¿debo meter algun cookie en la respueta o algo?

Esta es mi petición:
$url_ = "https://localhost:8443/Test";
// fire off the request
var request = $.ajax({
url: $url_,
type: "post",
contentType: "application/x-www-form-urlencoded;charset=UTF-8",
data: 'json=ceLWHyxfhAgFbok8W4B2xTupdam9pbkX5Wv/Eo3EfQ+c8z05VP8h4xCdRQhJohnyCZRxz0+3ktueGMh+coNNmL K16F83JXQSmYQz9j1RrNIwQnnryGvGGWLwwOWEVa79QaFFvhMn/0TyIaZTEWc5OA==',
success: function(datos){
alert("Hooray, it worked!" + datos);
//$("#result").html('submitted successfully');
},
error:function(erroraco){
alert("failure" + erroraco);
//$("#result").html('there is error while submit');
}
});

La petición me llega bien a mi servidor y la proceso paso a paso correctamnete pero en cuanto cierro la respuesta ...siempre entra por " error:function(erroraco){"

Alguna ayuda?