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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T11:35:48+00:00 2026-05-29T11:35:48+00:00

I have a JQuery UI dialog with a link in it. When the link

  • 0

I have a JQuery UI dialog with a link in it. When the link is clicked, the dialog should close then move the screen/client window down the to footer div that contains contact details.

My Problem: The screen never moves to where I tell it to, it just stays where it is. The dialog closes correctly(so I know the javascript function is being called) but the client area doesn’t scroll-down/move/switch to the footer element. Information: the footer is at the base of the page & the page(body element) is about 2000px high.

What am I doing wrong & how can I get the screen to move the a certain element?

function moveToFooter()
{
    $("body").scrollTop($("#footer").position().left+$("#footer").offset().left, $("#footer").position().top+$("#footer").offset().top);
    // Just a simple test to move the screen anywhere doesn't work either:
    $("body").scrollTop(300,2000);
}
  • 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-05-29T11:35:49+00:00Added an answer on May 29, 2026 at 11:35 am

    scrollTop only takes one argument, the horizontal position. You’re giving it two.

    Also, your adding the CSS position to the offset position of the footer. That doesn’t make any sense. For absolutely positioned elements, it might make a little sense, but not much.

    So, the correct code should be

    function moveToFooter() {
        $("body").scrollTop($("#footer").offset().top);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a jQuery UI Dialog that gets displayed when specific elements are clicked.
I have a jquery dialog box that opens by means of a link. I
I have a link to delete action using Jquery dialog confirm message. Clicking on
I have a jQuery dialog defined as follows <div id=emaildialog title=Contact Us> <!-- Html.RenderPartial(ContactUs);
I have a jQuery UI Dialog working great on my ASP.NET page: jQuery(function() {
I have a problem with the jquery-ui dialog box . The problem is that
I have a modal dialog plugin written in jquery, that binds to the click
I have a problem with Jquery UI modal dialogs. I have modal dialog (dialogA),
I am using SimpleModal in jQuery, and I have one confirm dialog. If the
i have this code that should create a dialog with the page google inside

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.