Results 1 to 4 of 4

Thread: node in a window widget form

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

    Default node in a window widget form

    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 a window widget with following code:

    function oeffne_daten() {
    ajaxwin=dhtmlwindow.open("f_daten", "iframe", "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 raise a node with following code:
    document.getElementById('nummer').focus();
    the id of the input field is nummer.

    nothing happens!!
    does someone know what i have done wrong?
    i will be very lucky if someone can help me!!!
    thanks

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Where exactly is element "nummer" located at, within daten.php, or the main calling page? If the later, you can get to it by doing:
    Code:
    parent.document.getElementById('nummer').focus()
    DD Admin

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

    Default

    the input field 'nummer' is within daten.php

    thanks for your efforts!

  4. #4
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    So you're trying to reach the field with ID="nummer" from the parent page that opened the DHTML window? If so, you'd use:

    Code:
    window.frames["ajaxwin"].document.getElementById('nummer')
    DD Admin

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
  •