Table inside textarea, html control inside another |
Table inside textarea, html control inside another |
kingmaruthu |
Jan 10 2008, 02:58 AM
Post
#1
|
Group: Members Posts: 3 Joined: 10-January 08 Member No.: 4,683 |
Is it possible to create a table inside a text area. or similar such control ?????
|
Darin McGrew |
Jan 10 2008, 03:18 AM
Post
#2
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
No, a textarea element can contain only plain text.
|
Frederiek |
Jan 10 2008, 03:19 AM
Post
#3
|
Programming Fanatic Group: Members Posts: 5,146 Joined: 23-August 06 From: Europe Member No.: 9 |
No. See http://htmlhelp.com/reference/html40/tables/table.html.
Unless you want to show the code of a table in a textarea. |
kingmaruthu |
Jan 10 2008, 03:57 AM
Post
#4
|
Group: Members Posts: 3 Joined: 10-January 08 Member No.: 4,683 |
No. See http://htmlhelp.com/reference/html40/tables/table.html. Unless you want to show the code of a table in a textarea. so does it mean, I need to search for alternate means like ajax or innerhtml / ihtml ????? |
kingmaruthu |
Jan 10 2008, 03:59 AM
Post
#5
|
Group: Members Posts: 3 Joined: 10-January 08 Member No.: 4,683 |
Cool !! what r the other means !!! then |
Darin McGrew |
Jan 10 2008, 04:13 AM
Post
#6
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
QUOTE what r the other means !!! The other means to what end? What are you trying to do? |
Christian J |
Jan 10 2008, 12:04 PM
Post
#7
|
. Group: WDG Moderators Posts: 9,653 Joined: 10-August 06 Member No.: 7 |
If you want a scrollbar around a table you can use CSS "overflow".
A textarea is meant for entering form data. If you want to enter the form data in table cell format, you might put one textfield or textarea inside each table cell. |
shankar from vizag |
Aug 6 2019, 08:41 AM
Post
#8
|
Advanced Member Group: Members Posts: 202 Joined: 18-June 13 Member No.: 19,316 |
Greetings,
I want to place a big html textarea with some options like Bold, Italic, Linespacing, Fontsize, Font color, Insert table just similar to this page. with which user can edit the entered text inside the textarea. Is this possible ? regards |
pandy |
Aug 6 2019, 09:12 AM
Post
#9
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
Yeah. We've done it.
There are ready-made scripts for that you can use. I don't know what's hot ATM. Here's one, but I don't know if it's a good one. https://www.sceditor.com/ |
Christian J |
Aug 6 2019, 09:25 AM
Post
#10
|
. Group: WDG Moderators Posts: 9,653 Joined: 10-August 06 Member No.: 7 |
I think pandy means that you can use "BBCode", which is basically any kind of markup that users can type in a text field. For example, this forum uses
CODE [b]text[/b] to mark up bold text. Scripting then changes the BBCode into real HTML/CSS. Just beware of allowing users to type real HTML, like CODE <b>text</b> since it can be used for malicious code injection (unless you only allow a very limited whitelist). |
pandy |
Aug 6 2019, 10:39 AM
Post
#11
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
No. I meant that there are ready-made editors (or what they should be called) that you can use with your own forum, blog or page comments or whatever it is you are creating. Like a component you can include in your own code. I'm not totally sure any more that the one I linked to works that way.
BB-code isn't of much use if nothing interprets it. You could write your own, of course, but I got the impression that wasn't on the table. Maybe I'm wrong. |
Christian J |
Aug 6 2019, 04:06 PM
Post
#12
|
. Group: WDG Moderators Posts: 9,653 Joined: 10-August 06 Member No.: 7 |
I was think more of the general principle of using (non-HTML) markup, wether you create it yourself or use someone else's.
|
Christian J |
Aug 6 2019, 04:08 PM
Post
#13
|
. Group: WDG Moderators Posts: 9,653 Joined: 10-August 06 Member No.: 7 |
|
pandy |
Aug 7 2019, 09:48 AM
Post
#14
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
How do you mean? We can create a table here.
|
Christian J |
Aug 7 2019, 10:33 AM
Post
#15
|
. Group: WDG Moderators Posts: 9,653 Joined: 10-August 06 Member No.: 7 |
|
pandy |
Aug 7 2019, 06:47 PM
Post
#16
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
Hmm, it seems we can't. I thought that worked at all forums of this type. It has been around forever. The bbCode is the same as in HTML but with square brackets.
CODE [table] [tr] [td]This[/td] [td]is[/td] [/tr] [tr] [td]a[/td] [td]table![/td] [/tr] [/table] |
Christian J |
Aug 8 2019, 05:14 AM
Post
#17
|
. Group: WDG Moderators Posts: 9,653 Joined: 10-August 06 Member No.: 7 |
Aha! Haven't seen that before. I can imagine it's easy to make mistakes constructing it though (just like when writing ordinary HTML tables).
|
Lo-Fi Version | Time is now: 19th April 2024 - 06:41 AM |