jQuery calls in external js file with MasterPages

jQuery calls in external js file with MasterPages


I am using ASP.NET 3.5 with MasterPages. My master page has the script
references to jquery and jquery UI. My web page that uses the master
page has a script reference for a custom javascript file for that
page. This javascript file has jquery calls in it (i.e. document.ready
--> set up input boxes as calendars).
When I run the website in debug from Visual Studio, the input boxes
are not set as calendars. However, if I copy the script from the
external file and include it in a script block in the web page, the
input box becomes a calendar.
I also have an element in the child page (not sure if that makes a
difference). I have referenced the external javascript file in the
ScriptManager and outside of the ScriptManager and neither work.
Why does jQuery not work in an external javascript file when the
jQuery script reference resides in the master page?
Any help would be appreciated.
Thanks
















    • Topic Participants

    • jeff