Solved

SharePoint and Javascript 404 Error - Failed to Load Resource

Posted on 2016-09-14
6
85 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
ID: 41798303
Are those resources in another site collection or outside SharePoint entirely?
0
 

Author Comment

by:Josh Gier
ID: 41798322
Resources are in the same site collection.
0
 
LVL 16

Accepted Solution

by:
Walter Curtis earned 500 total points
ID: 41798458
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
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 31

Expert Comment

by:Jamie McAllister MVP
ID: 41798513
I second SneekCo's post.
0
 

Author Closing Comment

by:Josh Gier
ID: 41805211
Good suggestion.  Resource was no longer within the pointed reference.  Changed reference pointers to changed location.
0
 
LVL 16

Expert Comment

by:Walter Curtis
ID: 41805328
Thanks, glad you got it working!
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…

777 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