Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2549] Android webview won't evaluate JS if the url contains a space

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2013-04-01T23:30:34.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterKT
AssigneeDaniel Sefton
Created2012-10-11T05:37:03.000+0000
Updated2016-03-08T07:41:37.000+0000

Description

Just realized this still exists. It's been around forever, and I've had a workaround in place. Out of curiosity I tried on 2.1.2 (or .3), and it's still an issue. 1. If the local .html file contains a space in the name, such as "This File.html", then passing it as the url to Ti.UI.createWebView will NOT execute any JS files included by the file. 2. If the local .html file does not contain a space, such as "ThisFile.html", then any JS included by the file is evaluated properly. 3. This is Android; iOS works fine.

Comments

  1. Jamie Buckley 2013-02-04

    Hi KT, Can you provide a reproducible test case for this issue so that we can verify this as a problem.
  2. Daniel Sefton 2013-04-01

    Hi KT, Please pass the URL to JavaScript's encodeURI(uri) Thanks.

JSON Source