Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

submit form in nyroModal with Firefox #250

Open
internetvista opened this issue Nov 26, 2014 · 3 comments
Open

submit form in nyroModal with Firefox #250

internetvista opened this issue Nov 26, 2014 · 3 comments

Comments

@internetvista
Copy link

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
Copy link
Owner

nyroDev commented Feb 21, 2015

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
Copy link
Author

Did you try in a secure context (https)?

@nyroDev
Copy link
Owner

nyroDev commented Mar 27, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants