Ver Mensaje Individual
  #4 (permalink)  
Antiguo 06/10/2012, 04:18
Avatar de Sirikon
Sirikon
 
Fecha de Ingreso: marzo-2009
Mensajes: 82
Antigüedad: 15 años
Puntos: 11
Respuesta: getJson con otro dominio

Si ya pusiste el Access-Control-Allow-Origin no necesitas hacer un jsonp, con un json normal ya te vale ya que ya permites el acceso desde cualquier sitio:

Código Javascript:
Ver original
  1. $.ajax({
  2.   url:'http://rubros.16mb.com/default.php',
  3.   timeout: 5000,
  4.   dataType: 'json',
  5.   success: function(res){
  6.     alert(res.micallback.value)
  7.   }
  8. })

Acabo de probar ese código y me funciona, a ver a ti que tal.

Saludos!