Threaded View

  1. #1
    Sencha User
    Join Date
    Feb 2013
    Posts
    1
    Vote Rating
    0
    wefferch is on a distinguished road

      0  

    Default Answered: Ext.Ajax.request

    Answered: Ext.Ajax.request



    Hi Experts

    My Ajax request is working fine on my dev environment (Tomcat v7.0 on my local computer).
    After deploying to sencha io the Ajax request does not work.
    This is how my Ajax request looks like:

    Ext.Ajax.request({
    url: 'MyJSPfile.jsp',
    params: {
    k: key
    },
    success: function (response) {
    var answerAsText = response.responseText;

    When executed on my local computer my ajax request correctly returns the result of 'MyJSPfile' in
    'answerAsText'. After deploying my app to sencha.io, the ajax request returns 'MyJSPfile' code in 'answerAsText' instead of the my jsp file result.

    Any idea what could be the problem?

    Kind Regards,
    Carlos

  2. Sencha.io's app hosting service is only for static application resources: html, css, js, images etc. So any php, jsp or other files will be returned as text. If you request appid.senchafy.com/MyJSPfile.jsp then you will get back the contents of your JSP file.

Thread Participants: 1

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