Click here to Skip to main content
15,881,757 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
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:
HTML
<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:
HTML
<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]
Posted
v2

 
Share this answer
 
v2
Comments
Alexandre Bandeira 16-Feb-18 13:55pm    
Please, can you help me. I can not use "text / javascript" because I'm using an Image. Who can I do this works?

If I use "Image / javascript", the image does not show.

O alredy get the test, if I write “text/javascript” the next form get the Information, but I am used am Image.
Thank you for your help. I have googled the issue that you mentioned.but the problem does not solve.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900