A single AJAX request can only talk to one URL, but you can create multiple AJAX requests for different URLs, and they will do their work ...
Read promises and defered. var ajax1 = $.ajax({ dataType: "json", url: "url", async: true, success: function(result) {} }); var ajax2 = $.ajax({ ...
Aug 16, 2015 · post multiple url in ajax. I have this code that post ajax form to database1.php and i now want it to post also to another page database2.php
Mar 8, 2016 · description; } function addRecentlyUpdatedRepo(repo) { var $item = $("<li>"); var $name = $("<a>").attr("href", repo.html_url).text(repo.name); $item.append($("< ...
How to Run Multiple AJAX Requests ... function sendMyAjax(URL_Dynamic_address){ $.ajax({ type: 'POST', url: URL_Dynamic_address, data: { answer_service: " ...
May 15, 2018 · You'd need to send another Ajax request. Post by: robin Morshed , Greenhorn. May 15, 2018 ...
Submit Form to Multiple URLs With Ajax ... It is possible to submit a form to two or more places with one click. One destination URL is in the form tag's action attribute ...
1. var fs = require('fs') · 2. var path = require('path') · 3. fs.readdir(process.argv[2], callback1); · 4. function callback1(err, list) { · 5. list.forEach(callback2);
People also ask
Can we pass two URL in Ajax?
How can I make two Ajax calls simultaneously?
Can we execute run multiple Ajax request simultaneously in jQuery if yes then how?
How do I redirect to another page after Ajax success?
index n:data n. },success: function(data) {. document.getElementById(id).innerHTML = data;. } }); it make multiple parameters in jQuery Ajax as POST or GET.
Oct 31, 2012 · `$.ajax()` (or it's short variants like `$.get()` or `$.post`) is usual way of making AJAX calls, it works great than you need to fetch one. var url ...