I have a page that is called via SSL. On this page is a form which is submitted via non-SSL. The problem is when I submit the form, I get the following pop-up message:
This is a non-secure form.
This form will be sent in a way that is not secure. Are you sure you want to send it?
I am submitting this form in JavaScript; is there a way to suppress this message programmatically?
No, and there never will be. It’s a security issue.
If there were, people could use it to trick people into submitting malicious forms.
The only way to programmatically suppress the message would be to rewrite enough of your application that the form was no longer insecure.