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
attribute 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?
Would the Same Origin Policy prevent me from invoking an HTTP handler using $get
?