• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 215
  • Last Modified:

SharePoint and Javascript 404 Error - Failed to Load Resource

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
Josh Gier
Asked:
Josh Gier
  • 2
  • 2
  • 2
1 Solution
 
Jamie McAllister MVPArchitectCommented:
Are those resources in another site collection or outside SharePoint entirely?
0
 
Josh GierProgrammer Analyst IIIAuthor Commented:
Resources are in the same site collection.
0
 
Walter CurtisSharePoint AEDCommented:
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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
Jamie McAllister MVPArchitectCommented:
I second SneekCo's post.
0
 
Josh GierProgrammer Analyst IIIAuthor Commented:
Good suggestion.  Resource was no longer within the pointed reference.  Changed reference pointers to changed location.
0
 
Walter CurtisSharePoint AEDCommented:
Thanks, glad you got it working!
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

  • 2
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now