-
Sep 24th, 2014, 05:47 AM
#1
[RESOLVED] Jquery script file not found , problem only in Chrome
I was testing a web site.It works fine in IE and Firefox.
In Chrome console i get 404 Not Found query-1.10.2.min.map
/js
WHAT THE FF...Firefox is going on?!
I did that last week and i did a refresh and Chrome worked too, so i figured, some IIS lag in that time but now...
Anyhow i will do a server reset when i get home but any advice to check when i get my hands on the actual machine + code?
ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·
-
Sep 24th, 2014, 07:11 AM
#2
Re: Jquery script file not found , problem only in Chrome
No idea what it could be off the top of my head (although may be a Chrome sandboxing issue). If you post the resulting markup with the script tag, it may point someone in the right direction.
-
Sep 24th, 2014, 07:16 AM
#3
Re: Jquery script file not found , problem only in Chrome
Code:
</title>
<script src="js/jquery-1.10.2.min.js" type="text/javascript"></script>
<script src="js/bootstrap-transition.js" type="text/javascript"></script>
<script src="js/bootstrap-carousel.js" type="text/javascript"></script>
<script src="js/bootstrap-alert.js" type="text/javascript"></script>
<script src="js/bootstrap-modal.js" type="text/javascript"></script>
<script src="js/bootstrap-dropdown.js" type="text/javascript"></script>
<script src="js/bootstrap-scrollspy.js" type="text/javascript"></script>
<script src="js/bootstrap-tab.js" type="text/javascript"></script>
<script src="js/bootstrap-tooltip.js" type="text/javascript"></script>
<script src="js/bootstrap-popover.js" type="text/javascript"></script>
<script src="js/bootstrap-button.js" type="text/javascript"></script>
<script src="js/bootstrap-collapse.js" type="text/javascript"></script>
<script src="js/bootstrap-typeahead.js" type="text/javascript"></script>
<script src="js/jquery-ui-1.8.18.custom.min.js" type="text/javascript"></script>
<script src="js/jquery.smooth-scroll.min.js" type="text/javascript"></script>
<script src="js/lightbox.js" type="text/javascript"></script>
<script src="js/modernizr.custom.js" type="text/javascript"></script>
<script src="js/lightbox-2.6.min.js" type="text/javascript"></script>
<script src="javascript/homejs.js" type="text/javascript"></script>
<meta charset="utf-8" content="text/html;" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link href="css/bootstrap.css" rel="stylesheet" type="text/css" />
<link href="css/bootstrap-responsive.css" rel="stylesheet" type="text/css" />
<!--[if lt IE 9]><script src="js/html5.js"></script><![endif]-->
<link href='http://fonts.googleapis.com/css?family=Lato:300' rel='stylesheet' type='text/css' />
<link href="css/lightbox.css" rel="stylesheet" type="text/css" />
<link href="css/screen.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="css/reset.css" type="text/css" media="all" />
<link rel="stylesheet" href="css/layout.css" type="text/css" media="all" />
<link rel="stylesheet" href="css/style.css" type="text/css" media="all" />
<script type="text/javascript">
$(document).ready(function() { ...etc
ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·
-
Sep 24th, 2014, 07:27 AM
#4
Re: Jquery script file not found , problem only in Chrome
Although the page loads now
ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·
-
Sep 24th, 2014, 07:39 AM
#5
Re: Jquery script file not found , problem only in Chrome
pothole in the information superhighway.
-tg
-
Sep 24th, 2014, 06:19 PM
#6
Re: Jquery script file not found , problem only in Chrome
Lol, no it was just a script for jquerysexysupergirls.js that i left out :P
Actually i copy pasted wrong and thus the pothole.
P.S. That is only the script declarations. The JS code is a full working web site
ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·
-
Sep 24th, 2014, 08:30 PM
#7
Re: Jquery script file not found , problem only in Chrome
Your 404 error is related to Javascript Source Maps. You're using an old version of jQuery, so it will contain a line referencing the source .map file. If you need to use that version of jQuery, you can safely delete the sourcemap line from jquery-1.10.2.min.js. Otherwise, just upgrade to the latest 1.11.1 or 2.1.1 which have removed that source map line from the minified source file.
If you really want to use source maps, you can download the .map file and include the appropriate comment in your .min.js file.
-
Sep 25th, 2014, 01:26 AM
#8
Re: Jquery script file not found , problem only in Chrome
Since i don't have time to look at this right now, i will resolve it and come back if i have issues.
Thanks.
ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·
-
Nov 8th, 2014, 11:32 AM
#9
Re: [RESOLVED] Jquery script file not found , problem only in Chrome
So i had a look at this. Deleted the line that says about source map and still nothing.
I also get this:
Post -- 404 (Not Found) jquery-1.10.2.min.js:6
send jquery-1.10.2.min.js:6x.extend.ajax jquery-1.10.2.min.js:6newsld news.js:36(anonymous function) news.aspx:66c jquery-1.10.2.min.js:4p.fireWith jquery-1.10.2.min.js:4x.extend.ready jquery-1.10.2.min.js:4q
ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·
-
Nov 8th, 2014, 11:52 AM
#10
Re: [RESOLVED] Jquery script file not found , problem only in Chrome
Ok pinpointed the issue. When i load the site without "www" in front, it complains with 404, if i put www.thesite it will run fine.
I'm thinking of a way to fix that in chrome....
ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·
-
Nov 9th, 2014, 05:31 PM
#11
Re: [RESOLVED] Jquery script file not found , problem only in Chrome
Are you getting the 404 on the .min.js file or the .min.map file? The latest versions of jQuery (2.x and 1.x) don't include the sourceMap line, so I'm guessing it's the .min.js file? No reason why it shouldn't work without the www, unless the non-www domain isn't actually pointing to the server hosting that file?
-
Nov 10th, 2014, 05:48 PM
#12
Re: [RESOLVED] Jquery script file not found , problem only in Chrome
jquery-1.10.2.min.js:6
Shoudl have to look at the IIS and the domain creation to see if i made a doo doo but it doubt it.
Ohh, just recalled that i am not controlling the domain, so i can't look at that unless i go to the company (but that is not very likely since i work at the same hours as they do)
Last edited by sapator; Nov 10th, 2014 at 05:51 PM.
ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·
-
Nov 11th, 2014, 12:42 AM
#13
Re: [RESOLVED] Jquery script file not found , problem only in Chrome
Can you put the entire url for that file into the address bar and view the file directly in the browser? Can't see any reason why this would only happen in Chrome but not other browsers. If it's a 404 error, I can only guess that either the URL is wrong or the file is in the wrong location on the webserver.
-
Nov 11th, 2014, 07:11 AM
#14
Re: [RESOLVED] Jquery script file not found , problem only in Chrome
Nop i just say that it is happening to every browser. I didn't notice since firefox was auto inserting the "www".
So it's global mistake.
ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·
-
Nov 11th, 2014, 05:15 PM
#15
Re: [RESOLVED] Jquery script file not found , problem only in Chrome
In that case I would check if you can navigate to the full file url in a web browser. Either your url on the page is incorrect, or your file is not at that location on the webserver.
-
Nov 12th, 2014, 06:00 AM
#16
Re: [RESOLVED] Jquery script file not found , problem only in Chrome
Will test at home at a calm environment...
ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·
-
Nov 13th, 2014, 06:27 PM
#17
Re: [RESOLVED] Jquery script file not found , problem only in Chrome
File in correct path.
Maybe it's an wcf web.config issues?
I have this one:
<identity>
<dns value="localhost" />
</identity>
Is that ok?
ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·
-
Nov 13th, 2014, 06:35 PM
#18
Re: [RESOLVED] Jquery script file not found , problem only in Chrome
Never used WCF so I can't help on that part. Have you checked the IIS log files?
-
Nov 14th, 2014, 05:24 AM
#19
Re: [RESOLVED] Jquery script file not found , problem only in Chrome
Nop. Tried that at 1 in the morning as that's where i found some time. I would be able to take a better look at the weekend(hopefully).
Thanks.
ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|