Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-16220

iOS: Ti.UI.WebView doesn't trigger 'load' event when having 'touchEnabled' set to false

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Cannot Reproduce
    • Affects Version/s: Release 3.2.0
    • Fix Version/s: None
    • Component/s: iOS
    • Environment:

      Mac OS X 10.9.1
      Titanium Studio, build: 3.2.0.201312191547
      Titanium SDK: 3.2.0.GA

      Description

      When you add a Titanium.UI.WebView with the property touchEnabled set to false, the load event will not get triggered anymore.

      As the documentation for WebViews * describes for using the evalJS() method, I'm calling the evalJS method from the load event.

      * http://docs.appcelerator.com/titanium/latest/#!/guide/Communication_Between_WebViews_and_Titanium

      Tested on iOS only.

      Sample: someWebView1 load event does not get triggered while someWebView2 load event does get triggered.

      var someWebView1 = Ti.UI.createWebView({
          top: 0,
          width: 500,
          height: 500,
          backgroundColor: '#fafafa',
          url: 'http://www.google.com',
          touchEnabled: false
      });
      someWebView1.addEventListener('load', function(e) {
          alert('loaded someWebView1');
      });
       
      var someWebView2 = Ti.UI.createWebView({
          top: 0,
          width: 500,
          height: 500,
          backgroundColor: '#fafafa',
          url: 'http://www.google.com'
      });
      someWebView2.addEventListener('load', function(e) {
          alert('someWebView2');
      });
      

        Attachments

          Activity

            People

            • Assignee:
              hknoechel Hans Knöchel
              Reporter:
              martin@code.nl Martin van Dam
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-18217
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration