Forum archives » Regarding Stripcreator » New Messages forum bug...

Graehe
August 12, 2001 10:11 AM

I know you noticed the bug for jumping to new forum messages (where you end up slightly above the new messages).

The problem is that the images & other html code render AFTER you've jumped, pushing the rest of the page down.

The best way I can think of to fix it is to add an

onLoad='window.location="#newpost";'

to the body tag.

This does mean you can't point directly at "forum=xx#newpost" from the dot, but you can add "forum=xx&action=newpost" to the php code, telling it to generate the above script, or something.

The unfortunate side effect is that the jump might not occur for a while on a large page, and people tend to get confused...the good thing is that it will occur even if they scroll before the jump, unlike pointing directly at "#newpost".

Post #12002link

Graehe
August 12, 2001 10:34 AM

quote:
The best way I can think of to fix it is to add an

onLoad='window.location="#newpost";'

to the body tag.



Correction:

Use

onLoad='window.location.replace("#newpost");'

So that they don't end up at the top of the page if they hit "Back".

Post #12003link

Brad
August 12, 2001 1:02 PM

I will give this a shot this evening and we'll see how it goes. I also fixed some odd bug with your totalposts not showing up. Your totalposts were set to null. Dunno what was up with that.

Post #12014link

evil_d
August 12, 2001 8:49 PM

quote:
The problem is that the images & other html code render AFTER you've jumped, pushing the rest of the page down.
If so, could this problem also be solved by using "height" and "width" attributes for all of the images?

Post #12024link

Graehe
August 12, 2001 9:28 PM

quote:
If so, could this problem also be solved by using "height" and "width" attributes for all of the images?

Mostly, but not entirely. Because comics are rendered inline after the text is displayed, it could still show up in an odd way (since some comics are taller than others, depending on the included text).

Besides, that would require database work, n' stuff.

Post #12026link

Forum archives » Regarding Stripcreator » New Messages forum bug...

stripcreator
Make a comic
Forums
featuring
diesel sweeties
jerkcity
exploding dog
goats
ko fight club
penny arcade
chopping block
also
Brad Sucks