Closed Bug 443728 Opened 16 years ago Closed 16 years ago

url generated with anchor does not work in FF but does work in IE

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: pkattau, Unassigned)

References

()

Details

Attachments

(3 files, 1 obsolete file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.15) Gecko/20080623 Firefox/2.0.0.15
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.15) Gecko/20080623 Firefox/2.0.0.15

Hi, I have a ruby on rails app that generates a link with an anchor(http://localhost:3000/photos?thumb_page=3#thumbanchor) in FF when the user clicks on the up or down arrow which generates the above link the page is refreshed and the user is sent to the top of the page instead of the anchor location. In IE 6 it works as expected and actually if I go into the address bar in FF of the url generated and press enter it will bring me to the correct anchored location. For some reason it does not do it when first generated. This has been a frustrated issue and any guidance would be appreciated.

Reproducible: Always

Steps to Reproduce:
1. click on up or down arrow which has a dynamically generated link with an anchor
2.
3.
Actual Results:  
click on up or down arrow which has a dynamically generated link with an anchor

Expected Results:  
the expected results is that this would bring the user to the anchored position specified and not to the top of the page.

the expected results is that this would bring the user to the anchored position specified and not to the top of the page.
Attached file screen shots and descrips of issue (obsolete) —
Attached file page source
IS your zoom level at default and can you reproduce it with a default zoom level (view/zoom/reset).

Please do not attach Microsoft Doc files here.
Either attach a screenshot as image (jpg, png) or if you want to add text then attach it as rtf (save it in MS Office as rtf).
(In reply to comment #3)
> IS your zoom level at default and can you reproduce it with a default zoom
> level (view/zoom/reset).
> 
> Please do not attach Microsoft Doc files here.
> Either attach a screenshot as image (jpg, png) or if you want to add text then
> attach it as rtf (save it in MS Office as rtf).
> 

Yeah zoom level is default and I attached new jpg screen shots
this is where it should go and does if you click inside the address bar, after the page has been previously loaded.
Does it work correct correctly if you add width and height attributes to your images?  Maybe Firefox doesn't see any room to scroll when the page first loads, since it doesn't know the sizes of the images.
its anchored to a container divid=thumbanchor which already has a height and width. Plus I don't want to force my images into a specific width or height.

Would you like to see any other code to help you trouble shoot this? its been a frustrating one. Again after the link gets clicked on and brings the user to the top of the page if you go inside the address bar and press enter it will bring you to the correct anchor spot. But it does not do it when the url is first generated for some reason.
I also posted the code online at http://cmstest.orakatsystems.com
I made the anchor stand out on the page in red.
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.1a1pre) Gecko/2008070602 Minefield/3.1a1pre

http://cmstest.orakatsystems.com/photos?thumb_page=3#thumbanchor works fine for me -- clicking the down arrow keeps it scrolled to the bottom.
thats good to hear, so far it seems to be working on FF3, safari and IE6. At least those are the one's I've tested or people I work with have tested. What platform are you running FF2 on? its still not working correctly for me but maybe I should try a fresh install of FF w/o any plugins etc.. to see if that works. I'm on a win xp sp 2 laptop with a 800X600 display.
I hadn't tested Firefox 2 until just now, but it seems to work fine for me in Firefox 2 as well.  I'm running on Mac OS X 10.4.
do you know anyone who has a win xp and ff2 that can also confirm this? also, as I mentioned, I'll try a clean install. Originally I upgraded to FF3, however, since there was no compatible firebug yet and some rails plugins I was using have not been certified on FF3 I reverted back.
Attachment #328214 - Attachment is obsolete: true
There's a compatible version of Firebug now :)

This bug is unlikely to ever be fixed on the Firefox 2 branch, so you might as well mark it as WORKSFORME (since it works correctly in the current version).
ok thanks
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: