Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13780] MobileWeb: scripts executed in WebView do not have access to Titanium namespace

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionDuplicate
Resolution Date2013-05-08T20:36:40.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsMobileWeb
Labelsn/a
ReporterCarter Lathrop
AssigneeCarter Lathrop
Created2013-05-07T16:12:18.000+0000
Updated2014-01-28T23:50:00.000+0000

Description

*Reproduction steps:* 1) run attached application 2) see console log *Expected result:* "hello world" in the console. *Actual result:* error message in the console. The exception information indicates that there is no access to the Titanium namespace in the script embedded into the local HTML file being displayed in the web view. Below is the actual printout:
[INFO] Appcelerator Titanium 3.2.0 Mobile Web index.html:2659
undefined Titanium is not defined local_webview.html:15
undefined Ti is not defined local_webview.html:20
[INFO] Loaded index.html:2659

Attachments

FileDateSize
webviewsample.zip2013-05-07T16:12:18.000+00002370784

Comments

  1. Yaroslav Pidstryhach 2013-05-08

JSON Source