Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17040] iOS: Relative path for Window URL does not work

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionWon't Fix
Resolution Date2014-05-29T18:17:31.000+0000
Affected Version/sRelease 3.3.0
Fix Version/sn/a
ComponentsiOS
Labelsparity, qe-3.3.0
ReporterPriya Agarwal
AssigneeIngo Muschenetz
Created2014-05-29T10:52:03.000+0000
Updated2017-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)

Comments

  1. Ingo Muschenetz 2014-05-29

    Ti.include() is being deprecated. See TIMOB-16984.
  2. Lee Morris 2017-03-22

    Closing ticket as "Won't Fix".

JSON Source