Results 1 to 3 of 3

Thread: div unvisible in window widget

  1. #1
    Join Date
    Aug 2008
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default div unvisible in window widget

    1) Script Title:
    DHTML Window widget (v1.1)
    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...ndow/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

  2. #2
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    Quote Originally Posted by fmx250 View Post
    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:
    Code:
    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:
    Code:
    document.getElementById('daten_allgemein').style.display = 'none';

    Hope that helps.
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

  3. #3
    Join Date
    Aug 2008
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    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!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •