Here's a script I got to change the file button to an image. It might give
you some ideas at least.

<form name="form">
    <input type="Text" name="textField" action="beautyFileUpload.htm">
    <input type="image" src="whatever.gif" name="button" value="File Upload"
onclick="document.form.fileField.click(); return false;"><br>
    <span id="fileField" style="display:none;"><input type="File"
name="fileField"
onchange="document.form.textField.value=document.form.fileField.value;"></sp
an>
    <input type="Submit">
</form>

Looking over it again it looks like it just uses a button image type and
then uses javascript to invoke the file functionality when clicked. So, I'm
sure you could do the same thing with a regurlar button type and give it the
text you would like instead of using an image. I've tested it with an image
and it works in IE anyway.

Rick

-----Original Message-----
From: Rick Eidson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 8:34 AM
To: CF-Talk
Subject: Input type=File


Is there a way to change the button text on a file field?

Rick
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to