[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kfm-devel
Subject:    Re: Fwd: Re: Bug#6021: FTP features
From:       Peter Kelly <pmk () post ! com>
Date:       2000-07-08 5:22:53
[Download RAW message or body]

David Faure wrote:
> > > > > Asking for user+pass when anonymous login doesn't work is in the TODO list.
> > > >
> > > > Yeah, but sometimes you want to login with a specific user+pass even
> > > > if there is an anonymous login available on that server. Handy for
> > > > sysadmins, eh? :-)
> > > 
> > > Sure - that's why it's possible to put the username in the URL.
> > 
> > But then you'd have to type the URL manually again. That's what i'm
> > trying to avoid somehow. Is there another way to do something like
> > this, maybe?
> 
> I don't see how.

A page-specific but more portable solution to this problem could be to
use javascript.... when the user clicks on the "access FTP site" link
(or whatever it's called). it calls this code: (unchecked)

username = window.prompt('Please enter your username');
document.location = 'ftp://'+username+'@host/some/path';

This should work on most browsers

-- 
Peter Kelly
pmk@post.com

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic