1. #1
    Sencha User
    Join Date
    May 2012
    Location
    rome
    Posts
    62
    Answers
    3
    Vote Rating
    0
    alexdran is on a distinguished road

      0  

    Default Answered: ST2 Build Production Error - Cross origin requests

    Answered: ST2 Build Production Error - Cross origin requests


    Hello all
    I have a problem after building my App

    sencha app build production

    when I try to open the index.html file with the browser I have no output on the screen except the two blinking circles. Chrome says:

    XMLHttpRequest cannot load file:///Applications/MAMP/htdocs/Sma...?1344002055456. Cross origin requests are only supported for HTTP.

    I cannot then insert the www application in a xCode or Eclipse project!!

    does someone has suggestions? This is the second App I'm completing and I have not had any issue with the first one (of course the App is working in localhost from the source with no issues!!)

    I used
    Sencha Command v2.0.2
    Copyright (c) 2012 Sencha Inc.



    Thank you very much in advance

  2. Found a solution to this problem

    I was using to put on the code the following:

    Code:
    Ext.application({
        name: 'myApp',
    
    
        myconfig: {
            fid: '2',
            fname: 'LLab SSchool App',
            fnames: 'LLSS',
            server: 'http://www.myserver.com/'
        },
    
    
        requires: [
    
    ....
    and was referring in the code to these following global variables (in order to change them once to customize new version of my application)

    for example on store(s)

    Code:
    	    proxy: {
        	    type: 'ajax',
                url: myApp.app.config.myconfig.server + 'info.php?task=infocf&id=' + myApp.app.config.myconfig.fid,
                reader: {
    	       		type: 'json'	
    	       	}
    ...
    or in view

    Code:
                title: myApp.app.config.myconfig.fnames + ' by SC.net'

    the same problem occurred also accessing the variable with

    myApp.app.myconfig.fnames (without config)



    however if someone has suggestion on how to access similarly global App variable (that are also working after build) is very welcome

    Alessandro

  3. #2
    Sencha User
    Join Date
    May 2012
    Location
    rome
    Posts
    62
    Answers
    3
    Vote Rating
    0
    alexdran is on a distinguished road

      0  

    Default


    I have also followed this topic with no success:

    http://www.sencha.com/forum/showthre...uild-app-issue


    packaging reports:
    Uncaught ReferenceError: SmartLLSS is not defined
    I have run the final build (both packaging and production) moving to another folder (i.e. desktop) outside localhost folder and also closing MAMP server


    no way to get it working also on the web!!


    thank you again for any help




  4. #3
    Sencha User
    Join Date
    May 2012
    Location
    rome
    Posts
    62
    Answers
    3
    Vote Rating
    0
    alexdran is on a distinguished road

      0  

    Default


    does anyone have suggestions (also some links on where to look for)?
    sorry to bother more wıth this but I m really stucked at this point!

    thank you agaın

  5. #4
    Sencha User
    Join Date
    May 2012
    Location
    rome
    Posts
    62
    Answers
    3
    Vote Rating
    0
    alexdran is on a distinguished road

      0  

    Default


    Found a solution to this problem

    I was using to put on the code the following:

    Code:
    Ext.application({
        name: 'myApp',
    
    
        myconfig: {
            fid: '2',
            fname: 'LLab SSchool App',
            fnames: 'LLSS',
            server: 'http://www.myserver.com/'
        },
    
    
        requires: [
    
    ....
    and was referring in the code to these following global variables (in order to change them once to customize new version of my application)

    for example on store(s)

    Code:
    	    proxy: {
        	    type: 'ajax',
                url: myApp.app.config.myconfig.server + 'info.php?task=infocf&id=' + myApp.app.config.myconfig.fid,
                reader: {
    	       		type: 'json'	
    	       	}
    ...
    or in view

    Code:
                title: myApp.app.config.myconfig.fnames + ' by SC.net'

    the same problem occurred also accessing the variable with

    myApp.app.myconfig.fnames (without config)



    however if someone has suggestion on how to access similarly global App variable (that are also working after build) is very welcome

    Alessandro

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar