Professional Web Applications Themes

show-hide layers across iframe & parent window - Macromedia Dynamic HTML

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 ...

  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. #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" <webforumsusermacromedia.com> wrote in message
    news:edkrag$ia$1forums.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

Similar Threads

  1. Show and Hide Layers
    By tbjohnson2 in forum Macromedia Dynamic HTML
    Replies: 0
    Last Post: July 9th, 09:05 PM
  2. popup menus won't hide - PVII show/hide layers behaviour
    By Jonibean in forum Macromedia Dynamic HTML
    Replies: 0
    Last Post: December 29th, 08:24 PM
  3. Show/Hide Layers buggy in IE
    By VitaminGirl in forum Macromedia Dynamic HTML
    Replies: 1
    Last Post: September 20th, 11:18 AM
  4. show/hide layers
    By mickey in forum HTML & CSS
    Replies: 6
    Last Post: May 29th, 07:03 PM
  5. Hide/show layers
    By FreeKarachi webforumsuser@macromedia.com in forum Macromedia Dynamic HTML
    Replies: 2
    Last Post: July 29th, 06:15 PM

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
  •  

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