Results 1 to 2 of 2

Thread: Replacing a <input submit> with a <href> withing ExtJS

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Ext JS Premium Member
    Join Date
    Apr 2011
    Location
    United States
    Posts
    1
    Vote Rating
    0
      0  

    Question Replacing a <input submit> with a <href> withing ExtJS

    I have a simple ExtJS Grid that I've tied some custom JS validation to using EXTjs..

    I'd like to replace the forms submit Button w/ an HREF like below.. But I'm unsure how to get my HREF to fire the same validation events as the submit button?

    <input type="submit" value="Update Selections" class="primary"/> (works)

    <a href="javascript:document.forms['setSiteAccountsForm'].submit()" name="_submit">Update Selections</a> (doesn't catch the validation)

    ...
    onReady()
    Ext.get('setSiteAccountsForm').on('submit', function(e, t) {....validation.... etc}

    make sense?

    Sorry new to the JS side of this

    any help is appreciated -

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,389
    Vote Rating
    497
      0  

    Default

    Have a look at the following:
    http://www.sencha.com/forum/showthread.php?186204

    Scott.

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
  •