By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,971 Members | 1,451 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,971 IT Pros & Developers. It's quick & easy.

jquery .js file = windows authentication dialogue?

P: n/a
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
Nov 12 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Darrel wrote:
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:

<script src="jquery-ui.min.js" type="text/javascript"></script>
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öran Andersson
_____
http://www.guffa.com
Nov 12 '07 #2

P: n/a
You must change permissions to the file.
IUR_.... and IWAM_..... accounts must have read permissions to that file

George
"Darrel" <no*****@nospam.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
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

Nov 12 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.