Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    1
    Vote Rating
    0
    Bart Jolling is on a distinguished road

      0  

    Default Unanswered: Guides not loading when hosting Sencha Touch SDK in ASP.NET Development Server

    Unanswered: Guides not loading when hosting Sencha Touch SDK in ASP.NET Development Server


    REQUIRED INFORMATION

    Ext version tested:
    • touch-charts-1.0.0-commercial.zip
    Browser versions tested against:
    • IE9
    • FF 10.0.2
    • Chrome 18
    Description:
    When hosting the Sensa Touch Commercial SDK on ASP.NET Development Server (included in Visual Studio 2010) I cannot open the 'Drawing and Charting' guide. I get a 'oops not found' message. Fiddler shows a 400 Bad Request for "GET http://localhost:2197/touch-charts/d...=1334750011865 HTTP/1.1". Notice the double forward slashes in docs//guides

    Steps to reproduce the problem:
    • Unzip touch-charts-1.0.0-commercial.zip to destination folder
    • In Visual Studio: Menu -> File -> Open -> WebSite... and browse to destination folder.
    • Right-Click "Index.html" -> Show in Browser. Application opens correctly, hosted in ASP.Net Development Server
    • Open Fiddler to observe what is going on behind the scenes
    • Try to open the 'Drawing and Charting' guide
    The result that was expected:
    • Drawing and Charting guide should open correctly
    The result that occurs instead:
    Code:
    GET http://localhost:2197/touch-charts/docs//guides/drawing_and_charting/README.js?callback=Ext.data.JsonP.drawing_and_charting&_dc=1334750011865 HTTP/1.1
    Host: localhost:2197
    Connection: keep-alive
    User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.162 Safari/535.19
    Accept: */*
    Referer: http://localhost:2197/touch-charts/docs/index.html
    Accept-Encoding: gzip,deflate,sdch
    Accept-Language: en-US,en;q=0.8
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

    HELPFUL INFORMATION

    Debugging already done:
    • The bug appears in "destination folder\docs\app\controller\Classes.js" on line 259
    Code:
    Ext.data.JsonP.request({
       url: this.getBaseUrl() + "/guides/" + name + "/README.js",
         callbackName: name,
         success: function(json) {
     ...

    Possible fix:
    • replace "/guides/" with "guides/" as so:
    Code:
    Ext.data.JsonP.request({
        url: this.getBaseUrl() + "guides/" + name + "/README.js",
          callbackName: name,
          success: function(json) {
     ...
    Operating System:
    • Win7 Ultimate

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    34,107
    Vote Rating
    453
    Answers
    3156
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    Moved to the Charts forum for ST1
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

    When posting code, please use BBCode's CODE tags.