I would like a mail request to be sent after changing a specific text input field using javascript.
So here is my current code:
<input name="message" onchange="$.ajax({type: \"POST\", url: \"http://example.com/example.php\", data: \"message=\" + document.getElementsByName(\"message\")[0].value});" />
Now it works with a normal connection, but does not work on a secure connection (SSL). I mean, the page is protected, but the request is sent to the unprotected page.
Is there a solution?
source
share