473,467 Members | 1,488 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Opening File Dailog Box using javascript

Hi everyone,

I am beginner at javascript.One of the web
applications that i am currently developing,requires to upload file
from the client side to the server.The condition being that the file
dailog box(normal windows file dailog box) on the client side should
open in a specific directory only and should filter out files with a
specific extension.Moreover the relative path of the selected file
should be converted into UNC path and passed on to the server.

I am not very sure whether javascript can possibly get a hook to the
file dailog box of the underlying OS(Windows in my case).I tried
finding some ideas over the net,but none looked convincing.

Is this possible in javascript?,if not, is there any way that i can
acheive this.

Any suggestion would be very valuable.

May 21 '06 #1
2 1549
Viks said the following on 5/21/2006 6:37 AM:
Hi everyone,

I am beginner at javascript.One of the web
applications that i am currently developing,requires to upload file
from the client side to the server.
Simple so far.
The condition being that the file dailog box(normal windows file
dailog box) on the client side should open in a specific directory
only and should filter out files with a specific extension.
That you can't do.
Moreover the relative path of the selected file should be converted
into UNC path and passed on to the server.
The path to the file will always be an absolute full path in Windows so
no conversion needed. You just read the .value of the input:

<input type="file" onchange="alert(this.value)">

But, why does it matter where the file is located on the PC?
I am not very sure whether javascript can possibly get a hook to the
file dailog box of the underlying OS(Windows in my case).I tried
finding some ideas over the net,but none looked convincing.
You can't. It is a security restriction.
Is this possible in javascript?
No.
if not, is there any way that i can acheive this.


I hope not, for the security issues involved.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
May 21 '06 #2
Thanx for the reply.

May 22 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Clinton Goff | last post by:
I am attempting to write a javascript app that will open a second browser window, load a url, such as www.google.com (foreign url) and perform a <File-Save As> function on that window. I am able...
0
by: Stephen | last post by:
could someone give me some advise on a problem I have. At present i have a web application which displays pdf files in a web browser using javascript and the window.open method and pointing to a...
14
by: D. Alvarado | last post by:
Hello, I am trying to open a window containing an image and I would like the image to be flush against the window -- i.e. have no padding or border. Can I make this happen with a single call to a...
1
by: N. Graves | last post by:
Hi, I want to have a Search Dialog box that has several text box and fields to build a search and display the results in a form. I can do everything that I need to if I us a report but I would...
1
by: jharikrishna | last post by:
Hi Frnds I am working on c#. I want the information about to click the button in textbox How to Open the file browser dailog.
0
by: batchu rajesh | last post by:
in a vb.net programming i need to keep a color dailog box in a pannel can any one help me how to do
11
by: emailus | last post by:
I am webmaster for the domain <www.alpha1.org.au>. Not being an expert in html, I take advantage of my domain Registrant's web building tool, 'Instant Website'. This tool is provided as part of...
2
by: ChillUmesh | last post by:
hi, i've to filter out files without any extension using common dailog control can any one help me out. thnx
3
by: premMS143 | last post by:
Hi, I' developing a VB application. When user clicks on 'Tools' option from the Main Form, a dailog box will appear, which is developed using another VB form itself. But while the dailog box is...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.