[TIMOB-17040] iOS: Relative path for Window URL does not work
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2014-05-29T18:17:31.000+0000 |
Affected Version/s | Release 3.3.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | parity, qe-3.3.0 |
Reporter | Priya Agarwal |
Assignee | Ingo Muschenetz |
Created | 2014-05-29T10:52:03.000+0000 |
Updated | 2017-03-22T22:58:24.000+0000 |
Description
Relative path for Window URL does not work
Steps to reproduce:
Note in this example that the "loader.js and win.js" file is in a "ui" subdirectory.
code in app.js
Ti.UI.setBackgroundColor('#000');
Ti.include('ui/loader.js');
code in ui/loader.js
var win1=Ti.UI.createWindow({
title:'Window 1',
backgroundColor:'#fff',
url:'win1.js'
});
win1.open();
code in ui/win1.js
var winOne = Ti.UI.currentWindow;
var label1 = Ti.UI.createLabel({
color:'#999',
text:'I am Window 1',
font:{fontSize:20,fontFamily:'Helvetica Neue'},
textAlign:'center',
width:'auto'
});
winOne.add(label1);
Expected Result:
1. Window opens with label text as "I am Window 1"
Actual Result:
1. Getting error as:
[ERROR] Script Error Could not find the file win1.js
Note: Running fine on Android(TIMOB-10783)
Ti.include() is being deprecated. See TIMOB-16984.
Closing ticket as "Won't Fix".