Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8147967
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T14:32:06+00:00 2026-06-06T14:32:06+00:00

I have a PHP page that loads external content using other PHP files. I’m

  • 0

I have a PHP page that loads external content using other PHP files. I’m using include so it should be pretty simple. I had a scrollTo function (below) that I removed. However, ever since I did that when I reload the main page I can see in the URL that it is scrolling to every hash mark really quick, ending in the last section.

I really don’t know what script may be causing that. I used Chrome Elements but I don’t see anything.

I’ve been trying to figure this out for the past two hours so I really need another set of eyes to help me figure out where is this coming from. So please just take a quick look.

Here is the live test page that’s going crazy now.

Test page

Here is the JS code I had originally, and then removed

$().ready(function(){

    var currentAnchor1 = null;
    //Check if it has changes
    if(currentAnchor1 != document.location.hash){
        currentAnchor1 = document.location.hash;
        //if there is not anchor, the loads the default section
        if(!currentAnchor1){
            query1 = "page=1";
        }
        else
        {
            //Creates the  string callback. This converts the url URL/#main&id=2 in URL/?section=main&id=2
            var splits1 = currentAnchor1.substring(1).split('&');
            //Get the section
            var page1 = splits1[0];
            delete splits1[0];
            var query1 = "page=" + page1;       
        }

        //Send the petition 
        $.scrollTo( document.location.hash, 500, { easing:'elasout' });
    }
});
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T14:32:07+00:00Added an answer on June 6, 2026 at 2:32 pm

    This is coming from your PHP page. 4100.php is outputting inline JavaScript.

    You can’t use <!-- for block comments in JavaScript so your window.location calls are indeed still happening. (For multiline comments in JavaScript, surround the lines with /* and */ instead.)

    Line 2485:

    <script type="text/javascript">
    <!--
    window.location = "http://www.period3designs.com/tmss/l1/terminals/4100.php#4100errors"
    //-->
    </script>
    

    Line 4779:

            <script type="text/javascript">
    <!--
    window.location = "http://www.period3designs.com/tmss/l1/terminals/4100.php#4100guides"
    //-->
    

    Line 5319:

            <script type="text/javascript">
    <!--
    window.location = "http://www.period3designs.com/tmss/l1/terminals/4100.php#4100howto"
    //-->
    </script>
    

    Line 5393:

    <script type="text/javascript">
    <!--
    window.location = "http://www.period3designs.com/tmss/l1/terminals/4100.php#4100functions"
    //-->
    </script>
    

    Line 5467:

                            <script type="text/javascript">
    <!--
    window.location = "http://www.period3designs.com/tmss/l1/terminals/4100.php#4100menus"
    //-->
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The Idea I have a main PHP page that loads content in DIV's from
I have set up a page so that it loads content in with AJAX
On my page I have javascript that loads new content in <div id=content></div> from
I have this jQuery code that retrieves external content using ajax, without refereshing the
I have a /controller/controller.php file that runs this code: include('../model/model.php'); print page_load(); The model/model.php
I have a php page that contains a form with information I post to
I have a PHP page that returns a piece of HTML to set the
I have a PHP page that I run every minute through a CRON job.
I have a PHP page that does a couple of different things depending on
I have a php page that takes in a bunch of url parameters and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.