Hi Iain,

I can see why it's failing. It's not getting the context. I just don't why
it's failing in view mode. I assumed the js client resources would be
available by default?

SCRIPT5007: Unable to get value of the property 'get_current': object is
null or undefined [ln 796]

795 //Get an instance of the Client Content.
796 currentContext = new SP.ClientContext.get_current();




On 27 November 2012 15:33, Iain Carlin <cut...@gmail.com> wrote:

> Hi Paul,
>
> Don't have a direct answer for you, but if you use IE Developer Tools
> (F12) you will see what scripts aren't being loaded.
>
> (I had a similar experience the other day and it was due to an included js
> file being checked out - F12 helped me find which one).
>
> Cheers, Iain
>
> On 27 November 2012 13:57, Web Admin <web.ad...@syd.catholic.edu.au>wrote:
>
>> Hi all,
>>
>> I have added some JavaScript to a CEWP on a list view. It runs
>> beautifully when the page is in edit mode but does nothing when not.
>>
>> I'm assuming that a required js file is not being loaded in view mode but
>> am stumped.
>>
>> I have a script reference to my jQuery lib. This is correct and proven.
>>
>> Am I missing something? A reference to sp.js or something else blindingly
>> obvious?
>>
>>  Regards,
>>
>> Paul
>>
>> _______________________________________________
>> ozmoss mailing list
>> ozmoss@ozmoss.com
>> http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss
>>
>>
>
> _______________________________________________
> ozmoss mailing list
> ozmoss@ozmoss.com
> http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss
>
>


-- 
Regards,

Paul Noone

SharePoint Farm Admin/Developer
Infrastructure Team
CEO Sydney

p: (02) 9568 8461
f: (02) 9568 8483
e: paul.no...@syd.catholic.edu.au
w: http://www.ceosyd.catholic.edu.au/
_______________________________________________
ozmoss mailing list
ozmoss@ozmoss.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss

Reply via email to