Pages

Saturday, 20 July 2013

Internet Explorer error: ”Only secure content is displayed -show all content” in SharePoint site when use scripting-Restrict Scripting to work-Resolved-Very Easy

I got the scenario that I have to hide some buttons in Survey which I have got successfully done using some JavaScript code inserted into CEWP(Content editor web part) and I have published my site over internet in HTTPS.
What I got is that when end user were trying to access the site in Internet Explorer having of course different setting than mine they got the error below, But the main scary thing for me is that script wont work until user click on "Show all content".

After digging on internet and after a whole week I got the solution from Internet Explorer itself..:)
what I found is that we can check where the problem held using Internet Explorer console view which opens by pressing F12. So what I did I pressed F12 and click on "console tab", it will show the errors when you refresh the page.so I did refresh on next step.


woalla...what I have found that I have used some external URL's for "jquery.min.js" which causes problems as it is untrusted and my site is running over ssl or https.


So I open my CEWP(Content Editor Web Part) and found the URL, But now what how can I run the script without the reference.
I have got the solution by simply download the file and upload it to my SharePoint site itself makes it trustable. So I download the file and upload it in site assets library and Replacing the path with the untrusted one.


After replacing we have got the below code:


After the resolution we did...we finally get rid from the irritating ”Only secure content is displayed -show all content” error and all my script ran without any problem...


Happy SharePointing...have a Nyc Day...:p

No comments:

Post a Comment