Hello:
Developed with VS2012, use MVC4. I have two web pages.one is main.aspx,the other is parts.aspx.
The main.aspx's source code as below:
<script>
frames["iframeName"].document.forms["fromImport"].submit();
..........................
</script>
<body>
<iframe src="/info/import" name="iframeName" allowtransparency="yes" frameborder="0" scrolling="no" width="100%" height="40"></iframe>
..............
</body>
The parts.aspx's source code as below:
<body>
<% using (Html.BeginForm("importSave", "infoSave", FormMethod.Post, new {enctype = "multipart/form-data", id = "fromImport"}))
{ %>
<%: Html.ValidationSummary(true)%>
.......................
</div>
<%} %>
</body>
It works perfectly in IE10 And IE11.
But it doesn't work in Firefox.
When it execute the
"forms["fromImport"].submit()"
, it doesn't work.
There are no exception or error, while debug with fireBug.
Please help me out. Thanks in advance.
[Edit member="Tadit"]
Corrected formatting and/or grammatical issues.
Added
pre
tags.
[/Edit]