Professional Web Applications Themes

Click on Nav Bar changing content of two frames - Macromedia Dreamweaver

Happy: There is a solution for this, but you won't like it. Don't use frames. Really. [url]http://apptools.com/rants/framesevil.php[/url] If you consider your options, and still elect to use frames, think about this - What happens to your site when you change multiple frames from a single click, and then the viewer presses the browser BACK button? -- Murray --- ICQ 71997575 Team Macromedia Volunteer for Dreamweaver MX (If you *MUST* email me, don't LAUGH when you do so!) ================== [url]news://forums.macromedia.com/macromedia.dreamweaver[/url] - THE BEST WAY TO GET ANSWERS ================== [url]http://www.dreamweavermx-templates.com[/url] - Template Triage! [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources [url]http://www.DreamweaverFAQ.com[/url] - ...

  1. #1

    Default Re: Click on Nav Bar changing content of two frames

    Happy:

    There is a solution for this, but you won't like it. Don't use frames.
    Really.

    [url]http://apptools.com/rants/framesevil.php[/url]

    If you consider your options, and still elect to use frames, think about
    this -

    What happens to your site when you change multiple frames from a single
    click, and then the viewer presses the browser BACK button?

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver MX
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]news://forums.macromedia.com/macromedia.dreamweaver[/url] - THE BEST WAY TO GET
    ANSWERS
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.DreamweaverFAQ.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "Happy Camper" <webforumsusermacromedia.com> wrote in message
    news:bekhhb$e5i$1forums.macromedia.com...
    > I need two HTML pages to change when you click on the navigation. The
    website is in frames.
    >
    > NavFrame is where the navigation lives
    > LeftFrame is where I need a new HTML page to come into
    > MainFrame is where the HTML already changes by clicking on the navigation
    >
    > There is only one choice at "When Clicked, go to URL" how do I designate a
    second place for it to change as well?
    >
    > Thanks!
    >
    >
    >
    > Referring URLs
    > [url]http://www.visualadvocacy.com/temp/indexframe.html[/url]
    >
    >
    >
    >

    Murray *TMM* Guest

  2. #2

    Default Re: Click on Nav Bar changing content of two frames

    Happy:

    Your client doesn't have the experience or knowhow to make this decision.
    That's where you come in. You are the web developer. That's your job, not
    the client's.

    How about the refresh taking you back to the default frame configuration?

    How about printing giving the wrong output?

    Nevermind. Select the trigger and apply the gotoURL behavior to it. Now
    you can change the source of every frame in your site with a single click on
    that trigger by selecting a frame in list and browsing to its new source.

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver MX
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]news://forums.macromedia.com/macromedia.dreamweaver[/url] - THE BEST WAY TO GET
    ANSWERS
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.DreamweaverFAQ.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "Happy Camper" <dragonflygtearthlink.net> wrote in message
    news:bekl5g$k7i$1forums.macromedia.com...
    > I am aware of the downside of frames and have discussed them with my
    client, they are not bothered by the back button and bookmarking not working
    (the two things that I think are the most annoying).
    >
    > That wasn't the question. I need to know if it is possible to target two
    separate areas from one click on the nav bar.... thanks.
    >
    >

    Murray *TMM* Guest

  3. #3

    Default Re: Click on Nav Bar changing content of two frames

    "Go to URL" seems to only work as a MouseOver feature, not on "OnClick" feature.


    Happy Camper Guest

  4. #4

    Default Re: Click on Nav Bar changing content of two frames

    Happy:

    Select the event, and drop down the event list by clicking on the dark
    triangle to the right of the event name in the Behaviors panel. Make sure
    your Events For is set to v4+ browsers. You'll see it there....

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver MX
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]news://forums.macromedia.com/macromedia.dreamweaver[/url] - THE BEST WAY TO GET
    ANSWERS
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.DreamweaverFAQ.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "Happy Camper" <dragonflygtearthlink.net> wrote in message
    news:bekoub$q16$1forums.macromedia.com...
    > "Go to URL" seems to only work as a MouseOver feature, not on "OnClick"
    feature.
    >
    >

    Murray *TMM* Guest

  5. #5

    Default Re: Click on Nav Bar changing content of two frames

    Okay, I have figured it out... it actually only takes a bit of simple scripting.

    What I added to this navigation bar code is in bold. Everything else was already created by Dreamweaver.

    The button with this language resides in the "navFrame", clicking it changed the content in "mainFrame" and NOT in "leftFrame", so adding the language in bold changed it to also open a new html page in "leftFrame".

    <a href="approach.html" target="mainFrame" onClick="<b>parent.leftFrame.location = 'approach_left.html';</b> MM_nbGroup('down','group1','approach','images/approach_mo.gif',1)" onMouseOver="MM_nbGroup('over','approach','images/approach_mo.gif','images/approach_mo.gif',1)" onMouseOut="MM_nbGroup('out')"><img src="images/approach_mo.gif" alt="approach" name="approach" border="0" onload="MM_nbGroup('init','group1','approach','ima ges/approach.gif',1)"></a>




    Happy Camper Guest

  6. #6

    Default Re: Click on Nav Bar changing content of two frames

    Happy:

    That's not only invalid code, it is not going to work at all! 8(

    You cannot have HTML tags inside javascript calls like that -

    onClick="<b>parent.leftFrame.location

    The answer I gave you will work without creating invalid code.

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver MX
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]news://forums.macromedia.com/macromedia.dreamweaver[/url] - THE BEST WAY TO GET
    ANSWERS
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.DreamweaverFAQ.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "Happy Camper" <dragonflygtearthlink.net> wrote in message
    news:bekvjt$5g8$1forums.macromedia.com...
    > Okay, I have figured it out... it actually only takes a bit of simple
    scripting.
    >
    > What I added to this navigation bar code is in bold. Everything else was
    already created by Dreamweaver.
    >
    > The button with this language resides in the "navFrame", clicking it
    changed the content in "mainFrame" and NOT in "leftFrame", so adding the
    language in bold changed it to also open a new html page in "leftFrame".
    >
    > <a href="approach.html" target="mainFrame"
    onClick="<b>parent.leftFrame.location = 'approach_left.html';</b>
    MM_nbGroup('down','group1','approach','images/approach_mo.gif',1)"
    onMouseOver="MM_nbGroup('over','approach','images/approach_mo.gif','images/a
    pproach_mo.gif',1)" onMouseOut="MM_nbGroup('out')"><img
    src="images/approach_mo.gif" alt="approach" name="approach" border="0"
    onload="MM_nbGroup('init','group1','approach','ima ges/approach.gif',1)"></a>
    >
    >
    >

    Murray *TMM* Guest

Similar Threads

  1. Changing Text/iframe content with Rollover
    By Andigo in forum Macromedia Dynamic HTML
    Replies: 1
    Last Post: February 1st, 11:01 PM
  2. Changing text without changing frames.
    By Jose Olivas in forum Macromedia Flash
    Replies: 1
    Last Post: March 21st, 11:36 AM
  3. Changing cast member with a mouse click
    By Random Rob webforumsuser@macromedia.com in forum Macromedia Director Lingo
    Replies: 3
    Last Post: December 7th, 06:21 PM
  4. Newbie: Showing content with the click of a button...?
    By Aqueousdan in forum Macromedia Flash
    Replies: 2
    Last Post: August 29th, 06:58 PM
  5. one click - 3 frames should change
    By maxmc webforumsuser@macromedia.com in forum Macromedia Dreamweaver
    Replies: 3
    Last Post: July 25th, 03:10 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