2014-05-16

I just started creating Office 365 SharePoint Online apps using Visual Studio 2013 and I'm wanting to add a term to a term set in the default term store. What I've done is added a JavaScript function in the App.js file to kick off when the document is ready. I followed an example online and used basically the same code, changing out names and such. I can deploy the app to my site but nothing is happening. The code compiles fine and no run time errors. The term is not being added to the term set. I'm brand new to CSOM so I'm wondering if I'm forgetting a load or query call. Here is the code I'm using:

});

}

I'm wondering about the line of code setting the scriptbase variable if that is the problem, but I'm not sure if it is.

Thank you in advance,
Shaun

Show more