I have a very strange problem where there is some custom jquery interface buttons to show and hide certain fields in sharepoint. The script builds fine(script that has worked on previous sites) but does not execute for most users (appears users that are site collection administrators).
Even the simplest part of code: $('.ms-formlabel').closest('tr').hide();
Throws: "Object expected"
Running: typeof jQuery == 'undefined'; Returns: true
Looking into this shows:
- Jquery is declared once
- Jquery is accessable to download by navigating through the browser
- Changing the location from the layouts folder to http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js made no difference
If anyone has any ideas what could be causing this, it would be much appreciated as this is driving me crazy.
This is a sharepoint 2010 enterprise deployment if this is relevant