Current location: Hot Scripts Forums » Programming Languages » PHP » text area and hyperlinking


text area and hyperlinking

Reply
  #1 (permalink)  
Old 12-30-03, 11:29 AM
aparna aparna is offline
Newbie Coder
 
Join Date: Dec 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Question text area and hyperlinking

Hi everyone,

Is it possible to make tha contents of a text area hyperlinked so clicking one line will repopulate the text area with fresh contents based on link?

eg

Display all directories in the drive in the text area. clicking on a directory name should repopulate textbox with the clicked directory contents



Thanks in Advance.

Aparna
Reply With Quote
  #2 (permalink)  
Old 12-30-03, 10:12 PM
blaw's Avatar
blaw blaw is offline
Junior Code Guru
 
Join Date: Dec 2003
Location: Vancouver, BC, Canada
Posts: 550
Thanks: 0
Thanked 0 Times in 0 Posts
Hi there,

As far as I am aware, tags within <textarea></textarea> will not markup whatever you are trying to, so, no, you can't make a list and hyperlink each line in a textarea.

Quote:
Display all directories in the drive in the text area. clicking on a directory name should repopulate textbox with the clicked directory contents
BUT why don't you use combobox (w/ javascript or submit button) or simply text links...?
__________________
Blavv =|
Reply With Quote
  #3 (permalink)  
Old 01-01-04, 07:05 PM
aparna aparna is offline
Newbie Coder
 
Join Date: Dec 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by blaw
Hi there,

As far as I am aware, tags within <textarea></textarea> will not markup whatever you are trying to, so, no, you can't make a list and hyperlink each line in a textarea.



BUT why don't you use combobox (w/ javascript or submit button) or simply text links...?
i figured that out the hard way
anyways, am using a listarea
what i havent been able to figure out is when a directory is clicked, how top repopulate the list area with the contents of the clicked directory.
Any suggestions?
Thanks in advance,
Apu
Reply With Quote
  #4 (permalink)  
Old 01-02-04, 01:37 AM
blaw's Avatar
blaw blaw is offline
Junior Code Guru
 
Join Date: Dec 2003
Location: Vancouver, BC, Canada
Posts: 550
Thanks: 0
Thanked 0 Times in 0 Posts
Hi again,

Given the info, I can't be too specific, but I would probably use GET parameters - when the directory name is clicked (are you using <select>? Then set a redirection OnChange with JavaScript or something - or use submit button), pass the dir name via URL and based on that, readdir() that dir and display whatever's in there in the way you like.

I chose GET, but depending on what you're trying to do, you may want to take a different approach. Hope this gives you some idea.

Good night...
__________________
Blavv =|
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
text area and hyperlinking aparna PHP 0 12-30-03 09:47 AM


All times are GMT -5. The time now is 07:49 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.