Jump to content

Recommended Posts

Posted

Something weird is going on with the home page of my blog. In order to see what I'm talking about, you'll need to have both IE and Firefox installed on your computer.

 

My blog's address is http://www.doggydiaries.pudgypuppy.com/

 

When I enter that URL into the address bar of IE on my computer, the page shows up normally, i.e., the top of the page is the graphic with the dog and the title "Pudgy Puppy ... gone to the dogs"

 

When I enter that URL into the address bar of Firefox on my computer, instead of being directed to the top of the page, the page opens in the middle. Instead of the dog being the top of the page, I'm actually directed to an entry I posted on June 24. I'm attaching a screenshot for your reference. When the page first loads, it looks like it will load normally because the dog graphic (the true header) shows up. But in a split second I'm redirected to the June 24 entry.

 

I've cleared cookies, cache and history on my computer and tested it again. I get the same behavior.

 

Does anyone know what might be going on here?

 

Thanks.

Posted

Well, this is a curious one. I don't have IE on Linux but Itried it with Firefox 0.9 and I got the same result you described. I really don't have a clue about what could be the reason for this. Perhaps you'd like to post about it on the Mozilla forums and help solving a bug (if there is one)? :)

http://forums.mozillazine.org/

Posted

Curious indeed.

 

The thing I notice is that it doesn't seem so much to go to a specific place in the page, but rather to a percentage of the way down. If I change the size of my browser window and reload, the page goes to a slightly different place each time, depending upon the window size.

 

And, by the way, it's fine in Opera7 as it is in IE6.

 

Don't know if that helps any, but it's something. More research, I guess. :)

Posted

That's what I was thinking, too, Don. But I can't seem to locate the problem. I was hoping someone with a keen set of eyes and the knowledge to go with those sharp peepers would be able to take a look at the site and find where I went wrong.

Posted

A-ha! I've located the source of the problem. Now, if someone can just explain to me why...

 

I installed a tagboard yesterday. I just "commented out" the tagboard so it wouldn't become part of the page. The page now loads properly.

 

Here's a copy of the code used to bring the tagboard into the page.

><div class="sidetitle">Tag Me!</div>
<div class="side">
 <!-- DawgTag Tagboard -->
 <iframe src="http://www.doggydiaries.pudgypuppy.com/tag/tag.php" width="190" height="250" frameborder="0"></iframe>
</div>

 

This code is part of a PHP include file called sidebar.inc. I include it in each page using a common call of

><?php
include('/home/cpanelusername/public_html/doggydiaries/sidebar.inc');
?>

 

Any suggestions as to the problem? I'm wondering if it's the <iframe>. Is that a Microsoft-only element that doesn't render well in other browsers?

Posted

Don,

 

The <div class="side"> and <div class="sidetitle"> are part of the default MovableType installation. They are used to separate each module on the navigation bar (e.g., the "About Me", "Extras", "WebRings", "Blogroll", etc.).

 

I just tried testing the case where the tagboard isn't coded within any <div>s.

><!--<div class="sidetitle">Tag Me!</div>
<div class="side">-->

  <!-- DawgTag Tagboard -->
  <iframe src="http://www.doggydiaries.pudgypuppy.com/tag/tag.php" width="190" height="250" frameborder="0"></iframe>

<!--</div>-->

 

I'm still being directed to the bottom of the tagboard instead of the top of the page. I wonder if there's an onfocus event somewhere in the code of the tagboard? Do you think that could be the problem?

Posted

The problem turned out to be an <a name="somename"> and it's complementary <a href="#somename"> that was being generated by the tagboard code. It was being called (accidentally, I think) as soon as the tagboard was generated, when in actuality it should only have been generated when someone entered a "tag" so they could see that their tag had posted.

 

I fixed the underlying PHP code and it works fine and dandy now!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...