PDA

View Full Version : Form submits in Firefox, NOT IE



Syed Huda
17 Dec 2010, 7:31 AM
Could someone help, I have a form that is being submitted, works in Firefox NOT internet Explorer.

Here's the code that submits:


resultsgridForm.getEl().dom.submit();

Here's the basic form:


var resultsgridForm = new Ext.BasicForm(
Ext.get("resultsgrid"),
{
}
);


Here's the FORM in the JSP being referenced above "resultsgrid":


<form id="resultsgrid" action="/recoveryapp//rsGetScore.rdp?" method="get" style="display:none">
<input type="text" id="scenario" name="scenario" />
<input type="text" id="scenarioFinancialData" name="scenarioFinancialData" />
<input type="submit" value="Submit" />
</form>

Danek1313
17 Dec 2010, 8:32 AM
I've never used Ext.get before, but I have a feeling your creation of the Ext.BasicForm isn't correct. Should you try Ext.getCmp('resultsgrid')? (Assuming resultsgrid is the id of your results grid)

I highly recommend looking at the form examples' source code to see how these objects are created/used.

Syed Huda
17 Dec 2010, 9:20 AM
Actually figured this out. Turns out the query string was a little different.... not sure why because it works fine on another page.

But I ended up changing everything from "get" to "post" so there is no query string.
It works now.

Danek1313
17 Dec 2010, 9:27 AM
Ah, well then. I was way off haha! Glad you found an answer.