Created
May 22, 2015 15:50
-
-
Save lilithlavender/6d34919530ee5755447d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function createReport(form) { | |
| var success_message; | |
| success_message="Your report will be emailed to you once complete."; | |
| document.getElementById('messageBox').style.color="#4f8a10"; | |
| document.getElementById('messageBox').style.backgroundColor="#dff2bf"; | |
| document.getElementById('messageBox').innerHTML=success_message; | |
| document.getElementById('messageBox').style.visibility="visible"; | |
| document.getElementById('kdgreportselection').innerHTML=""; | |
| document.getElementById('kdgreportselection').style.visibility="hidden"; | |
| $.post('report/KDGReport_createreport.php', $(form).serialize(), | |
| function(data) { | |
| for (index = 0, len = data.length; index < len; ++index) { | |
| console.log(data[index]); | |
| } | |
| }, "json"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment