nyroModal icon indicating copy to clipboard operation
nyroModal copied to clipboard

submit form in nyroModal with Firefox

Open internetvista opened this issue 11 years ago • 3 comments

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.

internetvista avatar Nov 26 '14 11:11 internetvista

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

Could you provide a test link please?

nyroDev avatar Feb 21 '15 15:02 nyroDev

Did you try in a secure context (https)?

internetvista avatar Feb 23 '15 12:02 internetvista

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

nyroDev avatar Mar 27 '15 12:03 nyroDev