Ver Mensaje Individual
  #5 (permalink)  
Antiguo 25/02/2014, 12:18
juanpi2013
 
Fecha de Ingreso: mayo-2013
Mensajes: 17
Antigüedad: 11 años
Puntos: 0
Respuesta: Mostrar datos en un div, que cambie haciendo clic

Hise esto me funciona bien en firefox pero en chrome no:

<script type="text/javascript">
$(document).ready(function(){
$("#enlace1").click(function(event){
$("#mostrar-contenido").load("datos-mapas.html #lima");
});

$("#enlace2").click(function(event){
$("#mostrar-contenido").load("datos-mapas.html #arequipa");
});

$("#enlace3").click(function(event){
$("#mostrar-contenido").load("datos-mapas.html #cusco");
});
});
</script>


en chrome me sale estos errores, cual puede ser el problema, gracias!!!


event.returnValue is deprecated. Please use the standard event.preventDefault() instead.


OPTIONS file:///C:/wamp/www/green-team/es/datos-mapas.html No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.


XMLHttpRequest cannot load file:///C:/wamp/www/green-team/es/datos-mapas.html. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.