Results 1 to 19 of 19

Thread: [RESOLVED] Jquery script file not found , problem only in Chrome

  1. #1

    Thread Starter
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,597

    Resolved [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?
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  2. #2
    PowerPoster kfcSmitty's Avatar
    Join Date
    May 2005
    Posts
    2,248

    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.

  3. #3

    Thread Starter
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,597

    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
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  4. #4

    Thread Starter
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,597

    Re: Jquery script file not found , problem only in Chrome

    Although the page loads now
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  5. #5
    Smooth Moperator techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,531

    Re: Jquery script file not found , problem only in Chrome

    pothole in the information superhighway.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  6. #6

    Thread Starter
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,597

    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
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  7. #7
    Frenzied Member tr333's Avatar
    Join Date
    Nov 2004
    Location
    /dev/st0
    Posts
    1,605

    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.
    CSS layout comes in to the 21st century with flexbox!
    Just another Perl hacker,

  8. #8

    Thread Starter
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,597

    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.
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  9. #9

    Thread Starter
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,597

    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
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  10. #10

    Thread Starter
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,597

    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....
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  11. #11
    Frenzied Member tr333's Avatar
    Join Date
    Nov 2004
    Location
    /dev/st0
    Posts
    1,605

    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?
    CSS layout comes in to the 21st century with flexbox!
    Just another Perl hacker,

  12. #12

    Thread Starter
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,597

    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.
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  13. #13
    Frenzied Member tr333's Avatar
    Join Date
    Nov 2004
    Location
    /dev/st0
    Posts
    1,605

    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.
    CSS layout comes in to the 21st century with flexbox!
    Just another Perl hacker,

  14. #14

    Thread Starter
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,597

    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.
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  15. #15
    Frenzied Member tr333's Avatar
    Join Date
    Nov 2004
    Location
    /dev/st0
    Posts
    1,605

    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.
    CSS layout comes in to the 21st century with flexbox!
    Just another Perl hacker,

  16. #16

    Thread Starter
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,597

    Re: [RESOLVED] Jquery script file not found , problem only in Chrome

    Will test at home at a calm environment...
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  17. #17

    Thread Starter
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,597

    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?
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  18. #18
    Frenzied Member tr333's Avatar
    Join Date
    Nov 2004
    Location
    /dev/st0
    Posts
    1,605

    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?
    CSS layout comes in to the 21st century with flexbox!
    Just another Perl hacker,

  19. #19

    Thread Starter
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,597

    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
  •  



Click Here to Expand Forum to Full Width