Page Anchor and Browser rending issue

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
ND08
Forum Newbie
Posts: 3
Joined: Wed Feb 10, 2010 7:26 am

Page Anchor and Browser rending issue

Post by ND08 »

Hello all,

I have a small issue with named anchors on a php page. When I go to the address of the anchor for example http://www.nativedynamics.com.au/tools/ ... toolWindow the browser is only rendering from the anchor down. By comparison the page should look like this http://www.nativedynamics.com.au/tools/Tools.php but have the tool window at the top of the page.

The browser has all the page data (checked by looking at the source), however it will only display from the anchor down.

I have seen anchors work on other php pages fine but and can not see what I am doing differently. From am understanding anchors are on the client side so this may be a browser problem, but that does explain why other pages do not have this problem.

If I save the page as html and load in the anchor address works fine.

Any help will be much appreciated as I cannot seem to find the answer via google search.
aravona
Forum Contributor
Posts: 347
Joined: Sat Jun 13, 2009 3:59 pm
Location: England

Re: Page Anchor and Browser rending issue

Post by aravona »

I viewed your pages and they were identical, I viewed them using Internet Explorer - So I had a look in Firefox and I think I see your problem now - one page was fine, same as in IE... the second page only gave me the bottom half of the page.

Looks like you need one of those magic Firework Fixes - which bit of code starts the messed up page?

If you click off that section (i.e: click on NDPipe and then back to NDConvert) the page is fine. Whats the purpose of your anchor? I've only ever used them on rediculously long pages as a 'back to top' or 'go to this section' kinda thing?
ND08
Forum Newbie
Posts: 3
Joined: Wed Feb 10, 2010 7:26 am

Re: Page Anchor and Browser rending issue

Post by ND08 »

The purpose of the anchor on this page is to move the page to the top of the tools window after the page reloads so it can get some data to use in its calculations. I also have another very long page which I wish to implement anchors in (which is also php) however I need to sort out the anchor issue before I can do this.

It renders the same (the top cut off) in my testing with Safari firefox and IE 8 so it seems like a problem across all browsers.

I not sure how to approach a fix as I do not really know what is wrong. Other pages that seem to work have no visible fix so it seems the fix may be in php which is contrary to the fact that anchors are only processed by the browser.

What is really weird is that the browser has all of the source file it just does not display the top half.

I am really stuck with this one.
ND08
Forum Newbie
Posts: 3
Joined: Wed Feb 10, 2010 7:26 am

Re: Page Anchor and Browser rending issue

Post by ND08 »

I found out what the error was. The css hack I was using to make the sidebar go for the length of the page stopped the web page from showing properly when an anchor was used. I switched to faux columns method and it all works.
Post Reply