Solved

SharePoint and Javascript 404 Error - Failed to Load Resource

Posted on 2016-09-14
6
51 Views
Last Modified: 2016-09-19
Hi Everyone,

Thanks in advance for all the support and great input people provide on this site.  Big fan.

Question, I'm receiving 404 errors on my sharepoint site.  We have custom download/submit status buttons and they entail javascript/jquery/simplemodal objects.

   <link href="***Full path***/css/confirms.css" rel="Stylesheet" type="text/css"/>
   <link href="***Full path***/css/FN2CVRTheme.css" rel="Stylesheet" type="text/css"/>
   <link href="***Full path***/css/simplemodal.css" rel="Stylesheet" type="text/css"/>
   <script src="***Full path***/js/jquery-1.4.2.min.js"></script>
   <script src="***Full path***/js/jquery.highlight.js" type="text/javascript"></script>
   <script src="***Full path***/js/jquery.simplemodal-1.3.5.js" type="text/javascript"></script>
   
<script type="text/javascript">

$(document).ready(function()
{
$("table#MSO_ContentTable > tbody > tr:first-child > td.ms-bodyareaframe > table > tbody > tr:nth-child(2) >  td:nth-child(2)> table > tbody > tr:nth-child(2) >  td:first-child > table").width('300');
document.title="Document Name";
jQuery.noConflict();
$("#status").click(function()
{
var ccnsel = $("[id*='DropDownList_CCNs']").val();
       var src = "Web Part URL";
       $.modal('<iframe src="' +src+ '" height="800" width="700" style="border:0">');
});
});

Everything is referenced to a full url path and is available.  But I'm receiving theses errors within the debugger and my buttons are non-responsive or do not show up.  Any thoughts?
0
Comment
Question by:Josh Gier
  • 2
  • 2
  • 2
6 Comments
 
LVL 31

Expert Comment

by:Jamie McAllister MVP
Comment Utility
Are those resources in another site collection or outside SharePoint entirely?
0
 

Author Comment

by:Josh Gier
Comment Utility
Resources are in the same site collection.
0
 
LVL 14

Accepted Solution

by:
SneekCo earned 500 total points
Comment Utility
Being as the resources are in the site collection, make sure they are checked in.

Temporarily for troubleshooting you may want to source to a CDN to see if your page works.

Good luck...
1
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 31

Expert Comment

by:Jamie McAllister MVP
Comment Utility
I second SneekCo's post.
0
 

Author Closing Comment

by:Josh Gier
Comment Utility
Good suggestion.  Resource was no longer within the pointed reference.  Changed reference pointers to changed location.
0
 
LVL 14

Expert Comment

by:SneekCo
Comment Utility
Thanks, glad you got it working!
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now