TypeError:WLJSX.Ajax.WLRequest.setConnected不是函数 [英] TypeError: WLJSX.Ajax.WLRequest.setConnected is not a function

查看:66
本文介绍了TypeError:WLJSX.Ajax.WLRequest.setConnected不是函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经将我的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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆