For Programmers: Free Programming Magazines  


Home > Archive > ASP > July 2004 > Login popup when accessing file on Web server









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Login popup when accessing file on Web server
Steve Wonderful

2004-07-27, 3:55 pm

I use the following code trying to let user in the client side open a Word template which is in my Web server. It will prompt the user to login the Web before loading the template. Is there a way to let him access the template without login. There is n
o popup if I run it in localhost on my computer.

<script language='javascript'>
.....
wo = new ActiveXObject( "Word.Application" );
wo.Documents.Open( "http://myserver/mysite/myfolder/Doc1.dot" );
.....

Roland Hall

2004-07-29, 3:55 am

"Steve Wonderful" <Steve Wonderful@discussions.microsoft.com> wrote in
message news:E99DAF4A-F281-4878-BF59-441D263ADF47@microsoft.com...
: I use the following code trying to let user in the client side open a Word
template which is in my Web server. It will prompt the user to login the
Web before loading the template. Is there a way to let him access the
template without login. There is no popup if I run it in localhost on my
computer.
:
: <script language='javascript'>
: ....
: wo = new ActiveXObject( "Word.Application" );
: wo.Documents.Open( "http://myserver/mysite/myfolder/Doc1.dot" );
: ....

Steve...

This is an authentication issue. The "user" either has a logon ID or he
logs on anonymously. Your security settings on that path will determine if
he gets an authentication dialog box or not. If the security settings are
set for Basic (not recommended) or Integrated and he is seen as an anonymous
user, the dialog will be presented. If he has already authenticated to the
site, then any other area where he has access will allow him in without the
dialog being presented.

If all users are seen as anonymous then remove all settings to that path
except anonymous to eliminate the need for authentication and the dialog
being presented.

HTH...

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com