[AC-2549] Android webview won't evaluate JS if the url contains a space
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2013-04-01T23:30:34.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | n/a |
Reporter | KT |
Assignee | Daniel Sefton |
Created | 2012-10-11T05:37:03.000+0000 |
Updated | 2016-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.
Hi KT, Can you provide a reproducible test case for this issue so that we can verify this as a problem.
Hi KT, Please pass the URL to JavaScript's encodeURI(uri) Thanks.