show-hide layers across iframe & parent window

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

  1. #1

    Default show-hide layers across iframe & parent window

    i am building a 'select personal image' feature to a clients existing reg form.
    i am displaying the 30+ personal image gifs in a scrolling iframe within
    parent.
    above iframe, on parent, i want to display users currently selected gif (from
    iframe)

    per client requirements, when a user selects/clicks an image within the
    iframe, the parent window needs to update to show that same image.

    i have created the 30+ individual layers to house each gif for display on the
    parent. i just cant figure out how to call show-hide layers from onClick within
    the iframe.

    CHALLENGE:
    how to get onClick selections made within the iframe to trigger the show-hide
    layer functions on/in the parent?

    any suggestions or solutions greatly appreciated...
    seannarae

    seannarae Guest

  2. Similar Questions and Discussions

    1. Show and Hide Layers
      I am using the show and hide layers JS from Dreamweaver. I am using it to have simulated "tabs" on the HTML page, so I have a div set up for Tab1,...
    2. Show / Hide DIV Layers with Flash
      If there's a way to control pages with Flash, there's a way to show and hide DIV layers with Flash. I tried everything I know, but it's not enough....
    3. popup menus won't hide - PVII show/hide layers behaviour
      I've used the 'Auto show/hide by PVII" behaviour to create some popup menus for the navigation which make use of divs which appear and disappear....
    4. show/hide layers
      I've got two layers. The first layer is always visible. The second layer is only visible when you click on the first layer. How do I hide the...
    5. Hide/show layers
      hi, i have a form and in this form i have multiple <div> and each <div> i have table. i show and hide according to the events attached to the...
  3. #2

    Default Re: show-hide layers across iframe & parent window

    seannarae,

    Select some text in the main page and make it a null link by typing
    javascript:; into the Link field in the Property Inspector. Apply the
    show-hide Behavior to it to show or hide the div in question.

    Copy/paste the <a> tag you just applied to your main page into the page that
    is getting loaded inside of the iframe. Then add parent. in front of
    the MM_showHideLayers('Layer1','','hide'). voila!

    <a href="javascript:;"
    onClick="parent.MM_showHideLayers('Layer1','','hid e')">Swiper</a>

    Use your temp null link to apply as many as you need and then remove it. You
    will have to remove it manually though. Go into code view and cut out the
    <a> portion. If you remove it any other way, the code for the show-hide will
    get removed by Dreamweaver.


    --
    Regards,
    ...Trent Pastrana
    [url]www.fourlevel.com[/url]








    "seannarae" <webforumsuser@macromedia.com> wrote in message
    news:edkrag$ia$1@forums.macromedia.com...
    >i am building a 'select personal image' feature to a clients existing reg
    >form.
    > i am displaying the 30+ personal image gifs in a scrolling iframe within
    > parent.
    > above iframe, on parent, i want to display users currently selected gif
    > (from
    > iframe)
    >
    > per client requirements, when a user selects/clicks an image within the
    > iframe, the parent window needs to update to show that same image.
    >
    > i have created the 30+ individual layers to house each gif for display on
    > the
    > parent. i just cant figure out how to call show-hide layers from onClick
    > within
    > the iframe.
    >
    > CHALLENGE:
    > how to get onClick selections made within the iframe to trigger the
    > show-hide
    > layer functions on/in the parent?
    >
    > any suggestions or solutions greatly appreciated...
    > seannarae
    >

    T.Pastrana - 4Level 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