Competitive Alert Sheets?

Discussion in 'Jiggy Runtime Development' started by Nickll9009, Apr 22, 2008.

  1. Nickll9009

    Nickll9009 New Member

    Joined:
    Sep 19, 2007
    Messages:
    1,367
    Likes Received:
    8
    Device:
    iPod touch
    Ok so I almost got my app to work 100%!!!

    So now I have an 2 alert sheets, that apparently don't like each other.

    One is an alert sheet that is opened when a button labeled "contact me" is pushed, and has 3 buttons.

    The other alert sheet is one that opens when a process from another alert sheet is finished.

    When in the jiggy IDE I place one alert sheet before another (lets say "process" before "contact") the other doesnt work.

    Example- I place the code for the "process" alert sheet before the "contact" one. The "process" one works fine, but the other results the error: JavaScript error 'ReferenceError: NAME OF ALERT SHEET is not defined' in private/var/NAME OF APP.app/main.js at line 54. But when i place "contact" before "process" I get the same error when trying to run "process" , where "contact" runs fine. Is this a common problem? If so can someone help me out? Thanks is appreciated, and rep will be awarded! Thanks - Nick
  2. RazerM

    RazerM New Member

    Joined:
    Oct 4, 2007
    Messages:
    279
    Likes Received:
    5
    It would be easier if you posted the code where you define the alert sheets, and the code used to make them appear.

    They should be defined like this:
    Code:
    var contact = new UIAlertSheet("Contact", ["Button 1", "Button 2"], 0);
    var process = new UIAlertSheet("Process", ["Button 1", "Button 2"], 0);
  3. gojohnnyboi

    gojohnnyboi Well-Known Member

    Joined:
    Jan 25, 2008
    Messages:
    3,339
    Likes Received:
    55

    nick i can help you np get on aim!

Share This Page