aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes anchor links not workikng in Firefox after resize Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "anchor links not workikng in Firefox after resize" Watch "anchor links not workikng in Firefox after resize" New topic
Author

anchor links not workikng in Firefox after resize

roel croonenberghs
Greenhorn

Joined: May 28, 2009
Posts: 10
Hi,

I have a dynamical generated html document that is nested inside an iframe. To avoid scrollbars I do a resize after the load of the iframe. This works. Inside the iframe I have different anchors defined. But when clicking de links to the anchors nothing happens. (no action, and no javascript or other error)
This works in IE and chrome.
When I dont resize the iframe onload, the anchorlinks works.

Any ideas?

Here is the code of the parent page with the resize function:


here is the code of the child page with the links and achors



Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Looking at the html markup, you really should learn to use classes/css rules instead of inline style



That will save a bunch of bytes on that page.

Also what is with all of the br elements? add bottom padding to the li elements and that will map the gap larger.



Again, that will remove tons of unnecessary bytes.

Why is it not working? Is there JavaScript on the page, do you see errors in the console, does the page work on its own not in the frame?

Eric

roel croonenberghs
Greenhorn

Joined: May 28, 2009
Posts: 10
Like I wrote, I do not get any errors (no javascript error or condole error, ...)
The only javascript is in the parent page to resize the iframe.
The links and anchors do work when I ommit the onload="javascript:resizeIFrame(this);" part.
And they also work when I open sofcommands.html on its own (not inside an Iframe)

PS the inline style and br tag comes from a program that generates these pages. I don't have control over it. But this has nothing to do with my problem. Removing the inline style and br and replacing with li does not make the anchor links work.

Any other ideas?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: anchor links not workikng in Firefox after resize