I have this code inside http://www.mysite.local/js/site/functions.js:
$.getScript('/js/common/jquery.jsonrpc.js',
$.jsonRPC.setup({
endPoint: '/api/accounts',
namespace: 'mynamespace'
})
);
It is supposed to run setupthe jsonRPC plugin method at boot. But I get an error message:
$.jsonRPC is undefined
http:
What is the problem and how can I solve it?
source
share