Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-998] Importing CSS/JS files broken for new Mobile SDK 1.3.0 WebViews on iPad

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionNeeds more info
Resolution Date2012-07-26T11:43:01.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelscore, tooling
Reporterzachstronaut
AssigneeNeeraj Gupta
Created2011-04-15T02:41:10.000+0000
Updated2015-04-30T14:09:44.000+0000

Description

Create a new project with Mobile SDK 1.3.0 for iPad.

Create a WebView for this app that opens a local HTML file (e.g. test.html) in Resources folder

Put a test.css and test.js file also in your Resources folder.

Try to include the CSS file with a link tag and try to include the JS file with a script tag from test.html

Run the app in the iPad simulator.

The test.css and test.js files will not be included.

I would suspect that the files are either not being included in the build, or that the include path from test.html is incorrect.

Also important: You can create a 1.2.0 Mobile SDK project, and follow the above steps, and you will have no problems. The bug does not happen.

Even more interesting: After you create that 1.2.0 project, you can convert it to 1.3.0 from the Edit Project page, and when you run in the simulator, everything works fine. The bug does not affect converted projects, only original 1.3.0 projects.

Comments

  1. zachstronaut 2011-04-15

    Further testing seems to suggest this is actually not due to v1.2.0 versus v1.3.0 but is instead a bug caused by placing spaces in your project name.

  2. Stephen Tramer 2012-07-24

    No explicit test case, filer admits information is incorrect, there have been fixes with spaces in project names, ancient SDK (1.6.0, <1yr), Titanium Developer (not Studio).

JSON Source