[TIMOB-15762] iOS: Ti.App.fireEvent not work with html file without .html extension
GitHub Issue | n/a |
Type | Bug |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 3.1.3 |
Fix Version/s | n/a |
Components | iOS |
Labels | SupportTeam |
Reporter | Steven Lam |
Assignee | Unknown |
Created | 2013-11-05T18:10:18.000+0000 |
Updated | 2019-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
JSON Source
Why do you need to use .xhtml?
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
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();