|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
To my knowledge, this is not possible. You could achieve a similar effect by using a DIV whose style makes it look like a textarea and whose overflow property is set to "scroll." This would allow you to have clickable links while emulating the appearance of a textarea.
|
|
#3
|
|||
|
|||
|
thanks alot . will look into that
apu |
|
#4
|
|||
|
|||
|
i am using a list area to display the contents.the directory names there are hyperlinks .My problem now is clicking the links just refreshes the page instead of displaying the clicked directory contents.
HAPPY NEW YEAR Thanks in advance. Apu. |
|
#5
|
||||
|
||||
|
Can you point me to the page? I'm having trouble envisioning exactly what's going on.
|
|
#6
|
|||
|
|||
|
hi,
this is the link to my page i think i have really messed up the whole thing ![]() any help would be greatly appreciated thanks in advance. Apu http://www.symonds.net/~dosai/aparna the file is test1.php |
|
#7
|
||||
|
||||
|
It's kind of hard to decipher exactly what your code's doing, but my guess is that when you have a directory selected, validation() is returning true and the page is submitting itself because you gave it no action.
Maybe try moving the last line of validation() up above the return true statement. The script is never getting to that line because it returns, and perhaps moving it up will set a variable that your PHP uses to list the selected directory's contents. |
|
#8
|
|||
|
|||
|
hi,
i thought that was more to do with the onchange property of teh select box or is it not? ![]() |
|
#9
|
|||
|
|||
|
please help out coz am in a real mess and running short of time.
|
|
#10
|
||||
|
||||
|
Did you try what I had suggested?
|
|
#11
|
|||
|
|||
|
yes i did and it did not work
i am not able to figuer out why my list area is acting dynamic and resizing on every click |
|
#12
|
||||
|
||||
|
Are you referring to the width of the SELECT box? If so, it changes width depending on the content inside it. It is possible to overide the width by using CSS.
e.g. Code:
<select style="width:200px;"> <option>foobar</option> </select> |
|
#13
|
||||
|
||||
|
Looks like it's working alright to me. As far as the width, stumpy's dead on.
|
|
#14
|
||||
|
||||
|
Oh yeah - the directory browsing stuff seems to work fine for me too.
I get a page full of PHP errors when I initially load the page though. |
|
#15
|
|||
|
|||
|
hi,
thanks alot stumpy and dhouston , that was very easy and effective solution. just one small problem my path keeps getting appended ie when starting from a base directory eg var, it appends to prev path and adds a extra / Thanks again Apu |
|
#16
|
||||
|
||||
|
Post a short code snippet and maybe we can take a look and help you figure it out.
|
|
#17
|
|||
|
|||
|
hi heres what i am using: PHP Code:
|