469,927 Members | 1,910 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,927 developers. It's quick & easy.

help with file post method

I have a script that is calling a file trough a function.
What i wish to do is the person selected a file to open inside that
function dinamically is it that possible without using a window.prompt to
type the file?
Oct 15 '07 #1
2 1443
Offm wrote on 15 okt 2007 in comp.lang.javascript:
I have a script that is calling a file trough a function.
What is "calling a file"? Do you want to upload a file from the clients pc
to the server?
What i wish to do is the person selected a file to open inside that
function dinamically is it that possible without using a window.prompt
to type the file?
What do you want to do with a selected person? Files do not open 'inside' a
function, but could perhaps be opened by code inside a function, do you
mean that?

Perhaps this is your question?

Do you want to write clientside javascript code that lets a user
select a file on the user's [clientside] pc hard drive without that user
typing in the name of that file or selecting it from the popup list
provided by the browser?

No, that is not possible under normal browser security,
as it would open my hard disk to any criminal hacker that uses such code.

It is irrelevant if such code resides inside a function.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Oct 15 '07 #2

"Offm" <of**@hotmail.comescreveu na mensagem
news:X7******************************@novis.pt...
>I have a script that is calling a file trough a function.
What i wish to do is the person selected a file to open inside that
function dinamically is it that possible without using a window.prompt to
type the file?
Thank you , for your prompt aswer , i think the problem is solved , i did an
alert for testing the value atribute of the input , thank you very much ,
anyway !
Oct 15 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

22 posts views Thread by KitKat | last post: by
1 post views Thread by =?ISO-8859-1?Q?Lasse_V=E5gs=E6ther_Karlsen?= | last post: by
16 posts views Thread by gnawz | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.