Can I use jQuery Ajax in a SharePoint WebPart without having to worry about the same origin policy?
Posted
by mythicdawn
on Stack Overflow
See other posts from Stack Overflow
or by mythicdawn
Published on 2010-05-04T05:03:48Z
Indexed on
2010/05/04
5:08 UTC
Read the original article
Hit count: 295
Hi all,
My current project for work involves developing a SharePoint 2007 WebPart which will be deployed by our clients. To provide a better user experience, I am "simulating" AJAX via setting the SRC attirbute of an IFRAME to be the address of an HTTP handler. These handlers are deployed to the layouts directory in the 12 hive.
Although this works, I would prefer to use the $get() method of jQuery. Will this work reliably in my scenario or will I still be subject to the same origin policy? What about the scenario where the WebPart is being deployed to various places on a SharePoint farm? Will there be any problems with using $get() in that case?
Thank you!
© Stack Overflow or respective owner