TypeError:WLJSX.Ajax.WLRequest.setConnected不是函数 [英] TypeError: WLJSX.Ajax.WLRequest.setConnected is not a function
问题描述
我已经将我的Worklight从5.0.5升级到5.0.6.当我在5.0.5上工作时,它可以正常工作,但是在更新版本的Worklight 5.0.6中使用相同的代码,则会出现此错误>
TypeError:WLJSX.Ajax.WLRequest.setConnected不是函数WLJSX.Ajax.WLRequest.setConnected(false);
当我升级到Worklight 5.0.6后首次构建时,它会在控制台中显示
FWLST1061W:RMLight.java已更改,onCreate()重命名为onWLCreate(),请检查您的代码是否有更改.有关详细信息,请参阅IBM Worklight信息中心.
请帮忙
我也收到此错误
ReferenceError:wlInitOptions未定义[解决此错误]
if(!isIOSEnv()&& wlInitOptions.connectOnStartup){
错误消息指出:wlInitOptions未定义.事实是否如此?请参阅此Stackoverflow问题.
查看应用程序的js文件夹(yourProject \ apps \ yourApp \ common \ js).确保它包含一个initOptions.js
确保在HTML中也引用了此文件.
i have upgraded my worklight with 5.0.5 to 5.0.6 .when i have worked on 5.0.5 it worked fine but the same code when i am using in updated version worklight 5.0.6 it gives me this error
TypeError: WLJSX.Ajax.WLRequest.setConnected is not a function WLJSX.Ajax.WLRequest.setConnected(false);
when i have build for the first time after upgrading to worklight 5.0.6 it gave this in the console
FWLST1061W: RMLight.java has changed, onCreate() was renamed to onWLCreate(), please check your code for changes. Refer to the IBM Worklight Information Center for details.
can some one help please
am also getting this error
ReferenceError: wlInitOptions is not defined [Break On This Error]
if (!isIOSEnv() && wlInitOptions.connectOnStartup) {
As the error message states: wlInitOptions is not defined. Could this indee be case? Please see this Stackoverflow question.
Look inside your application's js folder (yourProject\apps\yourApp\common\js). Make sure it contains an initOptions.js
Make sure this file is also referenced in the HTML.
这篇关于TypeError:WLJSX.Ajax.WLRequest.setConnected不是函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!