PDA

View Full Version : EXTJS equivalent to Prototype's $("id").submit()?



dduffy
7 Jul 2010, 3:23 AM
Hi there,

I have been using Prototype for a while, I have a form defined as follows:
<form name="cp_per_002_cpd" id="cp_per_002_cpd" method="post" action="some_url" target="_self" class="hidden_form"></form>

and in my JS I can simply call the following prototype dollar function to execute the submitting of the form.
$("cp_per_002_cpd").submit();

What is EXTJS equivalent?

thanks in advance.
Darragh

Condor
7 Jul 2010, 3:35 AM
I don't know Prototype all that well, so does this do a standard submit or an XHR submit?

If it is a standard submit then it is the same as:

Ext.getDom("cp_per_002_cpd").submit();

dduffy
7 Jul 2010, 5:14 AM
thanks Condor, this works nicely for me.

darragh.