Skip to content

Tag: ajax

JQuery Ajax loop delay

i am trying to make a delay in my ajax data so the loop become a little bit slower ! and here is my code here is the loop Answer Using recursion, you could put in a function sendToServer and pass through the array lines, starting index 0. The function will run from 0 to lines.length. This way you won’t

Fetch data from database in php through AJAX,

index.php First I create a connection with the database, I design table through <td> and <tr>, I create a variable $action to get data through AJAX. I use mysqli_fetch_array to fetch data from the database. Add.html view.js I fetch data from the database. I use the show_all() function after that I…

Get large amount of data using ajax

I have the following ajax code which am using to get the user details from the server. Am generating the html table from the server side and return the structure as a string. This works fine but i get undefined when user records are too many. What is limitation of data that can be passed in ajax ? Is there

Vue js load modal content with ajax

I’m using vue js with laravel, In my page i have 13 modals, I thing it’s not a good idea to insert 13 modals in the same page so i put this in my blade : And in my file.js i have this : Just for example here i have two modals ‘StatusModal’ and ‘UserModal’ and i load them in