Ver Mensaje Individual
  #1 (permalink)  
Antiguo 09/06/2008, 09:39
Arwen_chan
 
Fecha de Ingreso: junio-2008
Mensajes: 5
Antigüedad: 15 años, 10 meses
Puntos: 0
Problemas con Dojo

Hola, soy neva, por aquí, aunque siempre que tengo un problema recurro a los temas de este foro, pues bien, estoy haciendo una pruebas para la intro de una web, trabajo con el Visual Web Developer Express, y cuando estoy haciendo el proyecto me funciona perfectamente, pero cuando subo todo el proyecto a un FTP para que lo vean desde otro sitio falla, en el firebug aparece esto:

failed loading http://archive.dojotoolkit.org/nightly/dojotoolkit/dojo/../dojox/widget/FisheyeLite.js
with error: Permiso denegado al llamar al método XMLHttpRequest.opendojo.js (line 21)
Could not load 'dojox.widget.FisheyeLite'; last tried '../dojox/widget/FisheyeLite.js'
[Break on this error] (function(){var _1=null;if((_1||(typeof djConfig!="undefined"&&djConfig.scopeMap...


Y cuando voy a mirar si el archivo está o no en su sitio, yo si lo veo.

Es un código muy simple la verdad, eso la versión 1.1.1 de Dojo, ¿alguien sabe si da problemas?

Gracias por adelantado.

Cita:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>Prueba</title>
<script type="text/javascript" src="http://archive.dojotoolkit.org/nightly/dojotoolkit/dojo/dojo.js"></script>
<script type="text/javascript">
dojo.require("dojox.widget.FisheyeLite");
dojo.addOnLoad(function(){
dojo.query("img.imgBounce").forEach(function(n){
new dojox.widget.FisheyeLite({
properties: {
height:1.75,
width:1.75
}
},n);
});
});

// function imagenNormal(id){
// document.getElementById((id)).src = "img/" + id + "alt.jpg";
// }
//
// function imagenAlt(id){
// document.getElementById((id)).src = "img/" + id + ".jpg";
// }

</script>

<style type="text/css">
.imgBounce {
padding:0;
width:120px; height:90px;
vertical-align:middle;
position:relative;
top:0;
}

a img {
border: 0;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
<img style="height: 90px; width: 120px;" widgetid="imagen0" id="fisheye_1" class="imgBounce" src="img/fisheye_1alt.jpg">
<img style="height: 90px; width: 120px;" widgetid="imagen1" id="fisheye_2" class="imgBounce" src="img/fisheye_2alt.jpg">
<img style="height: 90px; width: 120px;" widgetid="imagen2" id="fisheye_3" class="imgBounce" src="img/fisheye_3alt.jpg">
<img style="height: 90px; width: 120px;" widgetid="imagen3" id="fisheye_4" class="imgBounce" src="img/fisheye_4alt.jpg">

</div>
</form>
</body>
</html>