Foros del Web » Programando para Internet » Javascript »

javascript y lightbox

Estas en el tema de javascript y lightbox en el foro de Javascript en Foros del Web. hola estoy tratando de generar cajas dinamicamente con javascript,y al momento de dar clic en sobre una caja de texto q se genera, queria q ...
  #1 (permalink)  
Antiguo 09/06/2010, 08:55
 
Fecha de Ingreso: junio-2010
Ubicación: Guanajuato
Mensajes: 1
Antigüedad: 13 años, 10 meses
Puntos: 0
javascript y lightbox

hola
estoy tratando de generar cajas dinamicamente con javascript,y al momento de dar clic en sobre una caja de texto q se genera, queria q habriera una pagina con lightbox, pero tengo problemas para mandarla llamar no hace nada
les muestro parte de mi codigo


<script type="text/javascript">
hs.graphicsDir = '../highslide/graphics/';
hs.outlineType = 'rounded-white';
hs.wrapperClassName = 'draggable-header';
num=0;
function add() {
num++;
//Create an input type dynamically.
var element = document.createElement("input");
element.type = 'text'; // 6
element.name = 'id'+num; // 6
element.value='${partida.material.nombre}';
element.onclick=("return hs.htmlExpand(this, { objectType: 'iframe' } ), seleccionarCharla.do");



//Assign different attributes to the element.
// element.setAttribute("type", type);
// element.setAttribute("value", type);
//element.setAttribute("name", type);

var element1 = document.createElement("input");
element1.type = 'text'; // 6
element1.name = 'cantidad'+num; // 6
//element.value=
//Assign different attributes to the element.
// element1.setAttribute("type", type);
//element1.setAttribute("value", type);
//element1.setAttribute("name", type);

var element2 = document.createElement("input");
element2.type = 'text'; // 6
element2.name = 'costo'+num; // 6
//element.value=
//Assign different attributes to the element.
//element2.setAttribute("type", type);
//element2.setAttribute("value", type);
//element2.setAttribute("name", type);

var element3 = document.createElement("input");
element3.type = 'text'; // 6
element3.name = 'importe'+num; // 6
//element.value=
//Assign different attributes to the element.
//element3.setAttribute("type", type);
//element3.setAttribute("value", type);
//element3.setAttribute("name", type);

var element4 = document.createElement("input");
element4.type = 'text'; // 6
element4.name = 'seleccionar'+num; // 6


var foo = document.getElementById("fooBar");

//Append the element in page (in span).

foo.appendChild(element);

foo.appendChild(element1);
foo.appendChild(element2);
foo.appendChild(element3);
foo.appendChild(element4);

function Material(add) {
foo.removeChild(document.getElementById(add)); // 10

}


}


</script>

plis ayuda:

Etiquetas: 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 11:16.