RE: JS Client OM - script only runs in edit mode

2012-11-27 Thread Ishai Sagi
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

Re: JS Client OM - script only runs in edit mode

2012-11-27 Thread Web Admin
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

Re: JS Client OM - script only runs in edit mode

2012-11-27 Thread Web Admin
...@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

Re: JS Client OM - script only runs in edit mode

2012-11-27 Thread Web Admin
://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

Re: JS Client OM - script only runs in edit mode

2012-11-26 Thread Iain Carlin
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

RE: JS Client OM - script only runs in edit mode

2012-11-26 Thread Nigel Hertz
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

RE: JS Client OM - script only runs in edit mode

2012-11-26 Thread Callum Bundy
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