Ver Mensaje Individual
  #3 (permalink)  
Antiguo 15/02/2008, 09:53
Avatar de PedroJTR
PedroJTR
 
Fecha de Ingreso: febrero-2008
Ubicación: Guarenas, Venezuela
Mensajes: 116
Antigüedad: 17 años, 3 meses
Puntos: 1
Re: Agregando Div, E Insertandolas En Bd Access

Cita:
Iniciado por rene_bustos Ver Mensaje
par poder ayudarte es necesario que pongas el codigo con el cual trabajas, de otra forma no podremos hacernada, ya que solo mandeste el HTML con algo de JAVASCRIPT
saludos.
Ohh.. Si.. Sorry!!!
Ya lo edité!!

Código PHP:
<script type="text/javascript" language="JavaScript">
function 
addNewRow(){
var 
TABLE document.getElementById("base");
var 
TROW document.getElementById("example");
var 
content TROW.getElementsByTagName("td");
var 
newRow TABLE.insertRow(-1);
newRow.className TROW.attributes['class'].value;
insertLOselect(content,newRow);
var 
newRow2 TABLE.insertRow(-1);
newRow2.className TROW.attributes['class'].value;
//window.alert(content);
copyRow(content,newRow2);
}
function 
removeLastRow() {
var 
TABLE document.getElementById("base");
if(
TABLE.rows.length 2) {
TABLE.deleteRow(TABLE.rows.length-1);
TABLE.deleteRow(TABLE.rows.length-1);
}
}
function 
appendCell(Trowtxt) {
var 
newCell Trow.insertCell(Trow.cells.length)
newCell.innerHTML txt
}
function 
copyRow(content,Trow) {
var 
cnt 0;
for (; 
cnt content.lengthcnt++) {
appendCell(Trowcontent[cnt].innerHTML);
}
}
function 
insertLOselect(content,Trow) {
var 
cnt 0;
for (; 
cnt content.length-1cnt++) {
appendCell(Trow'&nbsp;');
}
}
</script>