Results 1 to 4 of 4

Thread: Setup listeners for dynamically loaded form.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Jun 2011
    Posts
    71
    Vote Rating
    0
      0  

    Default Setup listeners for dynamically loaded form.

    I am loading in forms via ajax but need to know how to then apply event listeners after they have been loaded. I want to capture the submit to preventDefault() and submit form via ajax.

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      0  

    Default

    When you say a form, is it just HTML or is it Ext.form.Panel?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Jun 2011
    Posts
    71
    Vote Rating
    0
      0  

    Default

    It is just html not a Ext.form.Panel.

  4. #4
    Sencha User
    Join Date
    Jun 2011
    Posts
    71
    Vote Rating
    0
      0  

    Default

    I am loading forms dynamically through ajax. After I add the form to the Container via setHtml() I want to be able to listen for the submit and handle through ajax.

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
  •