Forum Moderators: open

Message Too Old, No Replies

IE7/Vista probs loading background image + page expired

website runs in FF2 and 3(mac), Safari, Opera, FF2 and 3(win)

         

immols

2:29 pm on Jan 5, 2009 (gmt 0)

10+ Year Member



Hello there

I built a site with PHP/CSS/javascript(Ajax)/mysql.. well the lot. I run it in any browser on any operating system, and it works. However, it does NOT work in IE7 on Vista. The person testing my website is not into ICT, not into computers. Her OS and browser settings are default.

2 situations happen

Background-image
Windows Vista, IE7.
Backgound-image does not load every time it should load. When first entering the website, the image loads. Maybe caching gone wrong? Dunno.

i have an index.php that contains content-pages

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">


<body>
.... cut ....
<div class="wrapper" >
.... cut (headers, menus) ....
<div class="contentwrapper">
<div class="sidebar"><?php @ require_once(get_file_path('include').'/login-sidebar.php'); ?></div>
<div class="content">
<a name="anchorcontent"></a>
<?php @ require_once($page.'.php'); ?>
</div>
</div>
.... cut (footer) ....
</div>
.... cut (googleanalytics) ....
</body>

my css for the relevant divs is


div.wrapper{background-color: #C8E1EC;}
div.contentwrapper {margin-left:1px;background-color: transparant;background-position: 16px 0px;background-image:url('./img/backgrounds/mainbg.jpg');background-repeat:no-repeat;}

When going to a new page, the same image (mainbg.jpg') should be displayed, but it does not. Backgroundcolor of one of the 'greater' divs (wrapper) is shown.
A complicating factor is this: On the content page i have divs with semi-transparent backgrounds, on which text is written.


<div class="contenttop"><h1><span class="initcap"><?php echo get_sport(); ?> Met Mij</h1></div>
<div class="contenttext">
<p>content here</p>
<p>more content <?php echo get_sporten(); ?> here. </p>
</div>
<div class="contentbottom"></div>


div.wrapper div.contenttop {background-image:url('./img/borders/semitransboxtop.png');background-repeat:no-repeat;}
div.wrapper div.contenttext {background-image:url('./img/borders/semitransboxsides.png');background-repeat:repeat-y;}
div.wrapper div.contentbottom {height:13px;background-image:url('./img/borders/semitransboxbottom.png');background-repeat:no-repeat;}

When the image does not load, the transparent blocks are also not loaded. When the image is not loaded, hovering over a <p> or a <h1> or <h2> shows part of the image as background of that particular block. The transparancy is also shown.

page expired
Same website. Windows Vista, IE7. The backbutton is NOT used. Now and then the browser says: "This page is expired". one of the situations happens when a button in clicked in an included file:login-sidebar.php (cf pre above)
the pre in this file is 'normal' pre, it works in any other browser/OS combo


<div class="sidebartext"><p>Heeft u zich nog niet aangemeld bij <?php echo get_sport(); ?>metmij.nl? Vraag dan hier een account aan!</p>
<form action="<?php echo get_file_path('aanmelden'); ?>" method="post">
<table class="noborder">
<tr><td class="center">
<input class="submit" type="submit" name="submitaanmelden" value="Aanmelden"/>
</td></tr>
</table>
</form>
</div>

sorry for the wall of text
any help or suggestion is appreciated

[edited by: eelixduppy at 4:13 pm (utc) on Jan. 5, 2009]

[edited by: tedster at 7:04 pm (utc) on Jan. 5, 2009]
[edit reason] no personal URLs, please [/edit]

immols

1:21 pm on Jan 9, 2009 (gmt 0)

10+ Year Member



Is there really noone that can help me?
Or is my post too long/short/unclear?

mattur

1:53 pm on Jan 9, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try using Fiddler [fiddlertool.com] to see what's going on HTTP-wise when you get the page expired problem, and IE Developer Toolbar [microsoft.com] to debug the CSS problem.

You may get a better response if you post the (isolated) CSS problem in the CSS forum, and the PHP problem in the PHP forum. HTH.

immols

4:30 pm on Jan 9, 2009 (gmt 0)

10+ Year Member



Thanks mate, i will post the probs in the various forums.