Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Jun 2013
    Posts
    1
    Vote Rating
    0
    Dev-Dipesh is on a distinguished road

      0  

    Default Answered: Create your first app: Menu error

    Answered: Create your first app: Menu error


    **Windows Machine**
    I am unable to add a menu to my application, here is my code snippet:
    **helloconfig.json**


    {
    "applicationName": "Project 1",
    "applicationIconPaths": ["project1.ico", "project1.icns"],
    "versionString": "1.0",
    "outputPath": "Project_Output",
    "webAppPath": "hello/",
    "settings": {
    "mainWindow": {
    "autoShow": true
    }
    }
    }

    **index.html**


    <html>
    <head>
    <title>Hello</title>
    <script type="text/javascript">
    function addMenu() {
    var fileMenu = Ion.ui.mainWindow.menuBar.addMenu("File");
    fileMenu.addMenuItem("Change Color", changeColor);
    fileMenu.addSeparator();
    fileMenu.addMenuItem("Exit", handleExit);
    }
    </script>
    </head>
    <body>
    <p>Hello, world!</p>
    </body>
    </html>

    **CMD O/P**


    Packing from configuration file helloconfig.json...
    Output path already exists. Overwrite (Y/N)? y
    Output path will be overwritten.
    Searching for files. Please wait...
    Total of 2 files to be packaged.
    Target package file F:\Users\JaiNarayana\Documents\Sencha Desktop Projects\Proje
    ct 1\Project_Output\app.ion
    Package created at F:\Users\JaiNarayana\Documents\Sencha Desktop Projects\Projec
    t 1\Project_Output
    Package F:\Users\JaiNarayana\Documents\Sencha Desktop Projects\Project 1\Project
    _Output\app.ion (992 bytes) is verified. Everything looks good.
    Encrypting package with basic encryption...
    Package encrypted successfully.
    Extracting run-time to F:\Users\JaiNarayana\Documents\Sencha Desktop Projects\Pr
    oject 1\Project_Output
    Run-time is extracted.

    I have also used separate .js file but nothing works.

  2. Quote Originally Posted by Dev-Dipesh View Post
    <body>
    Try:
    HTML Code:
    <body onload="addMenu()">

  3. #2
    Sencha User
    Join Date
    Jun 2013
    Posts
    2
    Answers
    1
    Vote Rating
    1
    PaulPriest is on a distinguished road

      0  

    Default


    Quote Originally Posted by Dev-Dipesh View Post
    <body>
    Try:
    HTML Code:
    <body onload="addMenu()">

  4. #3
    Sencha User
    Join Date
    Feb 2011
    Location
    Düsseldorf, Germany
    Posts
    574
    Answers
    34
    Vote Rating
    31
    Kurt001 has a spectacular aura about Kurt001 has a spectacular aura about

      0  

    Default


    I get an error most of the time, if the directory already exists. Therefore I am always deleting all output directories.

  5. #4
    Sencha User
    Join Date
    Jun 2013
    Location
    New York
    Posts
    10
    Vote Rating
    -15
    Harlowsmith is infamous around these parts Harlowsmith is infamous around these parts

      -2  

    Default


    Well... I have no information about this thread so I am unable to make any comment here. I would go through it and then post my views here.
    .

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi