jquery .js file = windows authentication dialogue?

D

Darrel

I'd like to use the jquery datepicker.

I have a asp.net 1.1 application set up with forms authentication protecting
an admin directory:

<location path="admin">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>

All works just fine.

I'm now trying to add the jquery.js file:

<script src="jquery-ui.min.js"></script>

as soon as I do that, when I try and run my application, I get the windows
authentication pop-up dialog box.

Why?

I thought maybe it was because I was accessing the .js file in my admin
folder (though that's odd, as I'm using TinyMCE, which also has .js files in
my admin folder) so I tried moving it outside my admin folder:

<script src="../js/jquery-ui.min.js"></script>

Still, same problem. Anyone know why this is happening? I thought ASP.net
1.1 ignored authentication on any non-.aspx files.

-Darrel
 
?

=?ISO-8859-1?Q?G=F6ran_Andersson?=

Darrel said:
I'd like to use the jquery datepicker.

I have a asp.net 1.1 application set up with forms authentication protecting
an admin directory:

<location path="admin">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>

All works just fine.

I'm now trying to add the jquery.js file:

<script src="jquery-ui.min.js"></script>

I don't think that it's the problem here, but you forgot the type:

as soon as I do that, when I try and run my application, I get the windows
authentication pop-up dialog box.

Why?

Not sure... Have you determined if it's the including of the script
itself that causes this, or something in the script?
I thought maybe it was because I was accessing the .js file in my admin
folder (though that's odd, as I'm using TinyMCE, which also has .js files in
my admin folder) so I tried moving it outside my admin folder:

<script src="../js/jquery-ui.min.js"></script>

Still, same problem. Anyone know why this is happening? I thought ASP.net
1.1 ignored authentication on any non-.aspx files.

ASP.NET 2.0 protects all files. Have you set up the application to
actually use framework 1.1?
 
G

George Ter-Saakov

You must change permissions to the file.
IUR_.... and IWAM_..... accounts must have read permissions to that file

George
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,188
Latest member
Crypto TaxSoftware

Latest Threads

Top