Results 1 to 3 of 3

Thread: Form panel submit with standard submit ignores url

  1. #1
    Ext JS Premium Member
    Join Date
    Feb 2012
    Posts
    44
    Answers
    3

    Default Form panel submit with standard submit ignores url

    hello,

    i have a sencha app working over tomcat. i'm using the interface to have a kind of login form.
    if i submit the form with "standardsubmit: true", then extjs ignores the url.

    here's what i receive:
    Code:
    GET http://192.168.1.114:8080/Myapp/.js?_dc=20160520162410 
    404 Not Found 1ms
    but i set
    Code:
    url: j_security_check
    and this is what i call for doing submit:
    Code:
    form.submit({
            url: 'j_security_check',
            standardSubmit: true,
            method: 'POST',
    });
    If i put standardSubmit: false, then everything is sent to the correct url, but this is not what i want (since tomcat redirects me to another url. hence i can't use ajax call)

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    Does it work if you set the standardSubmit config on the form rather than the submit() call?

  3. #3
    Ext JS Premium Member
    Join Date
    Feb 2012
    Posts
    44
    Answers
    3

    Default

    The parameter is set in both.
    both on "submit()" and on the form panel.

    And i also tested with:
    - just on the form panel
    - just on the sumit call

    It doesn't work.

Similar Threads

  1. [FIXED] Ext.Direct form submit ignores timeout
    By ralscha in forum Ext JS 6.x Bugs
    Replies: 1
    Last Post: 4 Sep 2015, 9:56 AM
  2. IE8 : Standard HTML form and submit event
    By patlenain in forum Ext: Discussion
    Replies: 4
    Last Post: 28 Jul 2013, 11:44 PM
  3. ext form standard submit issue
    By conetic in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 3 May 2011, 7:08 PM
  4. standard submit vs. ajax in login form
    By dolittle in forum Ext 2.x: Help & Discussion
    Replies: 8
    Last Post: 9 Mar 2009, 11:20 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
  •