Closed Bug 220636 Opened 21 years ago Closed 20 years ago

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

Categories

(Tech Evangelism Graveyard :: Spanish, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: sergio, Unassigned)

References

()

Details

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.
Setting default owner and QA -
Assignee: rogerl → spanish
Status: UNCONFIRMED → NEW
Ever confirmed: true
QA Contact: pschwartau → spanish
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
Closed: 20 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.