Category : javascript

I tried researching a lot before posting here. There are two files login.php and login-validation.php Login.php file contains code including login form and jQuery AJAX script to call login.validation.php — Code of login.php — $(document).ready(function() { $(‘#login-form’).submit(function(e) { e.preventDefault(); mobile_no = $(‘#mobile_no’).val(); upassword = $(‘#upassword’).val(); console.log(mobile_no, upassword); $.ajax({ type: "POST", url: "server/login-validation.php", data: { Mobile_no: ..

Read more

I have below javascript which is basically show hide div after timer end <script type="text/javascript"> function progress(timeleft, timetotal, $element) { var x = document.getElementById("progressBar"); var y = document.getElementById("success-bar"); var z= document.getElementById("error-bar"); var foobarElement = document.getElementById(‘foobar’); foobarElement.style.backgroundImage = ”; //Removing background gear img from iframe x.style.display = "block"; var progressBarWidth = timeleft * $element.width() / timetotal; ..

Read more

I am using Razor pay as a payment gatway all the thing is working fine but i want to store the success response to the database which i am getting after every successfull transaction. <script> var options = { “key”: “xxxxxxx”, // Enter the Key ID generated from the Dashboard “amount”: “<?php echo $amountsum;?>”, “currency”: ..

Read more

I was able to create a google spreadsheet (with ideas found on here) with these columns: product | size | uid where uid is random five number generated ID (=RANDBETWEEN(10000;99999)). I then used the following apps script: // original from: http://mashe.hawksey.info/2014/07/google-sheets-as-a-database-insert-with-apps-script-using-postget-methods-with-ajax-example/ // original gist: https://gist.github.com/willpatera/ee41ae374d3c9839c2d6 function doGet(e){ return handleResponse(e); } // Enter sheet name where ..

Read more