Discussions
nlapiRequestURL throwing exception "nsStringToXML is not defined"
Hello all,
This is my first attempt at doing some client-side SuiteScripting.
My attempts at using nsapiRequestURL are failing. My own code is not working so I reverted to the example in NS's online documentation and this is also failing (see code below). As soon as the call is made to nlapiRequestURL the exception "nsStringToXML is not defined" is thrown. The callback function is never called.
I am obviously missing something here...
Any help is much appreciated!
Thank you!
Jonathan
P.S. I am using FireFox 2.0.0.13.
-- snip --
function test()
{
var headerArr = new Array();
headerArr['User-Agent-x'] = 'SuiteScript-Call';
try {
nlapiRequestURL( '