html triggered via javascript overwrite existing html without scrolling it down first

RESOLVED FIXED

Status

Tech Evangelism Graveyard
Spanish
RESOLVED FIXED
15 years ago
3 years ago

People

(Reporter: sergio hernandez, Unassigned)

Tracking

Details

(URL)

(Reporter)

Description

15 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5a) Gecko/20030728 Mozilla Firebird/0.6.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5a) Gecko/20030728 Mozilla Firebird/0.6.1

Look like javascript new html fails to scroll down existing html before adding
it self to page.

Maybe javascript is not properly written in this site, i don't know. Webmaster
advised two days ago, still no response.

Tested in Mozila 1.4 and Mozila Firebird 0.6.1, both do the same overwritting.
iExplorer V6.0.26 did it right.

Reproducible: Always

Steps to Reproduce:
1. go to http://sync.es/alojamientos/paneldecontrol-linux.php
2. scrool down and click on "gestion del correo electronico"


Actual Results:  
New html will overwrite existing one from the line you clicked down.

Expected Results:  
Scroll down existing html under the text you clicked, then add the new one.
Mozilla (and e.g. Konqueror, too) does what the webmaster wants it to do:

function despliegue(n){

	eval ("if (document.getElementById('scroller"+n+"').style.overflow=='auto') {
cambio='visible'; } else { cambio='auto'; }");
	
	if (document.getElementById('scroller1')) {
document.getElementById('scroller1').style.overflow='auto'; } 
	if (document.getElementById('scroller2')) {
document.getElementById('scroller2').style.overflow='auto'; }
	if (document.getElementById('scroller3')) {
document.getElementById('scroller3').style.overflow='auto'; }
	if (document.getElementById('scroller4')) {
document.getElementById('scroller4').style.overflow='auto'; }
	if (document.getElementById('scroller5')) {
document.getElementById('scroller5').style.overflow='auto'; }
	
	eval("document.getElementById('scroller"+n+"').style.overflow=cambio;");
}


This should be done with a display: block / display:none switch.

Hence, this is an evangelism bug.


-> Tech Evangelism.
Component: JavaScript Engine → Spanish
OS: Windows XP → All
Product: Browser → Tech Evangelism
Hardware: PC → All
Version: Trunk → unspecified
Also, the summary of this bug is wrong. The html is not created via JavaScript,
it's static. JavaScript is only used to change the overflow property.

Comment 3

15 years ago
Setting default owner and QA -
Assignee: rogerl → spanish
Status: UNCONFIRMED → NEW
Ever confirmed: true
QA Contact: pschwartau → spanish
(Reporter)

Comment 4

15 years ago
Sorry my initial description was a little wrong, I've changed a little...
javascript is not my strongest point. Also the "product" was misschosen as
javascript, but i have no idea what "Evangelism" is or where the bug really came
from... it didn't seem as a religious problem to me ;)
Summary: New html created via javascript overwrite existing html without scrolling it down first → html triggered via javascript overwrite existing html without scrolling it down first
The page has been fixed.

Tested with Firefox 0.8 and trunk, Netscape 7.1.
Status: NEW → RESOLVED
Last Resolved: 14 years ago
Resolution: --- → FIXED
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.