Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

> jscript question, display dialog box for selecting file

views
     
TSnazo
post Feb 23 2006, 10:01 AM, updated 14y ago

Getting Started
**
Junior Member
107 posts

Joined: Nov 2005
From: Kât Lởng Po


I`m sure u guys hav seen some web pages wher they let u upload files from the local machine to the server. They usually put a button that when u click on it, it brings up a dialog box for u to select a file to upload. Like when u want to upload yor avatar here on LowYat.

My question is, how do u bring up that open file dialog in jscript?
TheUrbNorm
post Feb 23 2006, 11:24 AM

On my way
****
Senior Member
554 posts

Joined: Apr 2005



u just need <input="file"/> no???
why need javascript???

but also ensure that the form element is a multipart/form-data

not sure whether this answer ur question or not

This post has been edited by TheUrbNorm: Feb 23 2006, 11:26 AM
TSnazo
post Feb 23 2006, 04:12 PM

Getting Started
**
Junior Member
107 posts

Joined: Nov 2005
From: Kât Lởng Po


thank u for the help. I thot i need some script to do it. silly me

 

Switch to:
| Lo-Fi Version
0.0340sec    1.07    5 queries    GZIP Disabled
Time is now: 20th November 2019 - 07:44 AM