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

Android webview does not recognize Ti variable if url contains querystring data

    Details

      Description

      {html}<div><p>If you create a webview, and try to pass data to it on the
      querystring, javascript inside the webview cannot see the Ti or
      Titanium variable(s).</p>
      <p>For example:</p>
      <p>var webview = Titanium.UI.createWebView({</p>
      <p>// url:'ui/tree/demo2.htm?data=12345', // this does NOT work on
      Android, but is fine on iOS url:'ui/tree/demo2.htm', // this works
      on Android AND on iOS<br>
      top:0,<br>
      height:400<br>
      });</p>
      <p>When the querystring data is include in the url, any attempt to
      use Ti.API or Ti.App inside the webview results in an error
      message:<br>
      ReferenceError: Can't find variable: Titanium<br>
      or<br>
      ReferenceError: Can't find variable: Ti</p></div>{html}

        Attachments

          Activity

            People

            • Assignee:
              ingo Ingo Muschenetz
              Reporter:
              rpfeiffer Ralf Pfeiffer
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration