Category : ajax

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

When go to this route : talent/lists , I get the following error message Missing required parameters for [Route: talent.ajax] [URI: {_locale}/{role}/talent/ajax]. (View: C:laragonwwwiccn-internModulesProfileResourcesviewsbackOfficetalentlists.blade.php) My code goes like this AppConst: const ROUTE_TALENT_AJAX = ‘talent.ajax’; Routes: Route::group([‘prefix’ => ‘{role}/talent’, ‘middleware’ => [ ‘role:administrator’ ]], function() { Route::match([‘get’, ‘post’, ‘patch’], ‘ajax’, ‘[email protected]_ajax_dt_talents’)->name( AppConst::ROUTE_TALENT_AJAX ); Route::get(‘lists’, ‘[email protected]’)->name(‘talent.list’); View: ..

Read more