[Javascript] need guidance to transfer info from one table to another

DeWayne Crenshaw decren at yahoo.com
Tue Apr 10 02:43:51 CDT 2007


Thank you for your quick "and working" response. I'd
been at this problem for about a week and couldn't see
the forest...etc. Anyway, your solution solved the
problem.

--- Nick Fitzsimons <nick at nickfitz.co.uk> wrote:


> A text input doesn't have any innerHTML: it's an
> empty element. The  
> text typed in is held in its value property, and
> need to be converted  
> into a text node to append to the cell. So:
> 
> var value =
> document.getElementById("textBox").value;
> var cell1 = row.insertCell(1);
> cell1.appendChild(document.createTextNode(value));
> 
> should do what you want.
> 
> HTH,
> 
> Nick.
> -- 
> Nick Fitzsimons
> http://www.nickfitz.co.uk/
> 
> 
> 
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
> 



       
____________________________________________________________________________________
Now that's room service!  Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097



More information about the Javascript mailing list