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 8156719
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T17:02:54+00:00 2026-06-06T17:02:54+00:00

I have developed some script for detecting when user scroll down a page, and

  • 0

I have developed some script for detecting when user scroll down a page, and it works on simple script and doesn’t work now if I use CodeIgniter. I have put the library into root directory of project. There is some code from view:

UPDATED: full code of the page

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; 
              charset=UTF-8" />
        <link href="/bootstrap/css/bootstrap.css" rel="stylesheet">
        <link href="/bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
        <style type="text/css">
            body {
                padding-top: 60px;
                padding-bottom: 40px;
            }
            .sidebar-nav {
                padding: 9px 0;
            }
        </style>
        <script type="text/javascript" src="jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="jquery.jeditable.js"></script>
        <script type="text/javascript" charset="utf-8"> 
        $(document).ready(function()
                {
            $(window).scroll(function()
                        {
                if  ($(window).scrollTop() == $(document).height() - $(window).height())
                                {
                                    alert('1');
                }
            }); 
        }); 
    </script>
    </head>
    <body>
        <div class="navbar navbar-fixed-top">
            <div class="navbar-inner">
                <div class="container-fluid">
                    <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </a>
                    <a class="brand" href="#">Translation project</a>
                    <div class="btn-group pull-right">
                        <a class="btn btn-primary" href="<?=$fb_url;?>">
                            <i class="icon-user"></i>
                            <?=$user_title;?>
                        </a>
                        <ul class="dropdown-menu">
                            <li><a href="#">Profile</a></li>
                            <li class="divider"></li>
                            <li><a href="#">Sign Out</a></li>
                        </ul>
                    </div>
                    <div class="nav-collapse">
                        <ul class="nav">
                            <li><a href="<?php echo $base_url.'view_testing' ?>">Home</a></li>
                            <li><a href="#about">About</a></li>
                            <li><a href="#contact">Contact</a></li>
                        </ul>
                    </div><!--/.nav-collapse -->
                </div>
            </div>
        </div>
        <div class="container-fluid">
            <div class="row-fluid">
                <div class="span3">
                    <div class="well sidebar-nav">
                        <ul class="nav nav-list">
                            <li class="nav-header">Languages</li>
                            <?php
                                foreach ($languages as $language)
                                {
                                    $url=$base_url.'language_testing/'.$language['language_code'];
                                    if ($language['language_value']==$current_language['language_value'])
                                    {
                                        echo "<li class='active'><a href='{$url}'>".$language['language_value']." (".
                                            $language['translated']."/".$total_labels_number.")</a></li>";
                                    }
                                    else
                                    {
                                        echo "<li><a href='{$url}'>".$language['language_value']." (".
                                            $language['translated']."/".$total_labels_number.")</a></li>";
                                    }
                                }
                            ?>
                        </ul>
                    </div>
                </div><!--/span-->
                <div class="span9">
                    <div class="hero-unit-little">
                        <h2>
                            <?php
                                echo 'Translations for '.$current_language['language_value'].' ('.
                                    $current_language['translated'].'/'.$total_labels_number.')';
                            ?>
                        </h2>
                    </div>
                        <table>
                            <tbody>
                                <?php
                                    foreach ($records as $record) {
                                        echo "<tr style='border-bottom: 1px dotted silver;'>";
                                        echo "<td width='500'>" . strip_tags($record['language_value']) . "</td>";
                                        if ($record['approved_translation'])
                                        {
                                            echo "<td class ='output' id='".$record['index']."' style='vertical-align:middle' width='200'>" . "<b>".$record['approved_translation']['language_value'].
                                                "</b>"."</td>";
                                        }
                                        else
                                        {
                                            echo "<td class = 'output' id='".$record['index']."' style='vertical-align:middle' width='200'>" . "<b>Not translated</b>" . "</td>";   
                                        }                   
                                        echo '</tr>';
                                    }
                                ?>
                            </tbody>
                        </table>
                        <br/>                  
                </div>
            </div>
    </body>
</html>

But now it doesn’t respond to scrolling. Please, tell me why?

  • 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-06T17:02:56+00:00Added an answer on June 6, 2026 at 5:02 pm

    I’d try inserting this before even your $(document).ready():

    !window.jQuery && alert('jQuery NOT loaded!');
    

    If you see this dialog, it means the jQuery library failed to load (the path doesn’t look correct to me), so you’ll need to fix the path. EDIT: If it’s in the site root, just add a forward slash – / – to the beginning of the current URL.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have developed some applications for blind which makes them to use basic mobile
I have developed a script to calculate how many times some one has tried
I have developed a gem which implements some algorithms that we'll use within a
I have some code written in PHP, but I have also developed a script
I -with some stackoverflow users help- have developed this tooltip script using Jquery and
I have developed an application using postgresql and it works well. Now I need
I have some Perl code (for performance analysis) first developed under Linux which now
I have developed some sms application and I can't figure out how to solve
We are developing a customized installer using Wix and Wpf. We have developed some
I have developed a site, which has some static pages. Like explore, home, feedback.

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.