passing a Javascript command to out of an iFrame to athe parent frame

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

  1. #1

    Default passing a Javascript command to out of an iFrame to athe parent frame

    Hello. Right i have a javascript navigation that runs fine on the top level
    html page, this then loads in pages into an iFrame, then in these '2nd level
    pages' there are links to diferent sections of the site meaning that the 'top
    level' nav has to change to indicate where in the site you have moved to. So
    the command that works fine on the top level is: <a
    href='HTML/symptomSorter.html' target='mainContent'
    onclick='javascript:showMenu(6)'> so it loads symptomSorter.html into the main
    content frame and also tells the javascript menu to highlight element 6 on the
    menu. all fine so far... then on the symptomSorter.html there is a link which
    loads a page from a diferent section into the same frame it is in, but i need
    to let the top level navigation know to highlight element 3 so what i tried
    was: <a href='products_mainpage.html'
    onClick='parent.javascript:showMenu(3)'>link</a> and <a
    href='parent.javascript:showMenu(3)' >link</a> and <a
    href='javascript:parent.showMenu(3)' >link</a> and <a
    href='javascript:window.parent.showMenu(3)' >link</a> but none worked, there
    must be an easy way to to parse the javascript command showMenu(3) to the to
    level?? Thanks for any help in this matter is appreciated its driving me mad!
    Rob.

    Bigbob666 Guest

  2. Similar Questions and Discussions

    1. 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...
    2. updating an iframe in parent doc from a popup
      I need to update an iframe contained in a parent doc from within a popup window created from the same parent document. The parent doc (1.cfm): ...
    3. IFrame security with parent same domain?
      Hi, I have a web page with an IFrame, this IFrame could display the content of a web site on the same domain. Parent page:...
    4. Close parent window from a frame without Java
      I want to use a hyperlink to close the parent window (and all frames it contains) without using java. I don't want the pop-up window appearing that...
    5. Passing a method block to a parent class
      If I have **** CODE **** class A def method1( argument ) yield( argument ) end end
  3. #2

    Default Re: passing a Javascript command to out of an iFrame toa the parent frame

    a s'ok found a way:

    ..top works to route to the top level html from within an iFrame.


    Bigbob666 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