This project has moved. For the latest updates, please go here.

sputility.js issues

Oct 23, 2012 at 1:57 AM
Edited Oct 23, 2012 at 2:00 AM

i am trying to implement a simple disable field on a custom list but having trouble with an error from SearchReferrer.js.

 

My code in my CEWP is below and then the error I get from the webpage.  The field is just called xxx.

 

<script src="/personal/720270/Shared%20Documents/prototype.js" type="text/javascript"></script>
<script src="/personal/720270/Shared%20Documents/SPUtility.js" type="text/javascript"></script>
<script type="text/javascript">
function SetReadOnly()
{
SPUtility.GetSPField('xxx').MakeReadOnly();
}
_spBodyOnLoadFunctionNames.push("SetReadOnly");</script>

 

 

 

 

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; (R1 1.6); .NET CLR 2.0.50727; InfoPath.3; .NET4.0C; .NET CLR 3.0.04506.30; .NET4.0E)
Timestamp: Tue, 23 Oct 2012 01:55:13 UTC


Message: 'null' is null or not an object
Line: 70
Char: 5
Code: 0
URI: https: xxxxxx.xxxx.xxx/GIP/SearchReferrer.js 

Coordinator
Oct 24, 2012 at 1:57 AM

Hmm.. your setup in the CEWP looks OK to me.

This seems like an issue in SearchReferrer.js? Do you think this is an SPUtility.js issue?