Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7824171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T08:30:30+00:00 2026-06-02T08:30:30+00:00

is it possible to submit a extjs 4 form using the proxy of a

  • 0

is it possible to submit a extjs 4 form using the proxy of a model/store. I want to use the submit action for remote validation reasons. I want to use the rest proxy configuration from the model, so that I can a avoid configuring the database/server connection twice.

Thx for your help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T08:30:33+00:00Added an answer on June 2, 2026 at 8:30 am

    If your form exactly represents one instance of your model, why are you using form submit and not model.save(); or store.sync()? These methods were designed for working with your data model and take advantage of all the cool built in capabilities of ExtJS data.

    In the documentation for Ext.data.Model under the subheading “Using a Proxy” there are examples for the various operations you may want to perform (GET, PUT, POST, DELETE – aka load, save, save, destroy).

    You can then attach some callbacks to the model.save() method so you know if the operation succeeded or failed (perhaps due to server side validation).

    Here’s an Sencha Forums post talking about your specific use case: ExtJS 4 Sync and success/failure processing

    The summary is that if your server side validation returned an error with JSON content something like:

    { "success": "false", "message": "Error message goes here." }
    

    Then you can save your model and catch the failure response and use that extra message JSON element to alert the user why it failed server side validation. Of course you could return a more detailed JSON message if you like, but this proves the concept. Extend to suite your application.

    myExtModelInstance.save({
        success: function(rec, op) {
            // do something
        },
        failure: function(rec, op) {
            // Lets show a message for the failure with the 
            // content from the server's returned failure JSON
            Ext.Msg.alert("Failed",op.request.scope.reader.jsonData["message"]);
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Submit a form using jQuery $('#form') Supposed the jQuery Object of the
Is it possible to use the facebook connect button to submit a form? I
When using jQuery to submit a form is it possible to place the resulting
it it possible to get the form action of a GET form on submit
Is it possible to use jQuery to disable the submit button of a form
So, I've read a lot about using ExtJS's fileuploadfield to submit a form via
Possible Duplicate: submit a form using jquery Hello friends How can I submit a
Is it possible to to submit an HTML Form (with a PHP action) and
I want to use jQuery to submit my form and i can do that
does anyone know if possible or how to submit a form, use get to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.