Foros del Web » Programando para Internet » Javascript » Frameworks JS »

SqueezeBox - Expandable Lightbox (v1.1)

Estas en el tema de SqueezeBox - Expandable Lightbox (v1.1) en el foro de Frameworks JS en Foros del Web. Estimados estoy intentando armar esto: http://digitarald.de/project/squeezebox/1-1/showcase/ajax/ Me baje los archivos, CSS, JS, IMGs y Motools. Los Motools son los siguientes: http://mootools.net/core/ Element.Dimensions Fx.Tween Fx.Morph Selectors ...
  #1 (permalink)  
Antiguo 16/07/2012, 11:40
 
Fecha de Ingreso: febrero-2012
Mensajes: 19
Antigüedad: 12 años, 2 meses
Puntos: 0
SqueezeBox - Expandable Lightbox (v1.1)

Estimados estoy intentando armar esto:

http://digitarald.de/project/squeezebox/1-1/showcase/ajax/

Me baje los archivos, CSS, JS, IMGs y Motools.

Los Motools son los siguientes:

http://mootools.net/core/

Element.Dimensions
Fx.Tween
Fx.Morph
Selectors Este no lo encontre en la lista.
JSON
DomReady (facultative)

A parte de el JS que te da para descargar dan el siguiente codigo:

Código Javascript:
Ver original
  1. window.addEvent('domready', function() {
  2.  
  3.     /**
  4.      * That CSS selector will find all <a> elements with the
  5.      * attribute rel="boxed"
  6.      *
  7.      * The second argument sets additional options.
  8.      */
  9.     SqueezeBox.assign($$('a[rel=boxed]'), {
  10.         size: {x: 300, y: 400},
  11.         ajaxOptions: {
  12.             method: 'get' // we use GET for requesting plain HTML (you can skip it, it is the default value)
  13.         }
  14.     });
  15.  
  16. });

El mismo lo puse en el mismo HTML entre la etiqueta script

El HTML quedo de la sigueinte manera:

Código HTML:
Ver original
  1. <html xmlns="http://www.w3.org/1999/xhtml">
  2. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  3. <title>Documento sin título</title>
  4. <link href="assets/SqueezeBox.css" rel="stylesheet" type="text/css" />
  5. <script type="text/javascript" src="mootools-core-1.4.5.js"></script>
  6. <script type="text/javascript" src="SqueezeBox.js"></script>
  7.  
  8. </head>
  9.  
  10.  
  11.  
  12. window.addEvent('domready', function() {
  13.  
  14.     /**
  15.      * That CSS selector will find all <a> elements with the
  16.      * attribute rel="boxed"
  17.      *
  18.      * The second argument sets additional options.
  19.      */
  20.     SqueezeBox.assign($$('a[rel=boxed]'), {
  21.         size: {x: 300, y: 400},
  22.         ajaxOptions: {
  23.             method: 'get' // we use GET for requesting plain HTML (you can skip it, it is the default value)
  24.         }
  25.     });
  26.  
  27. });
  28.  
  29.  
  30. <a href="asd.html" rel="boxed">What is it?</a> |
  31. <a href="asd.html" rel="boxed">Box with JavaScript</a>
  32.  
  33.  
  34. </body>
  35. </html>

Y el archivo asd.html que tiene el contenido que deberia emerger cuando haces click es el siguiente:


Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  4. <title>Documento sin título</title>
  5. </head>
  6.  
  7.  
  8. <p> ASD AASD AD ASKLPSASKLASLKLAÑKLÑSALÑSKL <br />
  9.  ASD AASD AD ASKLPSASKLASLKLAÑKLÑSALÑSKL <br />
  10.   ASD AASD AD ASKLPSASKLASLKLAÑKLÑSALÑSKL <br />
  11.    ASD AASD AD ASKLPSASKLASLKLAÑKLÑSALÑSKL <br />
  12.     ASD AASD AD ASKLPSASKLASLKLAÑKLÑSALÑSKL <br />
  13.      ASD AASD AD ASKLPSASKLASLKLAÑKLÑSALÑSKL <br />
  14.       ASD AASD AD ASKLPSASKLASLKLAÑKLÑSALÑSKL <br /></p>
  15.  
  16. </body>
  17. </html>

El mismo no funciona... No abre en la ventana emergente, actua como un redireccionamiento normal.
Agradezco si me podrian ayudar.

Un saludo cordial
Juan Pablo!

Etiquetas: ajax, html, js, lightbox
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 15:24.