Hello! I know how to send ajax requests with the POST method, but I don’t know how to send with the GET method (i.e. I need to change everything in the address bar, and if I copy the link and send it to someone, then he could also go to this page). How to implement it and does it even make sense? Or are simple GET requests (without ajax ) much better?
- oneIf you need to completely replace the page with new content, then there is no sense in the Ajax. if you want to change some of the content (for example, which thread is dynamic tabs, filters, etc.), then Ajax pulls the changed content, and you change the URL in the browser via history api. By themselves, GET requests in this context have nothing to do with it. - teran
- The link to the ajax does not make sense; copy the link to the page from which the ajax is made. - Roman C
|