1. #1
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    8,191
    Vote Rating
    63
    aconran is just really nice aconran is just really nice aconran is just really nice aconran is just really nice aconran is just really nice

      0  

    Default ID of submit within form masks submit function

    ID of submit within form masks submit function


    I am developing a skin for BlogCFC which uses YUI-Ext.

    When adding a comment I load the existing addcomment.cfm page into an iframe in a BasicDialog.

    Unfortunately the id field for the addcomment form submit button has a name and id of 'submit'. When I try to submit a form from a BasicDialog like so:
    Code:
    top.frames['iframeComment'].document.forms[0].submit()
    The submit references:
    Code:
    <input type="submit" id="submit" name="addcomment" value="#rb("post")#">
    and is therefore not a function.

    As of now I went into the source code and removed the id of the submit button. This works fine but I'd rather not muck with the source. This way I can have future upgrades without a problem... Does anyone have any suggestions?

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,458
    Vote Rating
    20
    Animal is a jewel in the rough Animal is a jewel in the rough Animal is a jewel in the rough

      0  

    Default


    Code:
    top.frames['iframeComment'].document.forms[0].submit.click();

Similar Threads

  1. how to submit a form split over several tabs?
    By raphinou in forum Ext 1.x: Help & Discussion
    Replies: 4
    Last Post: 1 Jun 2007, 7:20 AM
  2. Basic Dialog Form plus submit example?
    By rob30UK in forum Ext 1.x: Help & Discussion
    Replies: 26
    Last Post: 13 Jan 2007, 9:11 AM
  3. BasicDialog: how to submit a form without AJAX.
    By moraes in forum Ext 1.x: Help & Discussion
    Replies: 4
    Last Post: 5 Jan 2007, 7:02 AM
  4. BasicDialog with one TabPanelItem a try to submit form
    By JuanParraC in forum Ext 1.x: Help & Discussion
    Replies: 5
    Last Post: 4 Dec 2006, 12:15 AM
  5. Basic Dialog and form submit
    By JC in forum Ext 1.x: Help & Discussion
    Replies: 5
    Last Post: 21 Nov 2006, 12:44 AM