About window.open
From: qq (qq_at_discussions.microsoft.com)
Date: 02/25/05
- Next message: Michael Harris \(MVP\): "Re: About window.open"
- Previous message: Phill: "Line breaks not displaying"
- Next in thread: Michael Harris \(MVP\): "Re: About window.open"
- Reply: Michael Harris \(MVP\): "Re: About window.open"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Michael Harris \(MVP\): "Re: About window.open"
- Previous message: Phill: "Line breaks not displaying"
- Next in thread: Michael Harris \(MVP\): "Re: About window.open"
- Reply: Michael Harris \(MVP\): "Re: About window.open"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|