p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Javascript (http://p2p.wrox.com/forumdisplay.php?f=85)
-   -   input type file design in firefox (http://p2p.wrox.com/showthread.php?t=61526)

ragu_nit August 27th, 2007 02:02 PM

input type file design in firefox
 
can you please tell me why this code is not working in firefox browser

<html>
<head>
    <title>File Upload Example</title>
    <script language="JavaScript" type="text/javascript">
    function HandleFileButtonClick()
    {
        document.frmUpload.myFile.click();
        document.frmUpload.txtFakeText.value = document.frmUpload.myFile.value;
    }
    </script>
    <style>
    .button { color:#000000;font-family:Verdana;font-size:11px;width:115px;height: 21px;border: 1px #285843 solid; cursor:hand;
text-align: center;vertical-align: center;font-weight:bold; background:#999999;
}
    </style>
</head>
<body>
  <form name="frmUpload">

    <input type="file" name="myFile" style="display: none">

    <input type="text" name="txtFakeText" readonly="true">

    <input type="button" onClick="HandleFileButtonClick();" value="Browse" class="button">
  </form>
</body>
</html>

Imar August 27th, 2007 02:09 PM

Hi there,

Does this code come from my web site? If so (or either way) you may want to read the Update section at the top of the article:

http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=154

This code won't work at all anymore. Follow the link to the other P2P post and see if that works for you.

Imar

---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004

ragu_nit August 27th, 2007 02:17 PM

hi thanks for your reply..
  in your new updated code was running on firefox.. can you tell me is there any possiblities to run this code in firefox browser ?


Imar August 27th, 2007 02:20 PM

I don't have any new code for FireFox.

However, the thread on the Wrox forum features code that, I think, works in FF.

Imar

---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004


All times are GMT -4. The time now is 08:25 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.