javascript - Intel XDK - Error when trying to consume Web Service from Explore Services panel -


i running ubuntu 15.04 , when try call web service intel xdk -> explore services panel response like:

undefined not function typeerror: undefined not function @ intel.xdk.services.iodocs_.exports.bindcommon (http://127.0.0.1:58889/http-services/api-explorer/iodocs/api-request-common.js:60:14) @ http://127.0.0.1:58889/http-services/api-explorer/iodocs/tryit?functionname=tryit1433289861198&apiname=db_core&isdebug=true&code=intel.xdk.services.tryit1433289861198+%3d+intel.xdk.services.iodocs_.bindcommon.bind%28null%2c+%22intel.xdk.services.tryit1433289 

i have been trying figure out happening have no clue!

this error can caused fact did not specify function build url of call you're making through intel xdk.

considering default structure created intel xdk when try use web service, should have below in js file.

(function (credentials, helpers) {    var exports = {};      exports.yourmethodname = function(params) {      var url = 'yoururlwithoutparameters'	      if (params) url = url + '?' + $.param(params);      return $.ajax({url: url, type: 'get'});    };  	    return exports;  })


Comments