/    Sign up×
Community /Pin to ProfileBookmark

Anchors work but then jump back to top of page when done loading in firefox…

Hi all,
First off, I’d just like to introduce myself as i am new to the forums…
My name is Aleks and I am a web designer/developer and multimedia artist.

I am currently encountering a weird problem wherein anchors and javascript scrolling in my page don’t work properly.

I have a flash movie at the top of my page with menu options.

The links include php pages within my site, and anchors so that it drops down to that height when it loads…
which it does… but as soon as the page is finished loading, it jumps back to the top again!!!

I have also tried calling the links using Javascript’s scroll function to bring the user down to the appropriate height and the same thing happens…. I am totally baffled.

I thought maybe delaying the java until the page is loaded but my site is one of those that is always “transferring data” in the status bar…

I know the anchors work fine from the same link once the page is loaded, but thats not helpful with what I am trying to do…

Again, the effect is the same whether i use anchors or javascript scroll in firefox… it does work but when page is loaded it goes back to the top…. anchors don’t work in explorerer always, and javascript scroll (0,600) always works in explorer only.

If anyones had this before, any input on this annoying problem would be much appreciated…. ? 😡 ? ?

Thanks!
-aleks aka karmakat

to post a comment
HTML

3 Comments(s)

Copy linkTweet thisAlerts:
@johnevaMar 15.2006 — I wont be able to help ya but I know what the first thing the others will say is, URL would make things easyer at the min we carnt see the page or the coding so trying to fix faults is almost imposiable.

EDIT

OMG how rude of me I never said welcome to the forum.
Copy linkTweet thisAlerts:
@The_Little_GuyMar 15.2006 — what does your code look like?

[B]

Here is a little hint at this form[/B]


[I]If you are having problems with your code, people here usually like to look at your code to know what you are doing, and where your errors are. This will help with a faster response.[/I]

Welcome to the fourm
Copy linkTweet thisAlerts:
@karmakatauthorMar 16.2006 — Thanks for trying to help....

I have figured out the issue...

in a page that has flash communicating serverside to php that finds itself always "transferring data" in the status bar... it steals focus and pulls the browser back up to the top of the page where the flash movie is embedded even after the link with the anchor or javascript scrolls it down in firefox. This problem does not occur in IE or netscape.

Hope that if anyone has had this problem google will guide them here.

-Aleks aka karmakat
×

Success!

Help @karmakat spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.15,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...