Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2007
    Posts
    241
    Plugin Contributions
    0

    Default Where could I have placed a JavaScript file??

    On one of my carts, I had a stupid script that was annoying users.

    I wanted to remove it, and thought I did, in the header.php file in the templates/common/ dir.

    I know that this is the header.php file that is loading, as when I change a comment it appears changed in the source when viewing the site.

    And, I did find the script, which I had embedded in the file, rather than as a stand-alone JS.

    Even so, I must have another file containing the same script elsewhere, as it is apparently still functioning.

    Where else could it be? I looked in footer.php. Not there.

    Looked in templates/jscript...not there.

    Confused....

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Where could I have placed a JavaScript file??

    Use Tools > Developers Toolkit to search for a distinctive snippet of code or comment that would be in the javascript. That will tell you where it is located.

  3. #3
    Join Date
    Oct 2007
    Posts
    241
    Plugin Contributions
    0

    Default Re: Where could I have placed a JavaScript file??

    Quote Originally Posted by gjh42 View Post
    Use Tools > Developers Toolkit to search for a distinctive snippet of code or comment that would be in the javascript. That will tell you where it is located.
    Thanks..

    I had tried this, without any success.

    No comments on that script (to keep it nondescript lol), and none of the code snippets could be found.

    I finally resolved the issue, using Developers Toolkit, when I remembered an earlier (testing) version of the script that was written completely differently, and I entered THAT code snippet, and there it was!


 

 

Similar Threads

  1. Replies: 3
    Last Post: 29 Jul 2010, 03:21 PM
  2. Replies: 3
    Last Post: 12 Sep 2009, 05:40 PM
  3. Where could this > have happened?
    By colinS) in forum General Questions
    Replies: 1
    Last Post: 2 Aug 2009, 12:57 PM
  4. Hello,have any one let me know where is the shop news file and about us file
    By gueston in forum Customization from the Admin
    Replies: 2
    Last Post: 30 May 2009, 07:34 AM
  5. Where Should Meta Elements Be Placed?
    By Donn in forum General Questions
    Replies: 5
    Last Post: 14 Feb 2009, 06:40 AM

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