Hello,
I'm running Matrix v3.26.2 and attempting to use the JavaScript API. I thought I'd start simple with a getGeneral() call. But, alas, I'm getting the error "Uncaught SyntaxError: Unexpected token )" on line 75 of the API code:
var jsonObj = eval('(' + json + ')');
The code from my page:
<script type="text/javascript"> setApiKey(<API key>); $(document).ready(function() { getGeneral(<asset number>, function(data) { if (isset(data.error)) { alert(data.error); } else { alert(data.name); } }); }); </script></pre><br />
Error is the same for Chrome 4.1.249.1064, IE7 and FF 3.0.10
Can anyone shed any light on this issue?
Many thanks in advance,
Jamie[php][/php]