Results 1 to 4 of 4

Thread: Extjs form submit error

  1. #1
    Sencha Premium User
    Join Date
    May 2018
    Posts
    3

    Default Extjs form submit error

    I am having a form with filefield. This file field is optional. When we submit the form using form.submit() function, sometimes it gives a error Ext.JSON.decode() and request is not running. I tried to debug the issue and it seems like the issue is throwing in beforeAjaxSubmit callback. Console trace is attached.
    Attached Images Attached Images

  2. #2
    Sencha - Forum Administrator
    Join Date
    Sep 2017
    Posts
    1,006
    Answers
    5

    Default

    Good evening! I apologize for the trouble- this is being sent over to the support team for review and we will look into this at our earliest convenience. Thank you for your patience!

    Michele

  3. #3
    Ext Support Team
    Join Date
    Jan 2018
    Posts
    569
    Answers
    7

    Default

    Hello there,

    Your AJAX response is not a pure JSON. Try to output the response in console and check if the response is pure JSON.
    A file upload expects you to return a json response the same way you would for a normal form submit. The way to solve it is add a valid JSON string to the server side code.

    Regards,
    Kumar
    Sencha Support.

  4. #4
    Sencha Premium User
    Join Date
    May 2018
    Posts
    3

    Default

    Hi Kumar,

    The issue is this error comes before sending the request to the server and it comes only in some occasions, No particular pattern.

Similar Threads

  1. Replies: 3
    Last Post: 8 May 2017, 5:05 AM
  2. [OPEN] ExtJS Modern Form submit Scope Error
    By wps in forum Ext JS 6.x Bugs
    Replies: 2
    Last Post: 3 Jun 2016, 5:46 AM
  3. Replies: 5
    Last Post: 15 Nov 2013, 6:21 AM
  4. form.submit is not a function [Break on this error] form.submit();
    By intro in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 30 Aug 2010, 11:03 AM
  5. Error with the submit form sintax error ( ) ext-all.js (line 38)
    By nunez in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 12 Aug 2007, 7:25 AM

Tags for this Thread

Posting Permissions

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