Results 1 to 2 of 2

Thread: touch 2 app working from localhost but not from remote server

  1. #1
    Sencha User
    Join Date
    Jul 2013
    Posts
    10
    Answers
    3
    Vote Rating
    1
      0  

    Default Unanswered: touch 2 app working from localhost but not from remote server

    Hi,

    I'm working on my first Sencha Touch 2 app. I was originally programming it locally. So, I would call it up in a web browser using something like ... localhost/app. Everything works fine from localhost.

    However, now I have a need to give other people a preview. So, I tarred up the app directory and put it on a webserver... I've created a trimmed down test version of it here... http://apps.thinkunderground.com/touchtest/

    Now when I run it from the remote URL, and click the "try" button, an error occurs (in chrome)...
    Uncaught TypeError: Cannot call method 'destroy' of null

    I do have that data being displayed in a dataview with a store that retrieves data via JSONP.

    So, my question is, Am I packaging and relocating the app properly? and any idea why this would only be failing on a remote webserver and not on localhost?

    Thanks for any ideas. I'm stumped.
    Nathan

  2. #2
    Sencha User jerome76's Avatar
    Join Date
    Apr 2012
    Location
    New Jersey
    Posts
    1,149
    Answers
    132
    Vote Rating
    101
      0  

    Default

    Your getViewItems is calling this.element.dom.childNodes, but there is no childNodes for that element. Could you mean this.dataview.element.dom.childNodes? That element has 2 nodes in it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •