finding an element in the current document's parent

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default finding an element in the current document's parent

    Hi,

    I'm trying to use MM's findObj function to get the reference to an object
    which is in the current document's parent, and I'm being a bit thick and
    can't work out what to put in the second argument to the function. Any
    ideas?

    thanks
    Rob

    --
    digitalburn::designislife
    [url]www.digitalburn.net[/url]


    rob::digitalburn Guest

  2. Similar Questions and Discussions

    1. Current Index Of Parent Repeater
      I have a component with some text fields in it. It is a child of a repeater component. How can I retrieve the currentIndex of the parent...
    2. Finding the Top Coordinate for an element
      I posted a little bit ago about a problem I was having with a rollover menu effect. I think I know a way to fix the problem but I have been having...
    3. Finding a Component's (ComponentModel.Component) Parent Form
      I'm working on a .net component (not a control) and need to find out what form the component is contained in during runtime (DesignMode=False). ...
    4. Finding the current path
      Octavian Rasnita wrote: Use the standard Cwd module.
    5. Finding current directory?
      How can I find out the full directory path (i.e. c:\path\to\file) of a file? I'm logged into a server and the of course, I have an FTP directory...
  3. #2

    Default Re: finding an element in the current document's parent

    rob::digitalburn wrote:
    > Hi,
    >
    > I'm trying to use MM's findObj function to get the reference to an object
    > which is in the current document's parent, and I'm being a bit thick and
    > can't work out what to put in the second argument to the function. Any
    > ideas?
    What exactly do you mean by "current document's parent"?

    --
    Enjoy,
    Danilo Celic

    | Extending Knowledge, Daily
    | [url]http://www.CommunityMX.com/[/url]

    Those who aren't looking often have their eyes open widest.
    danilocelic Guest

  4. #3

    Default Re: finding an element in the current document's parent

    I mean the document in the window within which the current document is
    nested. In other words, I want a script belonging to a page within an iframe
    to be able to access an element in the page which contains the iframe. Make
    sense? :)

    I'm just using -

    lyr=window.parent.document.getElementById("thing") ;

    now, which seems to work well enough (for my high specific purpose, anyway),
    but if anyone else has any suggestions to do it in a more neat or robust
    manner, I'd appreciate it.

    Rob


    rob::digitalburn Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139