PDA

View Full Version : Firefox3 moves header to bottom with ajax include



Acts7
08-05-2008, 06:29 AM
All other browsers from IE6+ Safari and FF2(or less) support this page.
But for some reason FF3 is causing the header (an ajax include) to randomly spit the header out at the bottom. When I pull the content out of the ajax and hard code it, the page loads just fine.

When I put it back as an ajax include it wipes it to the bottom again.
Now if I hit refresh, it sits just fine.

Is there a standard issue that would cause such behavior?

http://myvideosnapshots.com/clients/valuebank/site/customer_tips.html

Jesdisciple
08-05-2008, 09:29 PM
Pending a response from a more knowledgeable member, I suggest you post this question to Firefox Bugs on the mozillaZine Forums (http://forums.mozillazine.org/viewforum.php?f=9).

irocwebs
08-27-2008, 06:28 AM
Having the same problem with no solutions. Anybody found an answer yet?

Thanks!

codeexploiter
08-27-2008, 06:47 AM
The provided link doesn't seems to be live at this moment.

irocwebs
08-27-2008, 05:45 PM
I have a link that you could check out: http://www.kkgardens.com

ddadmin
08-27-2008, 06:07 PM
Warning: Please include a link to the DD script in question in your post. See this thread (http://www.dynamicdrive.com/forums/showthread.php?t=6) for the proper posting format when asking a question.

A random stab here, but it could be something within the HTML inside footer.htm that's throwing FF3 for a loop:


<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="100%"><img border="0" src="../images/whitetop.png" width="558" height="11"></td>
</tr>
<tr>
<td width="100%" background="../images/whiteback.png">
<div class="footercontent">
<b>Copyright &copy; 2008 - K &amp; K Gardens. - All rights reserved.</b><br><br>

<a href="http://www.irocwebs.com/" target="_blank"><img border="0" src="../images/IWDSLogo.png" width="140" height="59"></a><br>
<a href="http://www.irocwebs.com/" target="_blank" class="footer">Site designed and maintained by Iroc Web Design Services&copy;.<br> Your Small Business Web Design Solutions.&trade;</a>
</div></td>
</tr>
<tr>
<td width="100%"><img border="0" src="../images/whitebottom.png" width="558" height="11"></td>
</tr>
</table>

</center>
</div>

I'd try and simplify the above HTML by removing the TABLE tags and replacing them with DIVs. Also, make sure the outermost DIV contains a CSS "clear" property:


<div align="center" style="clear:both">
"
"

BTW, is your site PHP (ie: .php) or SSI (ie: .shtml) based? If so, you should forgo this script, and just use your server to reliably include the contents of a file onto another.

irocwebs
10-01-2008, 07:49 PM
Script URL: http://www.dynamicdrive.com/dynamicindex17/ajaxincludes.htm

I'm still trying to find a solution to this issue.

Something new I've discovered. In FF3 it's placing this in the address bar: wyciwyg:// followed by a number then the url. For example - wyciwyg://29/http://www.yourdomain.com/somepage.html

wyciwyg = "what you cache is what you get"

I'm not 100% sure but it may be related to the XMLHttpRequest.

http://developer.mozilla.org/en/XMLHttpRequest

I've tried the above suggestions that ddadmin gave, but it still gives me issues. Also as far as SSI - won't work with dynamic websites that we create.

If you need an example take a look at this in FF2 (or any other browser) & then in FF3? http://www.fayettecountyia.com/

Click through some of the pages and it will eventually happen. It really messes up the site.

Thanks in advance for any help I can get.

irocwebs
10-03-2008, 04:50 PM
Script url: http://www.dynamicdrive.com/dynamicindex17/ajaxincludes.htm

I think (I am not an expert with this by far) I found what is causing this. It seems to me that Ajax caches weird in FF3.

I found this site that seems to have a solution using time stamps - I can't figure out how to make it work though.
http://www.informit.com/articles/article.aspx?p=669599

I tried putting the following into the htaccess file and it seems to cure it - though it slows my site down dramatically.


<FilesMatch "\.(html|htm|js|css)$">
FileETag None
Header unset ETag
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
</FilesMatch>

Any other ideas? Solutions? Help?

Thanks!

jscheuer1
01-23-2009, 10:35 AM
See:

http://www.dynamicdrive.com/forums/showpost.php?p=180201&postcount=2