+ 3

Ajax not working in php why..?

Ajax functions are not working in php with mysql

18th May 2019, 4:20 PM
Kochu Virad Manesh
Kochu Virad Manesh - avatar
6 Antworten
+ 15
Do you have any errors in your browser's console during the execution of this code? I think this may be because of the CORS policy, which blocks the file protocol. It is better to use HTTP or HTTPS protocol for requests. Here's a lesson for you: https://www.w3schools.com/xml/dom_httprequest.asp
20th May 2019, 9:34 PM
Igor Makarsky
Igor Makarsky - avatar
+ 11
Please, describe your issue. Which ajax functions do not work?
19th May 2019, 4:03 PM
Igor Makarsky
Igor Makarsky - avatar
+ 2
Thank you very much
21st May 2019, 3:38 AM
Kochu Virad Manesh
Kochu Virad Manesh - avatar
+ 2
Am experiencing such a issue too, still battling as usual
30th Jun 2019, 3:13 PM
Decodeworms Olamilekan
Decodeworms Olamilekan - avatar
+ 1
function ajax_func() { x
19th May 2019, 5:22 PM
Kochu Virad Manesh
Kochu Virad Manesh - avatar
+ 1
function ajax_func() { xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechance = function() { if(xmlhttp.readyState == 4 && xmlhttp.status == 200){ document.getElementByld('get_processed_data').innerHTML = xmlhttp.responseText; } } xmlhttp.open('GET', 'buy_process.php', true ); xmlhttp.send(); }
19th May 2019, 5:24 PM
Kochu Virad Manesh
Kochu Virad Manesh - avatar