-
18 Feb 2007 9:25 PM #1
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:
The submit references:Code:top.frames['iframeComment'].document.forms[0].submit()
and is therefore not a function.Code:<input type="submit" id="submit" name="addcomment" value="#rb("post")#">
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?
-
19 Feb 2007 12:08 AM #2
Code:top.frames['iframeComment'].document.forms[0].submit.click();
Similar Threads
-
how to submit a form split over several tabs?
By raphinou in forum Ext 1.x: Help & DiscussionReplies: 4Last Post: 1 Jun 2007, 7:20 AM -
Basic Dialog Form plus submit example?
By rob30UK in forum Ext 1.x: Help & DiscussionReplies: 26Last Post: 13 Jan 2007, 9:11 AM -
BasicDialog: how to submit a form without AJAX.
By moraes in forum Ext 1.x: Help & DiscussionReplies: 4Last Post: 5 Jan 2007, 7:02 AM -
BasicDialog with one TabPanelItem a try to submit form
By JuanParraC in forum Ext 1.x: Help & DiscussionReplies: 5Last Post: 4 Dec 2006, 12:15 AM -
Basic Dialog and form submit
By JC in forum Ext 1.x: Help & DiscussionReplies: 5Last Post: 21 Nov 2006, 12:44 AM


Reply With Quote