Posted in Code Snippets, Javascript

Workaround for failed loading of images

Images that depend on server-side loading fails sometimes due to multiple reasons, like image is not present, location might be wrong, browser fails to load or process the image. All these returns 404 as HTTP status. This breaks the image placeholder too. Using JQuery, the broken image can be replaced with the error placeholder image with this simple JQuery snippet:

Continue reading “Workaround for failed loading of images”

Posted in Tools

SharePoint: Person or Group Field Properties

You can get user details from a person or group field in SharePoint using REST API. You can expand the Author field (Audit field) to know the details of who created the list item. Following are the properties available in SharePoint to expand:

Continue reading “SharePoint: Person or Group Field Properties”