nyroDev / nyroModal

nyroModal is a highly customizable modal window plugin for jQuery. This is the version 2 of the plugin
http://nyromodal.nyrodev.com/
237 stars 75 forks source link

submit form in nyroModal with Firefox #250

Open internetvista opened 9 years ago

internetvista commented 9 years ago

I encounter a problem when I submit a form in a nyromodal context only with Firefox and when the action of the form points to an external URL. 1st step: open a nyromodal window

    <html>
    <head>
        <title>Modal Test</title>
        <link rel="stylesheet" href="styles/nyroModal.css" type="text/css" media="screen" />
        <script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
        <script type="text/javascript" src="js/jquery.nyroModal.custom.js"></script>
    </head>
    <body>
        <a href="test-modal-embedded.html" class="nyroModal">Open Modal Window</a>
        <script>
        $(function() {
            $('.nyroModal').nyroModal();
        });
        </script>   
    </body>
    </html>

and the seconds step: submit a form in this nyromodal

    <html>
    <body>
        <form name="myForm" action="https://secure.thewebsite.com/" class="nyroModal" target="_blank" method="post">
            <input type="submit" value="submit form"/>
        </form> 

        <script>
        $(function() {
            $.nmInternal({debug: true});
            $('.nyroModal').nyroModal();
        }); 
        </script>   
    </body>
    </html>

and the form is not submitted. Any idea or any clue? It works with Chrome and Safari.

nyroDev commented 9 years ago

The form test in iframe work great in Firefox in the demo page: http://nyromodal.nyrodev.com/

Could you provide a test link please?

internetvista commented 9 years ago

Did you try in a secure context (https)?

nyroDev commented 9 years ago

I think it's a browser problem. Is the first page in a secure environment too? Could you provide a test page?