Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2413] "Creating_Your_First_Titanium_App" example doesn't run

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionDuplicate
Resolution Date2014-01-26T02:36:39.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsDocumentation
Labelsn/a
ReporterAdrian Hill
AssigneeRitu Agrawal
Created2014-01-24T14:24:20.000+0000
Updated2016-03-08T07:41:27.000+0000

Description

After typing in code for iOS and running the following error is displayed: "Can't find variable: addBook at index.js (line 55)

Comments

  1. Ritu Agrawal 2014-01-26

    Resolving this ticket as a duplicate of TIDOC-1497.
  2. Adrian Hill 2014-01-28

    This is not a duplicate of TIDOC-1497, it is a different problem. If you go through the tutorial as it stands you will see that it doesn't work.
  3. Ritu Agrawal 2014-02-02

    Can you reproduce your problem after changing: function showBook() { to: function showBook(event) {
  4. Daniel Gren 2014-03-10

    added this to index.js to make it work. Doesn't say anything about it anywhere in the tutorial, really confusing to us noobs :) function addBook (event) { var addbookview = Alloy.createController("addbook").getView(); if (OS_IOS) { $.navGroupWin.openWindow(addbookview); } if (OS_ANDROID) { bookview.openWindow(addbookview); } }

JSON Source