To: ozMOSS
Subject: RE: JS Client OM - script only runs in edit mode
I think if you put your JS in a form web part it will be OK in there for future
reference.
Callum
From: ozmoss-boun...@ozmoss.commailto:ozmoss-boun...@ozmoss.com
[mailto:ozmoss-boun...@ozmoss.com] On Behalf Of Nigel Hertz
Sent
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
...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] *On
Behalf Of *Web Admin
*Sent:* Wednesday, 28 November 2012 10:00 AM
*To:* ozMOSS
*Subject:* Re: JS Client OM - script only runs in edit mode
** **
Hi Iain,
** **
I can see why it's failing. It's not getting the context. I just don't why
://mvp.support.microsoft.com/profile/Ishai
** **
*From:* ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] *On
Behalf Of *Web Admin
*Sent:* Wednesday, 28 November 2012 10:30 AM
*To:* ozMOSS
*Subject:* Re: JS Client OM - script only runs in edit mode
** **
Hi Ishai,
** **
I get
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
I've actually just been doing something like this. As soon as you check in the
page, all javascript etc in a CEWP is removed. The way I worked around it is to
put everything in a text file, save the text file to a document library, and
reference that from the CEWP.
My text file is attached (if
I think if you put your JS in a form web part it will be OK in there for future
reference.
Callum
From: ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] On Behalf Of
Nigel Hertz
Sent: Tuesday, 27 November 2012 4:42 PM
To: ozMOSS
Subject: RE: JS Client OM - script only runs in edit