Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2008
    Posts
    67
    Plugin Contributions
    0

    Default strange Javascript behaviour

    I'm finding that the loading of javascript .js files can sometimes be hit or miss. I have had a few .js files that have not functioned properly when using the jscript_{filename}.js naming convention, but when the exact same script is hard coded into the html_header.php, it works just fine? In both instances the script loads into the document, but the .js files can be hit or miss as far as functionality. I'm sure there could be user error involved, but it seems strange when the .js file is copied and pasted to the html_header.php file it works perfect.

    Any ideas why this would be happening or has anybody experienced this?

    Will hard coding the scripts cause any issues, other than upgrade hassles? I would much rather sort this out and be using the .js files.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: strange Javascript behaviour

    If the files are placed in the prescribed folders and named appropriately, I don't see why they would be "hit or miss" about getting output to the browser properly.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Strange Behaviour
    By rogers in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 4 Apr 2008, 11:57 AM
  2. strange cursor behaviour in IE
    By niekohle67 in forum General Questions
    Replies: 5
    Last Post: 20 Aug 2007, 07:59 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR