I want to get list of files from ftp server and show to user to select some file and then download it.
I don't want to use server side code because the ftp server is not access with server.(it is in local of client side)
I search about it and I found window.open
or iframe
that only show ftp files in another window. but i want to manage the selection files with JavaScript.
also I find this but it work only in IE and i want to work with Firefox and chrome.
so how can i access ftp with JavaScript code?
Edit:
Firefox says XMLHttpRequest work with ftp in this link. but this don't work and get error access to restricted URI denied
.
i search about this and find to add netscape.security.Privilege.enablePrivilege( "UniversalXPConnect" )
but netscape.security.Privilege
removed from Firefox after version 15.
so how can i send XMLHttpRequest to ftp server from webpage with javaScript?