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

BlackBerry: Webview 'load' event callback object does not have the url property

    Details

      Description

      Description of the problem

      The load event callback object for a WebView does not have the url property. This is needed for example for oAuth login, as you need to retrieve the URL after a redirect.

      Steps to reproduce

      1. Create a page with a redirect (e.g. 302)
      2. Use the following code:

      var win = Ti.UI.createWindow({
      	backgroundColor:'white'
      });
       
      var webview = Ti.UI.createWebView({
      	url : 'SOMEPAGE'
      });
       
      webview.addEventListener('load', function(e){
      	alert(JSON.stringify(e));	
      });
      win.add(webview);
       
      win.open();
      

      Result

      The WebView redirects, but when 'load' is called, there is no url property.

        Attachments

          Activity

            People

            • Assignee:
              penrique Pedro Enrique (Inactive)
              Reporter:
              dcassenti Davide Cassenti
              Reviewer:
              Pedro Enrique (Inactive)
            • Watchers:
              0 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration