1. #1
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,198
    Vote Rating
    120
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      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,501
    Vote Rating
    47
    Animal has a spectacular aura about Animal has a spectacular aura about

      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

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi