Foros del Web » Programando para Internet » Javascript »

Ubicacion de objetos en DOM

Estas en el tema de Ubicacion de objetos en DOM en el foro de Javascript en Foros del Web. para que me entiendan...aqui va el cod 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> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Documento ...
  #1 (permalink)  
Antiguo 03/07/2008, 02:51
 
Fecha de Ingreso: abril-2008
Mensajes: 1
Antigüedad: 16 años, 1 mes
Puntos: 0
Exclamación Ubicacion de objetos en DOM

para que me entiendan...aqui va el cod

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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin t&iacute;tulo</title>
</head>

<body>
<table width="267" height="129" border="1">
<tr>
<td width="84" height="23">Especialidad</td>
<td width="167">&nbsp;</td>
</tr>
<tr>
<td height="23">Nombre</td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="23">Turno</td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="23">Pension</td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="23" colspan="2">&nbsp;</td>
</tr>
</table>
</body>
<script type="text/javascript">

var obj=document.createElement('select');
obj.options[obj.length]=new Option('Electronica','Carre');
obj.options[obj.length]=new Option('Secretariado','Carre');
obj.options[obj.length]=new Option('Computacion','Carre');
document.body.appendChild(obj);

var salto=document.createElement('br'); //metodo para crear salto de linea
document.body.appendChild(salto);

var obj2=document.createElement('select');
obj2.options[obj2.length]=new Option('Mañana','tur');
obj2.options[obj2.length]=new Option('Tarde','tur');
obj2.options[obj2.length]=new Option('Noche','tur');
document.body.appendChild(obj2);

</script>
</html>
si se dan cuenta, hay doy combos afuera de la tabla, quiero ubicarlos dentro de la tabla, pero tengo un poco de problemas como hacerlo...alguien me dice como hacerlo?? espero respuestas........
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 06:11.