• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

anchor links not workikng in Firefox after resize

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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



 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
If a regular clown is funny, then a larger clown would be funnier. Math. Verified by this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic