Connecting Tech Pros Worldwide Help | Site Map

can we make table in textarea

Newbie
 
Join Date: Jul 2007
Posts: 1
#1: Jul 23 '07
hi,

can we create table inside a textarea or link to some other file where
table is created.
dafodil's Avatar
Needs Regular Fix
 
Join Date: Jul 2007
Location: Philippines
Posts: 393
#2: Jul 23 '07

re: can we make table in textarea


Quote:

Originally Posted by rajpri

hi,

can we create table inside a textarea or link to some other file where
table is created.

You cannot create a table inside a textarea in html, but you can import other programs like Microsoft Word... using ASP to be able to create table, inside Microsoft's word work area.
harshmaul's Avatar
Expert
 
Join Date: Jul 2007
Posts: 483
#3: Jul 23 '07

re: can we make table in textarea


My guess is you want to make the cells of the "table" modifiable....

If this is the case do it the other way around ;)

Rather than a table in a text area, put various textareas in to the table.

something like....

<table border="1">
<tr>
<td>
<textarea cols="3" rows="2">X</textarea>
</td>
<td>
<textarea cols="3" rows="2">O</textarea>
</td>
<td>
<textarea cols="3" rows="2">X</textarea>
</td>
</tr>
<tr>
<td>
<textarea cols="3" rows="2"></textarea>
</td>
<td>
<textarea cols="3" rows="2">O</textarea>
</td>
<td>
<textarea cols="3" rows="2">X</textarea>
</td>
</tr>
<tr>
<td>
<textarea cols="3" rows="2">O</textarea>
</td>
<td>
<textarea cols="3" rows="2"></textarea>
</td>
<td>
<textarea cols="3" rows="2">X</textarea>
</td>
</tr>
</table>
drhowarddrfine's Avatar
Expert
 
Join Date: Sep 2006
Posts: 5,561
#4: Jul 23 '07

re: can we make table in textarea


He wants the table inside the textarea not the other way. As explained, it can't be done.
harshmaul's Avatar
Expert
 
Join Date: Jul 2007
Posts: 483
#5: Jul 23 '07

re: can we make table in textarea


I am aware that this cannot be done. But if, for example you want to capture text fomat in a tabular layout this canbe done using the tags i wrote, and then handling each cellindividually.

So... rajpri, what is it that you need to use this for and i can tell you whether my markup is suited to you or not.
Reply