PDA

View Full Version : div unvisible in window widget



fmx250
10-17-2008, 12:43 PM
1) Script Title:
DHTML Window widget (v1.1)
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/index.htm
3) Describe problem:
in my haupt.php i open the ww with following function:

function oeffne_f_a0_daten() {
ajaxwin=dhtmlwindow.open("f_daten", "ajax", "daten.php?aktion=daten_start", "Stammdaten", width=710px,height=650px,left=100px,top=60px,resize=0,scrolling=0,center=0") }


in my daten.php i will hidden a div with following code:

document.getElementById('daten_allgemein').style.visibility = 'visible';

and the id of the div is daten_allgemein.

does someone know what i have done wrong?

i will be very lucky if someone can help me!!!
thanks

rangana
10-18-2008, 04:19 AM
in my daten.php i will hidden a div with following code:


document.getElementById('daten_allgemein').style.visibility = 'visible';

and the id of the div is daten_allgemein.

does someone know what i have done wrong?


That's wrong. To hide a div, you set the visibility property to hidden:


document.getElementById('daten_allgemein').style.visibility = 'hidden';


...but that would only hide the element from view, but the space to where the element is situated is still observable (at least as I would see).

You could try to use the display property instead:


document.getElementById('daten_allgemein').style.display = 'none';



Hope that helps.

fmx250
10-20-2008, 06:50 AM
yes you are right. i know this but that's not the point. also, it don't work with
style.display = 'none';

i think the problem is the referencing. i can't raise the element and i've tried a javascript alert at the daten.php. nothing works!