[CLOSED] for submit to webservice

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [CLOSED] for submit to webservice

    I am in trouble to make correct call to web service. Form values are being submitted correctly the only problem is that webservice respond in xml despite that [System.Web.Script.Services.ScriptService] is uncomment, It throws an error on response. Ext.JSON.decode(): You're trying to decode an invalid JSON String:
    for exampe
    createNewAssets: function () {
            var frm = Ext.getCmp('frmAddNewAsset').getForm();
            frm.submit({
                url: '../../stores/assets.asmx/saveNewAssets',
                cleanRequest: true,
                json: true, //it is not working 
                params: {
                    newAsset: frm.getValues(true)
                }
                success: function (form, action) {
                    Ext.Msg.alert('Success', action.result.msg);
                }
            })
    
       [WebMethod]
        public string saveNewAssets() { 
            return "{'success' : true , 'msg' : 'Success' }" ;
        }
    Last edited by Daniil; Jul 10, 2013 at 3:51 AM. Reason: [CLOSED]

Similar Threads

  1. [CLOSED] WebService params
    By odyssey in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: Mar 06, 2013, 6:07 AM
  2. Replies: 1
    Last Post: Jul 25, 2012, 9:52 AM
  3. submit?
    By marco.amusquivar in forum 1.x Help
    Replies: 0
    Last Post: Mar 25, 2012, 7:37 PM
  4. Help with WebService and Ext.net
    By xborderland in forum 1.x Help
    Replies: 3
    Last Post: Aug 11, 2011, 11:50 AM
  5. [CLOSED] Submit gridpanel data in form submit
    By jchau in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jul 14, 2010, 7:25 PM

Tags for this Thread

Posting Permissions