Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

anchor links not workikng in Firefox after resize

 
roel croonenberghs
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic