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

        Ted Goddard created issue -
        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.
        Ted Goddard made changes -
        Field Original Value New Value
        Fix Version/s Bridge-it 1.0 [ 11172 ]
        Steve Maryka made changes -
        Assignee Steve Maryka [ steve.maryka ] Ted Goddard [ ted.goddard ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #37362 Mon Aug 12 09:54:57 MDT 2013 philip.breau MOBI-860 BridgeIt JavaScript API
        Files Changed
        Commit graph ADD /icemobile/trunk/icemobile/bridgeit/src/main/javascript/bridgeit.js
        Commit graph ADD /icemobile/trunk/icemobile/bridgeit
        Commit graph ADD /icemobile/trunk/icemobile/bridgeit/src
        Commit graph ADD /icemobile/trunk/icemobile/bridgeit/src/main/javascript
        Commit graph ADD /icemobile/trunk/icemobile/bridgeit/build.xml
        Commit graph ADD /icemobile/trunk/icemobile/bridgeit/build.properties
        Commit graph ADD /icemobile/trunk/icemobile/bridgeit/src/main
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #37363 Mon Aug 12 09:58:36 MDT 2013 philip.breau MOBI-860 BridgeIt JavaScript API
        Files Changed
        Commit graph MODIFY /icemobile/trunk/icemobile/build.xml
        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
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #37374 Mon Aug 12 15:26:05 MDT 2013 philip.breau MOBI-860 BridgeIt JavaScript API
        - remove docs call as it's bombing
        - correct namespace passthru
        Files Changed
        Commit graph MODIFY /icemobile/trunk/icemobile/bridgeit/src/main/javascript/bridgeit.js
        Commit graph MODIFY /icemobile/trunk/icemobile/bridgeit/build.xml
        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.
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #37506 Thu Aug 22 15:25:01 MDT 2013 ted.goddard slimmed down bridgeit.js to remove ice.mobi functions and other functionality not directly required by BridgeIt (MOBI-860)
        Files Changed
        Commit graph MODIFY /icemobile/trunk/icemobile/bridgeit/src/main/javascript/bridgeit.js
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #37711 Thu Aug 29 09:20:38 MDT 2013 philip.breau MOBI-860 BridgeIt JS API
        - change ice.bridgeit to bridgeit
        Files Changed
        Commit graph MODIFY /icemobile/branches/icemobile-bridgeit-transition/samples/html5/bridgeit/src/main/webapp/WEB-INF/includes/scan.html
        Commit graph MODIFY /icemobile/branches/icemobile-bridgeit-transition/samples/html5/bridgeit/src/main/webapp/WEB-INF/includes/contact-list.html
        Commit graph MODIFY /icemobile/branches/icemobile-bridgeit-transition/samples/html5/bridgeit/src/main/webapp/WEB-INF/includes/geospy.html
        Commit graph MODIFY /icemobile/branches/icemobile-bridgeit-transition/bridgeit/src/main/javascript/bridgeit.js
        Commit graph MODIFY /icemobile/branches/icemobile-bridgeit-transition/samples/html5/bridgeit/src/main/webapp/WEB-INF/includes/camcorder.html
        Commit graph MODIFY /icemobile/branches/icemobile-bridgeit-transition/samples/html5/bridgeit/src/main/webapp/WEB-INF/includes/microphone.html
        Commit graph MODIFY /icemobile/branches/icemobile-bridgeit-transition/samples/html5/bridgeit/src/main/webapp/WEB-INF/includes/sms.html
        Commit graph MODIFY /icemobile/branches/icemobile-bridgeit-transition/samples/html5/bridgeit/src/main/webapp/WEB-INF/includes/camera.html
        Commit graph MODIFY /icemobile/branches/icemobile-bridgeit-transition/samples/html5/bridgeit/src/main/webapp/WEB-INF/includes/augmented-reality.html
        Commit graph MODIFY /icemobile/branches/icemobile-bridgeit-transition/samples/html5/bridgeit/src/main/webapp/WEB-INF/includes/mobile.html
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #37745 Fri Aug 30 14:51:28 MDT 2013 ted.goddard taking the ice out of bridgeit (MOBI-860)
        Files Changed
        Commit graph MODIFY /icemobile/branches/icemobile-bridgeit-transition/icemobile/samples/html5/bridgeit/src/main/webapp/WEB-INF/includes/scan.html
        Commit graph MODIFY /icemobile/branches/icemobile-bridgeit-transition/icemobile/samples/html5/bridgeit/src/main/webapp/WEB-INF/includes/geospy.html
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #37761 Wed Sep 04 08:11:14 MDT 2013 philip.breau MOBI-860 BridgeIt JS API
        - avoid undefined refs on ice.push.connection
        Files Changed
        Commit graph MODIFY /icemobile/branches/icemobile-bridgeit-transition/icemobile/bridgeit/src/main/javascript/bridgeit.js
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #37769 Wed Sep 04 11:41:59 MDT 2013 philip.breau MOBI-860 BridgeIt JS API
        - migrate docs to jsduck
        - remove dup bridgeit.register method
        Files Changed
        Commit graph ADD /icemobile/branches/icemobile-bridgeit-transition/icemobile/bridgeit/docs
        Commit graph ADD /icemobile/branches/icemobile-bridgeit-transition/icemobile/bridgeit/docs/categories.json
        Commit graph ADD /icemobile/branches/icemobile-bridgeit-transition/icemobile/bridgeit/docs/builddocs
        Commit graph ADD /icemobile/branches/icemobile-bridgeit-transition/icemobile/bridgeit/docs/images/ice-logo.png
        Commit graph MODIFY /icemobile/branches/icemobile-bridgeit-transition/icemobile/bridgeit/src/main/javascript/bridgeit.js
        Commit graph ADD /icemobile/branches/icemobile-bridgeit-transition/icemobile/bridgeit/docs/jsduck-conf.json
        Commit graph ADD /icemobile/branches/icemobile-bridgeit-transition/icemobile/bridgeit/docs/images
        Commit graph ADD /icemobile/branches/icemobile-bridgeit-transition/icemobile/bridgeit/docs/builddocs.bat
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #37826 Tue Sep 10 05:42:39 MDT 2013 philip.breau MOBI-860 BridgeIt JS API
        - fix url2Object docs
        Files Changed
        Commit graph MODIFY /icemobile/branches/icemobile-bridgeit-transition/icemobile/bridgeit/src/main/javascript/bridgeit.js
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #37850 Wed Sep 11 12:09:34 MDT 2013 philip.breau MOBI-860 BridgeIt JS API
        - reload for all android clients, not just chrome
        Files Changed
        Commit graph MODIFY /icemobile/branches/icemobile-bridgeit-transition/icemobile/bridgeit/src/main/javascript/bridgeit.js
        Hide
        Ted Goddard added a comment -

        bridgeit.js has been separated.

        Show
        Ted Goddard added a comment - bridgeit.js has been separated.
        Ted Goddard made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: