A File/Browse control

Results 1 to 2 of 2

Thread: A File/Browse control

  1. #1
    Join Date
    Dec 1969

    Default A File/Browse control

    I want a customisable file/browse control that uses image buttons etc.<BR><BR>I have managed to find a work around that pretty much does what I want but unfortunately doesn&#039;t work under netscape, and nor will it!!<BR><BR>Do you know of a control that replicates the file functionality as I know full well that the standard file control isn&#039;t styleable in any useful way?

  2. #2
    Join Date
    Dec 1969

    Default RE: A File/Browse control

    What I have done on occasion is make the file control hidden, and activate it with javascript, something like this:<BR><BR>&#060;input name="myFile" type="file" style="display:none;"&#062;<BR>&#060;input name="myText" type="text"&#062;&#060;input type="button" value="Browse..." onclick="browse()"&#062;<BR>&#060;script&#062;<BR> function browse() {<BR> document.forms[0].myFile.click();<BR> document.forms[0].myText.value = document.forms[0].myFile.value;<BR>}<BR>&#060;/script&#062;<BR><BR>The advantage of this is that you can use a stylesheet for the textbox and button.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts