Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Blank space at the top of pages


soundsavers

Recommended Posts

Posted

I've created a script which is very similar to the new_products feature which gets 10 products and puts them on the frontpage in a featured list. Although I'm having troble with some blank space of about 5 lines above the displayed output.

 

The 2 things I thought it might be is

- The splitPageResults class creating space to tell you which page of the results you're looking at.

- Whenever there is a query error it appears at the top and takes up about as much space as the blank space I'm having trouble with.

 

Does anyone know anything of these problems, has it happened to anyone else and is there a possible solution?

I've done my best to explain it and hope it makes sense to someone :P

 

Thanks

Posted

Oh, I know! It's.....?

 

Or it could be ....?

 

And if not it's....?

 

Oh crap you're just going to have to give a URL.

 

No one can say without looking at the HTML source.

:huh:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

From your source:

 

	<style type="text/css">
	img {
		-ms-interpolation-mode: bicubic;
	}

	</style>
<br>				
			<br>				
			<br>				
			<br>				
			<br><table valign="top">

Get rid of the <br>'s

:huh:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
From your source:

 

	<style type="text/css">
	img {
		-ms-interpolation-mode: bicubic;
	}

	</style>
<br>				
			<br>				
			<br>				
			<br>				
			<br><table valign="top">

Get rid of the <br>'s

:huh:

 

I've viewed the source as the browser see's it in firefox and IE and haven't found those 5 <br> in either. Could you tell me how you're getting that, and which line number if you can? I might just be missing it.

 

Thanks

Posted

If I look at the source in IE I see:

 

	<style type="text/css">
	img {
		-ms-interpolation-mode: bicubic;
	}

	</style>
</head>

The </head> shouldn't be there.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
If I look at the source in IE I see:

 

	<style type="text/css">
	img {
		-ms-interpolation-mode: bicubic;
	}

	</style>
</head>

The </head> shouldn't be there.

 

I don't think that's important though, the problem lies elsewhere, for example if you look at this,

http://www.soundsavers.com/catalog/fpd.php

you can see that it is something else causing it.

Posted

Take out the funky style and see what happens.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
Take out the funky style and see what happens.

 

By funky style if you mean that line of css, all that does is set how IE resizes the image because bicubic isn't set to default. It won't be anything to do with that. I'm sure the problem is with one of oscommerce' php functions that is for some reason adding lines for a different, unused purpose.

Posted
By funky style if you mean that line of css, all that does is set how IE resizes the image because bicubic isn't set to default. It won't be anything to do with that. I'm sure the problem is with one of oscommerce' php functions that is for some reason adding lines for a different, unused purpose.

Highly unlikely as no one else has this problem in all the tens of thousands of stores on the net.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
Highly unlikely as no one else has this problem in all the tens of thousands of stores on the net.

 

Apologies, I'm not explaining myself very well.

 

http://pastebin.com/m375dda5a

 

That is what is running behind the previous link. I'm fairly certain that it is one of those tep_ functions, or, something to do with the splitProductsQuery object that would normally act correctly, but I've edited in such a way that it creates the blank space for a purpose, but fills it with nothing causing the apparent gap.

 

Thanks for your continued efforts.

Posted

Play ball with me and take out the funky style, just as a test.

<_<

 

That's the only thing I see in the code that is not "standard".

 

I know what it's for, I just want to find out if it's the cause.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

In the test page you made for me:

 

Change all the

 

</td><br>

to just

 

</td>

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

no DOCTYPE, makes it hard to debug...you could try this and see if it would work???

 

<style type="text/css">
<!--
img {
-ms-interpolation-mode: bicubic
}
-->
</style>

 

hoping this may help....????

 

_sM

Posted

Thanks h2oHOH, I already tried getting rid of that CSS though.

 

Got rid of one instance of the <br>, Seems like no difference to me :/

 

What's also confusing me is why the blank space appears before anything else. It would be easier to trace the cause if it was in the middle.

 

Thanks for the continued help guys, appreciate it.

Posted

Change all the:

 

<tr><br>

to

 

<tr>

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

You're welcome.

:)

Ad astra per aspera

;)

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

Germ, you've been a star

Indeed! Interesting fix Jim! ...

 

not sure why those <tr><br>'s put space at the top of the table though..?

 

_seanMichael

Posted

My theory is:

 

<table>
 <tr>
<td>
	<br>
</td>
 </tr>
</table>

Is correct syntax.

 

The <br> lies correctly placed within the table element.

 

While:

 

<table>
 <tr><br>
<td>
</td>
 </tr>
</table>

or

 

<table>
 <tr>
<td>
</td><br>
 </tr>
</table>

Is "incorrect" syntax because the <br> isn't properly placed inside the table so the browser lumped them together OUTSIDE the table.

 

At least that's my story and I'm sticking to it!

:lol:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

yes, that makes perfect sense, think i learnt something important with this one.

 

thanks_sM

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...