PDA

View Full Version : problem with frames


phani
01-06-2003, 10:43 AM
Hi,

i want to add a textbox to the existing textboxes onclicking a button. Iam using frames and i have "toc" as the name of the right frame where the data is displayed. Iam using the following statement but it is giving error

toc.document.write("<tr><td>");
toc.document.write("<input type=textbox name=txt>");
toc.document.write("</tr></td>");

it is showing the following error
object "toc" is undefined

Roelf
01-06-2003, 10:52 AM
toc is an object of the parent (frameset document) so you could try parent.toc.document.write

phani
01-06-2003, 11:41 AM
Hi Roelf,

Here my old data is disturbing , i need to display my old data also along with adding a new field.

Thank u in advance
phani.