Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

SharePoint 2013 REST api XHR vs jQuery

$
0
0

Hello guys,

I am trying to post a request with XHR and with jQuery. When i use jQuery it is working fine, but when i post same message with XHR i get an error:

error

Here are the requests:

jQuery:

jQuery example

XHR:

XHR example

I want to use the plain JavaScript because i do not want to load jQuery only for this post message.

I will appreciate any feedback,

Thank you in advance!

Best Regards,

Jordan





Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>