Connecting Tech Pros Worldwide Forums | Help | Site Map

links in textarea

Newbie
 
Join Date: Apr 2007
Posts: 1
#1: Apr 14 '07
Hi,

I am new to JavaScript and to this forum and need your help.
I have a textarea in my html page and I have to populate this dynamically with some links through html.
I am using a for loop and in that document.getelementdyid(“text”).value=item
All the items are being displayed in the textarea, but I don’t know how to make them as links.

Any help in this matter would be highly appreciated.

tifoso's Avatar
Member
 
Join Date: Apr 2007
Location: Easy St
Posts: 41
#2: Apr 14 '07

re: links in textarea


Put your links inside a <TD> or something like that, you got to sync out the logic

...

<td>
<script >

document.write( my_writeout_links() );

</script>

</td>
Member
 
Join Date: Mar 2007
Location: The Netherlands
Posts: 37
#3: Apr 14 '07

re: links in textarea


hi pal

links in textarea !
wont work

Someone correct me if im wrong ;P
Atleast not for IE
peace
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#4: Apr 16 '07

re: links in textarea


Quote:

Originally Posted by aduash

Hi,

I am new to JavaScript and to this forum and need your help.
I have a textarea in my html page and I have to populate this dynamically with some links through html.
I am using a for loop and in that document.getelementdyid(“text”).value=item
All the items are being displayed in the textarea, but I don’t know how to make them as links.

Any help in this matter would be highly appreciated.

Welcome to The Scripts.
Use a div instead. A textarea normally can't display links.
Reply