I want to change column width, and I use this script like in answer:

Adjust column width in sharepoint 2013

It helps, but every time I click this site or refresh it, I've got attention message:

enter image description here

How can I do it more clever? Is there any other simply script?

I need to change width of this column:

enter image description here

Thank you


That alert is coming from http protocol and your site is being loaded securely using https protocol. That is why the browser is blocking the content loading of that jQuery library file. You need to always click on that alert button or else you can place that jQuery library in your Style Library folder and then change the absolute reference in your code.

As an alternative you can load jQuery library securely with following URL:



Try using local reference for JS instead of cdn reference in following line:

  • how can I do it? – David Repka May 14 '15 at 10:48
  • Download jquery,min,js and upload it to style library to your SharePoint site. Now copy the path to the JS file stored in style library and paste in in src="" – 404 May 14 '15 at 10:49

Since your are using OOB list page which is app part in SP2013 and whatever the script you added is in different web or app part, all calls are over cross domain calls for the respective page. So if you want to get rid of this situtaion you have to change all link address from http protocal to https protocal.

$(function () {
if (window.location.protocol == "https:") {
    $("a[href*='http']").each(function (i) {
        var nLink = $(this).attr('href').replace('http:', 'https:');
        $(this).attr('href', nLink);

or simple make your src as "https" use src="https://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"


Best way to fix it is delete http or https this way:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.