tags:

views:

128

answers:

0

I am using JQuery. I have included a latest jquery-1.4.2.min.js file. Everyting was working fine.

The asp net structure is as follows. There is a parent MasterPage and there are few child master pages for the sub categories. Earlier all master pages were at the same level (folder) in the solution. To organize the solution I moved one of the child master page to a sub folder in order to move all the aspx pages for a particluar category to that folder. I changed all the references. There are now build errors. When i Try to access any page from that sub folder. I get the 'object expected' error on the first line of jquery $(document).ready.

Now this error goes away if I use the google jquery api directly from the internet ie http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js.

But I want to know what is the root cause for it. Is it concurrency issue? As i have other pages that have link to jquery.js.

I cannot make sure that the application will be used with an internet connection. What happens if the application is hosted in intranet. then how can we access jquery from google.com