I am trying to use the FolderBrowserWidget widget to list the CS contents in a HTML5 page however I am continuously been thrown 500 - Internal Error. After debugging, I find that the following API -http://innovate/otcs/cs.exe/api/vi/nodes/180462 is failing to get the details. I tried using C# to double check however found that there is an issue with the REST URL as an error ‘The remote server returned an error: (400) Bad Request’ was thrown.
Any suggestion would be helpful.
The code is listed below
<!DOCTYPE html>
<style>
/* Recommended page preparation by the jQuery UI developers. */
body {
font-size: 11px;
}
</style>
csui.onReady( function()
{
try
{
var widget = new csui.widget.FolderBrowserWidget
(
{
placeholder: "#folderBrowser",
connection: {
url: "
http://innovate/otcs/livelink.exe/api/v1",
supportPath: "/otcs/support",
},
start: {id: 180462},
addItemButton: true
}
);
widget.show();
}
catch(err)
{
document.getElementById("demo").innerHTML = err.message;
}
} );
/*function initialize()
{
var mapProp =
{
center:new google.maps.LatLng(51.508742,-0.120850),
zoom:5,
mapTypeId:google.maps.MapTypeId.ROADMAP
};
var map=new google.maps.Map(document.getElementById("googleMap"),mapProp);
}*/
//google.maps.event.addDomListener(window, 'load', initialize);
<div id="folderBrowser"></div>
<p id="demo"></p>
<div id="googleMap" style="width:500px;height:380px;"></div>
enter code here