Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15762] iOS: Ti.App.fireEvent not work with html file without .html extension

GitHub Issuen/a
TypeBug
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.1.3
Fix Version/sn/a
ComponentsiOS
LabelsSupportTeam
ReporterSteven Lam
AssigneeUnknown
Created2013-11-05T18:10:18.000+0000
Updated2019-07-25T05:51:27.000+0000

Description

Steps to Reproduce

when putting in a file without .html extension, the command not work. for example, Ti.App.fireEvent() not work in .xhtml file but work in .html file

Actual Result

Ti.App.fireEvent() not work in .xhtml file

Expected Result

Ti.App.fireEvent() should work in .xhtml file

Comments

  1. Ingo Muschenetz 2013-11-21

    Why do you need to use .xhtml?
  2. Steven Lam 2013-11-21

    coz ePub is using xhtml, and I want to read these xhtml files in ePub By making the ePub file compatible with other application, I leave the extension as xhtml
  3. Sunila 2014-02-18

    I can't reproduce the problem. Created a file called test2.xhtml with the following content test Test code var win = Ti.UI.createWindow({ backgroundColor : 'yellow' }); var webview = Ti.UI.createWebView({ url: "test2.xhtml" }); win.add(webview); Ti.App.addEventListener("someEvent", function(e) { Ti.API.info("app event"); }); win.open();

JSON Source