I use js to set the maxlength to 0 so they can't type in there.


function MaxFile(evt, field)
{
  charCode = evt.keyCode;
  if (field.length >= 0)
{
return false;
}
}

-----Original Message-----
From: Ciliotta, Mario [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 22, 2004 2:52 PM
To: CF-Talk
Subject: SOT: How to set a file upload input box to readonly.

Hi,

Does anyone know how to make a file upload input box read only.  I am having
a
problem where my users do not click the browser button but instead type the
name of the file they want to upload and I though that if I make the input
box
read only I can stop this.  Also can the color of the <BROWSE> button be
changed, all the buttons on the page are blue and white expect for this one.

I searched for a CSS solution but I did not find any.

Thanks

Mario
  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to