Skip to content

Tag: ajax

Ajax call dynamically loaded rows

I have dynamically loaded(based on search result) content. (see the following) (stackoverflow is not allowing me to embed the image as I am still new) https://i.imgur.com/WVVc0wM.png Code for the above; I want to pass sid, classID to a seperate php file called add-student.php The following is add-student.php …

how to detect a server error into a jquery ajax call?

I use Jquery to parse an json from url: the code is like this: } everything works fine, but if the server is not reachable I’m not able to detect it: I tried to do something in error: function, but seems that the code in error is fired only if the json has an error have you got some ideas?