473,407 Members | 2,676 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

problem in showing the path after browsing the file in mozilla

I have a javascript and html code .In which I am browsing the file and simply I am showing the path of file after click on button

code is running proper in IE but not in mozilla

-----------------------------
Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <head>
  3. <script>
  4. function setName()
  5. {
  6. var path = document.forms[0].elements["sig"].value;    
  7. alert("path        " + path);
  8. }
  9. </script>
  10. </head>
  11. <body>
  12. <form onsubmit="return false;" target="_top" method="POST" name="signForm" enctype="multipart/form-data">
  13. <table border="0" width="100%" cellpadding="0" cellspacing="0">
  14. <tr>
  15. <td><Input type="file" name="sig" style="font-family: Arial;" size="25px" ></td>
  16. </tr>
  17. <tr>
  18. <td width="15%"><Input type="submit" value="  Sign  "  onclick="setName();  return false;"></td>
  19. </tr>
  20. </table>
  21. </form>
  22. </body>
  23. <html>
  24.  
--------------------------

Please help me in this, I will be thankful
Jan 31 '12 #1
1 1227
acoder
16,027 Expert Mod 8TB
This is a browser setting. You can probably set it on an individual browser, but not through code. The exception may be in a special privileged environment.
Feb 1 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Alvaro Puente | last post by:
Hi all! I've got a FILE* pointing to an already opened file. I want to create a new file in the same directory where that file is. Is there any way of obtaining file path from FILE*? Many...
2
by: Tor Inge Rislaa | last post by:
Showing an HTML file in part of a Webform Hi I have a Webform with some buttons on the left side of the form. What I want when clicking one of the buttons is to show an HTML document in a part...
1
by: Saracen | last post by:
I have a major problem with trying to access a foxpro database from a web app. I have created a web app which is deployed on a server. The foxpro database (dbf) is on a different server. The...
3
by: B Garrett | last post by:
Hi, I have a .ASPX page using C# and I need to read in a text file from a selected path. so in need the file dialog box to allow the user to choose the path and file that they want to read in....
1
by: MikeD | last post by:
Hi, I'm accessing a FoxPro database via ole db using Reporting Services Data Extensions and ths works fine on my local report server. However, when I deploy the report to the live report server...
2
by: John Dann | last post by:
I guess there must be some convention or Windows specification for whether the backslash immediately preceding the file name in a full path string to a file is formally part of the path string or...
5
by: Smarty | last post by:
Dear Friends, I did a file type validation in Javascript. Just i want to check whether a selected file is BMP or JPG. I wrote the following function for it. function checkType(){ Text =...
10
by: Ben | last post by:
Hi, i have a weird problem and i don't know who is responsible for this: IIS, excel or asp.net. My problem: we use an asp.net 2.0 application under IIS 6.0 (server 2003 sp2) which must write...
4
sanjay123456
by: sanjay123456 | last post by:
Dear friends , I am using window os . i face a problem is that $file="D:\Domains\\naturetrailsindia.info\wwwroot\html\\"; $file=$path."\html\\"; $d = dir($file);
4
by: Mr. X. | last post by:
I have a problem showing hebrew on my site. Please, help. Here is the code : web.config ======= <configuration> <system.web> <customErrors mode="Off"/>
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.