标签: movilizer

Movilizer - 使用具有离子的MovilizerJS

我正在尝试使用MovilizerJS和Ionic Framework来创建HTML5屏幕.我尝试从Ionic生成的App.js文件中引用te MovilizerJS.我在plugins文件夹中添加了MovilizerJS文件,并添加了包含的Cordova.js文件.

var oHead = document.getElementsByTagName('HEAD').item(0);
var oScript = document.createElement("script");
oScript.type = "text/javascript";
oScript.src = "plugins/Movilizer.js";
oHead.appendChild(oScript);
Run Code Online (Sandbox Code Playgroud)

看来,当我在浏览器中加载HTML5页面(或在movelet中的html5视图)时,MovilizerJS不会被加载.浏览器上显示以下错误:

模块'movilizer'不可用!

也许我需要将此作为模块添加到Angular Framework中,但是当我尝试将其添加到模块时,它仍然会给我带来错误.我的HTML文件包含movilizer的脚本标记:

<script src="plugins/Movilizer.js"></script>
Run Code Online (Sandbox Code Playgroud)

我的App.js代码目前看起来像这样:

angular.module('starter', ['ionic'])
.run(function($ionicPlatform) { 
      $ionicPlatform.ready(function() {
        // Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
        // for form inputs)
        if(window.cordova && window.cordova.plugins.Keyboard) {
          cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
        }
        if(window.StatusBar) {
          StatusBar.styleDefault();
        }

      });
    }).factory('MovilizerExtender', function ($rootScope) {
      return {
        startUpMovilizer: function(){
          movilizer.readGlobalVariable("testTable",this.successCallback,this.errorCallback);
        },
        successCallback: function(result){
          $rootScope.routestops = [
            { ontvNaam: …
Run Code Online (Sandbox Code Playgroud)

html5 angularjs cordova ionic-framework movilizer

8
推荐指数
1
解决办法
371
查看次数

Movilizer - 复杂UI中的菜单项导航无法正常工作?

我正在尝试创建一个复杂的UI,它包含顶部的菜单项屏幕(type ="6")和下面的文本输入屏幕(type ="5").我希望菜单项屏幕转到除文本项屏幕之外的另一个屏幕,但我必须将文本项屏幕放在nextQuestionKey属性中.

我在菜单项屏幕中尝试了它,如下面的代码所示,但验证器告诉我"不允许分支".

我尝试将限制移动到文本输入屏幕.验证器告诉我"复杂屏幕中不在最后的菜单屏幕必须提供有效的,预定义的attributeType = 72的前向导航答案"

<question key="15" type="6" backNavigationAllowed="true" sortAnswersByClientKey="false">
    <answer key="15_1" nextQuestionKey="16" clientKey="CK#15">
        <text>Scan barcode</text>
    </answer>
    <restriction nextQuestionKey="17" position="0">
        <condition>getAnswerValueByClientKey($answer:"15_1", "CK#15") != ""</condition>
    </restriction>
    <complex linearGroupId="InputAssetNumber" gridGroupId="InputAssetNumber" linearInnerScrollbar="false" gridInnerScrollbar="false" gridHorizontalLayout="false" linearPos="0" gridPosX="0" gridPosY="0" gridWidth="1" gridHeight="1" linearHeight="1" groupTitle="Input Asset number"/>
</question>

<question key="16" type="5" backNavigationAllowed="true" sortAnswersByClientKey="false">
    <answer key="16_1" nextQuestionKey="18" clientKey="CK#16" columnSizeType="ROWS">
        <text>Enter barcode manually</text>
    </answer>
    <answer key="16_2" nextQuestionKey="18" clientKey="CK#16" columnSizeType="ROWS">
        <text>Reason</text>
    </answer>
    <complex linearGroupId="InputAssetNumber" gridGroupId="InputAssetNumber" linearInnerScrollbar="false" gridInnerScrollbar="false" gridHorizontalLayout="false" linearPos="1" gridPosX="0" gridPosY="1" gridWidth="1" gridHeight="1" linearHeight="1"/>
</question>
Run Code Online (Sandbox Code Playgroud)

如果有人能帮我找到解决这个问题的方法,我将不胜感激.

mobile movilizer

5
推荐指数
1
解决办法
162
查看次数

标签 统计

movilizer ×2

angularjs ×1

cordova ×1

html5 ×1

ionic-framework ×1

mobile ×1