Questions tagged [page-jump]

A page jump refers to the sudden change in the scroll position of the document that's loaded in a browser.

A page jump refers to the sudden change in the scroll position of the document that's loaded in a browser.

When done intentionally, the url fragment will be used to scroll an element on the page into view by matching their id or name attribute; the latter only applies to another anchor.

It can also be caused by bugs or otherwise unexpected behavior in either the browser or ui libraries, such as .

86 questions
38
votes
6 answers

How to create an anchor and redirect to this specific anchor in Ruby on Rails

I'm trying to create unique anchors for every comment on my blog so a person can take the url of an anchor and paste it in their browser, which will automatically load the page and scroll down to the point in the page where their comment starts.…
Damian
  • 663
  • 1
  • 9
  • 12
17
votes
3 answers

page jump from div to an anchor

I was trying to make a div jump from FAQ to a div id and could success easily, but since I have a fixed link to jump to, I can't seem to find a way how to do that. Meaning, I want a div or a href link to jump to a url in the same…
Digital site
  • 4,431
  • 12
  • 48
  • 72
9
votes
2 answers

How to use anchor tag to scroll within div, without autoscrolling entire page?

I would like to use anchor tags to scroll within a div on the webpage. However, when I click on the anchor tag, the entire page jumps to the anchor tag within the div. The content within the div should scroll, without the body of the webpage…
AxeChops
  • 91
  • 1
  • 1
  • 5
4
votes
2 answers

Prevent page jump on Button click? ReactJS

I have a ShowcaseMovie component which fetches data on componentDidMount() and sets it to state. The component renders Card components to display the data as well as four button elements upcoming, top_rated, popular and now_playing which allow the…
Kyle Lambert
  • 369
  • 2
  • 13
3
votes
1 answer

Jump to specific points in a HTML page using Page up and down

I have a large HTML page consisting of a long list of tables. Each table is about as large as the screen, but varies slightly in size. I'd like to enable the user to use the PgUp and PgDn keys on the keyboard to quickly browse through the tables. …
Alfe
  • 56,346
  • 20
  • 107
  • 159
3
votes
2 answers

How to go to anchor tag in scrollable div without having the whole browser jump down?

I'm building a simple glossary widget as part of a larger project for a client. The content of the glossary is enclosed within a scrollable div (overflow:auto). Each letter has an anchor tag associated with it (#a, #b, #c, etc). Above the scrollable…
Dave
  • 33
  • 1
  • 4
2
votes
1 answer

Page jump on span.click()

I have this weird thing happening: when clicking spans in the navigation the content has to switch. Everything works except that when you click a span the page jumps to it (the span will be right at the top then). All I find about page jumps is…
user1021052
  • 45
  • 1
  • 1
  • 5
2
votes
1 answer

Vim jump to a file using ctr-w gF with a @ in the path like dirwith@funnyname/path:34

My stack trace errors in ruby on rails look like below. I have happily used ctr-w gF to jump to the file and go to the line number following the file for a while. However I started using RVM and gem_sets, and this puts a @ symbol in the dir which…
pixelearth
  • 13,674
  • 10
  • 62
  • 110
2
votes
2 answers

Adding scroll animation to page jump URL in navbar

I'm trying to make a smooth scroll when I press a link (in this case Contact us) to an anchor tag (#contact_us) present in a different section but on the same page. The issue is that there is no smooth scroll whatsoever, it just immediately sends me…
Vedo
  • 976
  • 4
  • 21
2
votes
1 answer

jQuery UI Dialog cause page jump on open & close on ASP.NET

I have an ASP.NET C# page, with image thumbnails in it. I created a script that opens a jQuery UI Dialog on each hover on a thumbnail that shows me the thumbnail in larger size in a dialog view, and when I hover out - dialog closes. My little…
geevee
  • 5,411
  • 5
  • 30
  • 48
2
votes
1 answer

Form Validation error: relative jump and sticky header

On one of my pages, I have a web form and a sticky header. When a user tries to submit this form using a modern-ish browser but has not filled in the required fields, an error balloon is displayed (as expected). The problem is the sticky header,…
DMKE
  • 4,553
  • 1
  • 31
  • 50
2
votes
1 answer

jQuery page jumps to top before performing the animation

I'm trying to make a slide up animation for my website.The core functionality is there but I have the problem, that whenever I click on one element (when the page is not on top) the page jumps to top and back and then makes the animation as…
chris115379
  • 312
  • 3
  • 13
2
votes
1 answer

How can I control jump-to links in a sticky nav?

I have a sticky nav that takes up about 80px worth of space at the top of the browser window when it catches. Part of the navigation contains a jump-to-section nav that takes the user to a section on the page that correlates with the link in the nav…
Ben Tinsley
  • 179
  • 1
  • 12
2
votes
3 answers

Javascript anchor target scrollTo top don't work

Information I use target to change some CSS. That means I need to behaviour of target to continue to work. preventDefault might not be an option? Problem I expected the window.scrollTo(0, 0); would work to make the page jump to the top. That did not…
Jens Törnell
  • 23,180
  • 45
  • 124
  • 206
2
votes
1 answer

What is relative jump?

Why it is used to hook and redirect functions? Like this: procedure RedirectProcedure(OldAddress, NewAddress: Pointer); var NewCode: TInstruction; begin NewCode.Opcode := $E9; //relative jump NewCode.Offset :=…
EProgrammerNotFound
  • 2,403
  • 4
  • 28
  • 59
1
2 3 4 5 6