Results 1 to 7 of 7

Thread: ajax responce

  1. #1
    Sencha User
    Join Date
    Mar 2007
    Posts
    216

    Default ajax responce

    I try to submit form using below code
    Code:
    formPanel.getForm().submit({
     method	:   'POST',
     waitMsg	:	'Saving',
     errorReader: new Ext.data.XmlReader({
      record : 'string',
      }, [
      'string'
     ]
    )
    });
    I got this message from firebug
    missing ) in parenthetical
    The response from the server was.The xml are generated using .net vb

    <?xml version="1.0" encoding="utf-8"?>
    <string xmlns="localhost"> visual basic web service</string>
    After seing the extjs-all-debug.js
    Code:
    doDecode = function(json){
                return eval("(" + json + ')');
            },
    Is there where to set config where ajax request response was json or xml data or soap.

  2. #2
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890

    Default

    Have you debugged?

  3. #3
    Sencha User
    Join Date
    Mar 2007
    Posts
    216

    Default

    debugged?The doc said response can be either xml or json.While extjs code seem to eval the submit requested.What i want to know is like this

    response type : json|xml .



    Alternatively, if an errorReader is specified as an XmlReader:
    ...
    then the results may be sent back in XML format:
    ...
    The xml provided response from third party solution which are asp.net .I just make adobe air + extjs to talk with the asp.net webservice.I search through the google.Seem only 1 person asking soap send/request and no answer.Seem officialy extjs doesn't support soap.If the option don't have,i just make a adobe air +extjs --> php code --> with mssql and return normal json which are more easier to maintain.

  4. #4
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890

    Default

    So that's a "no" then.

  5. #5
    Sencha User
    Join Date
    Mar 2007
    Posts
    216

    Default

    okay to me.buzz language too much
    1. xml
    2. xml-rpc
    3. cobra
    4. json
    5. soap

    Maybe json will be futured language to talk with other language

  6. #6

    Default

    Alien3d, let me say as gently as I can: "figure out what you are talking about, first."

    You need to learn more: you need to "get the big picture." Until you do that, you are only going to be confusing yourself and frustrating yourself.

    Do this:

    1. Go to the ExtJS examples page, in Firefox.
    2. Open up the Firebug debugger in a separate window and select the "Net..XHS" page.
    3. Now, start playing around with some of those examples, and watch what the two computers are saying to one another. Watch what the client sends to the server, and watch what the server sends back.

    As they say, "you can learn a lot by watching," and these examples are fully-debugged, working examples.

    Put your coding pencil in your pocket. Spend at least two consecutive hours, methodically doing this. Just looking. Examine every record.

    Also: while you are "caught in the arms of confusion," try to be patient with yourself. There is a "learning curve" and you are in the process of climbing it. "These things, too, will pass."

  7. #7
    Sencha User
    Join Date
    Mar 2007
    Posts
    216

    Default

    I done it,but i don't want to waste time on asp.net problem(it's third party solution).To buggy/unstable to me. The point of programming,just do as sap and able to manipulate thing.If i cannot,i will do diff way.

Posting Permissions

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