Skip to main content
2 events
when toggle format what by license comment
Jul 24, 2015 at 13:13 comment added Sergey Thanks but already tested this one. Still the same error (Uncaught TypeError: website.get_url is not a function). The following code works: var ctx = new SP.ClientContext(); var site = ctx.get_site(); ctx.load(site); ctx.executeQueryAsync(function(s, a){alert(site.get_url())}); So looks like sp.js is loaded as context can be found.
Jul 24, 2015 at 12:51 history answered Elisiane Geisler CC BY-SA 3.0