How to tell whether AJAX give JSON response not a html page in php?
sanjay@srvmedia
0
Newbie Poster
Recommended Answers
Jump to PostWhat do you mean? Can you post code?
if you want ajax to send json you need to tell ajax function to send json, if you want php to send json you tell php
json_encode();
or you can usejson_decode();
with jquery its pretty easy.
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.