Posts

Showing posts with the label Web application

SharePoint 2010 - Access List / Library Data Across Web Applications

We can do this using jQuery.js and SPServices.js Only issue is that you will most likely be forced to receive a notification every time the page loads: "this page is accessing information that is not under its control" I found that although it's possible the solution was not ideal, but have not yet found an alternative.  However I thought I would provide it in case anyone else has a need for it. The code below will retrieve the list item information from the Page library at http://intranet.  CAML query retrieves the most recent 4 articles from the Page library and the last line appends the HTML statement to the page. The HTML statement that is created grabs the value of the FileRef Field and places it inside a div. ---------------------------------------------- $(document).ready(function() {   $().SPServices({     operation: "GetListItems",     async: false,     webURL: "http://intranet",     listName: "Pages", ...

SharePoint 2010 - CSS & JS Across Multiple Web Applications

An issue I came across the other day involved creating a web application with the look & feel as another web application on the SharePoint 2010 Farm. I decided to link all the CSS from the second Web Application to the first Web Application, which works fine for the majority of functions (background, colours, images, page width, etc). Here's what was failing for me, and the only workaround was to make a copy of the CSS on both Web Applications: Certain JQuery & Javascript files failed to render Custom Markup Styles in the Ribbon failed to appear Moral of the story, Don't point Master pages to another Web Applications CSS & JS files.  Make a copy of them on each Web App