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

WebView html property always return null on Android

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Android
    • Labels:
    • Environment:

      Windows 10, JDK v1.8.0_131, Ti CLI 5.0.12, Ti SDK 6.1.2.GA, android-23

    • Story Points:
      1

      Description

      When loading a local html file using webview. Html attribute always return null even the content is populated successfully on the screen.

      Sample: (tested with SDK 6.1.1.GA, 6.1.2.GA)
      *
      index.xml*

      <Alloy>
      	<Window id="win" modal="true">
      		<WebView id="webview" url="/test.html" />
      	</Window>
      </Alloy>
      

      *
      index.js*

      $.win.open();
      $.webview.addEventListener('load', function(e) {
       
      	setTimeout(function() {
      		Ti.API.info($.webview.html);
      	}, 100);
       
      });
      

      It's linked to AC-5118 ticket as i didn't describe clearly in previous ticket therefore it was closed.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rdiep Rio Diep
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration