Skip to main content
13 events
when toggle format what by license comment
Aug 21, 2015 at 9:26 answer added sschoof timeline score: 6
Feb 25, 2015 at 15:12 answer added Aaronster timeline score: 5
Nov 18, 2014 at 6:04 answer added Pranav Bilurkar timeline score: 0
Jul 31, 2014 at 12:34 vote accept Vipul Kelkar
Jul 31, 2014 at 12:16 answer added John-M timeline score: 1
Jul 31, 2014 at 11:34 comment added Vipul Kelkar Thanks John. That actually helped me drill down the issue. I tried getting the SP.ClientContext.get_current() on one of the OOB page (documents all items page) and it works. I have other scripts on the page that i get the error. Something is wrong with that. I also get the erro "Object doesn't support property or method 'customFromJson'". Thanks again.
Jul 31, 2014 at 10:30 comment added John-M Try removing all other custom scripts from the page, and then calling SP.ClientContext.get_current() in the console; does this happen on just this page, or others, just this site collection, or others?
Jul 31, 2014 at 9:06 comment added Vipul Kelkar Not an app. I have just placed a script editor web part on my page in an Office 365 site collection. If I try to get the "SP" and "SP.ClientContext" objects in the IE developer toolbar console, the objects are returned.. It is just the "get_current()" method that is throwing the error !!
Jul 31, 2014 at 0:55 comment added John-M Are you making the call from an app or a regular site collection on your O365 host?
Jul 30, 2014 at 20:19 comment added Vipul Kelkar I have tried that. Doesn't work !!
Jul 30, 2014 at 12:43 comment added wjervis Have you tried cntxt = new SP.ClientContext(currentUrl);?
Jul 30, 2014 at 11:03 history edited Robert Lindgren CC BY-SA 3.0
Cleaning markup spelling
Jul 30, 2014 at 10:46 history asked Vipul Kelkar CC BY-SA 3.0