ICEmobile
  1. ICEmobile
  2. MOBI-860

Separate general JavaScript API and provide hosted file

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.3 Final
    • Fix Version/s: BridgeIt 1.0
    • Component/s: Core
    • Labels:
      None
    • Environment:
      ICEmobile, HTML 5

      Description

      The general-purpose functions for using ICEmobile native functions with HTML 5 should be separated out as icemobile-version.js and hosted on icesoft.org. An identical file bridgeit-version.js can also be created. However, the name of this file may serve to inform BridgeIt developers of additional ICEmobile capabilities.

        Activity

        Hide
        Ted Goddard added a comment -

        The icemobile.js in the spring example could be renamed icemobile-tags-version.js

        Candidate functions for icemobile.js are:

        ice.mobi.camera, etc., and supporting functions.

        Show
        Ted Goddard added a comment - The icemobile.js in the spring example could be renamed icemobile-tags-version.js Candidate functions for icemobile.js are: ice.mobi.camera, etc., and supporting functions.
        Hide
        Philip Breau added a comment -
        Show
        Philip Breau added a comment - Suggest we use the same accessible location as the weekly builds: http://res.icesoft.org/snapshots/icemobile/bridgeit-0.1.0-min.js http://res.icesoft.org/snapshots/icemobile/bridgeit-0.1.0.js
        Hide
        Ted Goddard added a comment -

        bridgeit.js (strictly speaking) does not require support functions for ICEmobile JSF or JSP tags.

        For instance, the "invoke" implementation:

            im.invoke = function(element)  {
                var command = element.getAttribute("data-command");
                if (ice[command])  {
                    var params = element.getAttribute("data-params");
                    var id = element.getAttribute("data-id");
                    if ((null == id) || ("" == id)) {
                        id = element.getAttribute("id");
                    }
                    ice[command](id,params);
                } else {
                    ice.mobi.sx(element);
                }
            };
        

        attempts ice[command](id,params) so this can be modified in icemobile JavaScript to attempt ice.bridgeit[command]. The "invoke" style of representing parameters as
        attributes on the element is intended for tag developers rather than HTML page developers, so does not need to be included in bridgeit.js.

        Show
        Ted Goddard added a comment - bridgeit.js (strictly speaking) does not require support functions for ICEmobile JSF or JSP tags. For instance, the "invoke" implementation: im.invoke = function(element) { var command = element.getAttribute( "data-command" ); if (ice[command]) { var params = element.getAttribute( "data-params" ); var id = element.getAttribute( "data-id" ); if (( null == id) || ("" == id)) { id = element.getAttribute( "id" ); } ice[command](id,params); } else { ice.mobi.sx(element); } }; attempts ice [command] (id,params) so this can be modified in icemobile JavaScript to attempt ice.bridgeit [command] . The "invoke" style of representing parameters as attributes on the element is intended for tag developers rather than HTML page developers, so does not need to be included in bridgeit.js.
        Hide
        Ted Goddard added a comment -

        Form serialization will be retained in ice.bridgeit – serializing a form and submitting the combined data through BridgeIt/ICEmobile-SX is a legitimate mechanism.

        Show
        Ted Goddard added a comment - Form serialization will be retained in ice.bridgeit – serializing a form and submitting the combined data through BridgeIt/ICEmobile-SX is a legitimate mechanism.
        Hide
        Ted Goddard added a comment -

        bridgeit.js has been separated.

        Show
        Ted Goddard added a comment - bridgeit.js has been separated.

          People

          • Assignee:
            Ted Goddard
            Reporter:
            Ted Goddard
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: