About window.open

From: qq (qq_at_discussions.microsoft.com)
Date: 02/25/05


Date: Fri, 25 Feb 2005 13:15:03 -0800

Hi,

Does anyone know about window.open? I want user to login to our FTP
server via an asp page on my website with their username and password. I have
created a form with username and password in a .html. User can input their
username and password from the page. And I created a .asp file as follows to
redirect our FTP Server.

<% Dim username
        username = Request.Form("username") %>
<% Dim password
        password = Request.Form("password") %>
<% Dim URL
        URL = "ftp://" & username & ":" & password & "@ftp.mysite.com"
%>
<html>
<script language="vbscript">

sub winopen(surl)
        sfeature="toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=680,height=500"
        window.open surl,null,sfeature
        'any other things
end sub

</script>

<body onload=winopen("<%= URL %>")>

</body>
</html>

My problem is:

<body onload=winopen(“ftp://ftp.mysite.com”)> works, I can got my ftp
server, a login screen comes up.

But <body onload=winopen(“ftp://checking:abcd$#*@ftp.mysite.com”)> doesn’t
working. (username: checking, password: abcd$#*)

And give me a error message:
Cannot find ‘ftp://checking:abcd$/’. Make sure the path or Internet address
is correct.

When I type ftp://checking:abcd$#*/ftp.mysite.com in address bar from IE
directly, it works and I can get into my checking account in my FTP server.

Has it any limitation to define username and password?

Can anybody help out the issue? Thanks a lot.

qq



Relevant Pages

  • Re: About Response.Redirect
    ... I want user to login to our FTP ... > server via an asp page on my website with their username and password. ...
    (microsoft.public.inetserver.asp.general)
  • Re: Please help a novice..!!
    ... Create the username you want to use. ... Create an actual directory somewhere on your server (usually under ... > I'm trying to set up multiple FTP "sites" on a IIS 4.0 server. ...
    (microsoft.public.inetserver.iis.ftp)
  • FTP Client
    ... Ich möchte per MS-FTP Client eine Datei auf einen anderen Server übertragen. ... Folgender Befehl: ftp -s:Sicher.txt ... Ich bekomme immer die Meldung, daß der Server connected wurde, Username ist ... Next by Date: ...
    (microsoft.public.de.german.win2000.applications)
  • Re: ASP and security
    ... Are you trying to generate this input box on the server (that's not ... (in which case it's not an ASP issue - ASP only runs on the ... > is which username and password do I allow for anonymous access? ... > I should use for anonymous access as I haven't been able to find anything ...
    (microsoft.public.inetserver.iis.security)
  • RE: No Outlook Email via RDP
    ... Ensure you join the Terminal Server to SBS domain. ... input one SBS domain user's username and password ... | the Wyse Win Terminals accessing email via RDP. ...
    (microsoft.public.windows.server.sbs)

Loading