Two Frames, one action, update both, How??

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • steve

    #1

    Two Frames, one action, update both, How??

    Hi All,
    My site has two frames, one with a menu system, one with the
    selected results.
    I can select a menu item and get the other frame to reflect that
    selection.

    But I want to select 'log out' from the menu and remove the menu sytem
    as well as putting a default welcome page in to 2nd frame.

    Any ideas will be gratefully received

    New to PHP, and HTML

    Steve

  • Erwin Moller

    #2
    Re: Two Frames, one action, update both, How??

    steve wrote:
    Hi All,
    My site has two frames, one with a menu system, one with the
    selected results.
    I can select a menu item and get the other frame to reflect that
    selection.
    >
    But I want to select 'log out' from the menu and remove the menu sytem
    as well as putting a default welcome page in to 2nd frame.
    >
    Any ideas will be gratefully received
    >
    New to PHP, and HTML
    >
    Steve
    Hi STeve,

    You are probably new to JavaScript then also. :-)
    You need Javascript to update more frames at once.
    That eans that visitors with JavaScript disabled will not be able to use
    your site.
    You might consider a setup without frames.

    If you want to solve it with JavaScript, try something like this:
    [for more question try cop.lang.javasc ript]

    The framedefinition :
    2 frames, name them, eg "navframe" and "mainframe"
    navframe contains a file named nav.php
    mainframe contains any file.

    If somebody clicks on 'logout' in nav.php:
    <a href="" onClick="doLogO ut();return false;">logout</a>

    <script type="text/javascript">
    function doLogOut(){
    // replace two pages in a frame:
    top.frames["mainframe"].location="welc ome.php";
    top.frames["navframe"].location="what ever.php";
    }
    </script>

    not tested, might contain typos. ;-)
    Good luck.

    Regards,
    Erwin Moller

    Comment

    • Erwin Moller

      #3
      Re: Two Frames, one action, update both, How??

      [typocorrections :]

      Hi Steve,

      That *m*eans that visitors with JavaScript disabled will not be able to use
      your site.

      If you want to solve it with JavaScript, try something like this:
      [for more question try co*m*p.lang.jav ascript]

      Regards,
      Erwin Moller

      Comment

      • Geoff Berrow

        #4
        Re: Two Frames, one action, update both, How??

        Message-ID: <1160731860.309 297.50770@i42g2 000cwa.googlegr oups.comfrom
        steve contained the following:
        >But I want to select 'log out' from the menu and remove the menu sytem
        >as well as putting a default welcome page in to 2nd frame.
        >
        >Any ideas will be gratefully received
        Just link to a new frameset.

        --
        Geoff Berrow (put thecat out to email)
        It's only Usenet, no one dies.
        My opinions, not the committee's, mine.
        Simple RFDs http://www.ckdog.co.uk/rfdmaker/

        Comment

        • steve

          #5
          Re: Two Frames, one action, update both, How??


          Geoff Berrow wrote:
          Message-ID: <1160731860.309 297.50770@i42g2 000cwa.googlegr oups.comfrom
          steve contained the following:
          >
          But I want to select 'log out' from the menu and remove the menu sytem
          as well as putting a default welcome page in to 2nd frame.

          Any ideas will be gratefully received
          >
          Just link to a new frameset.
          >
          --
          Geoff Berrow (put thecat out to email)
          It's only Usenet, no one dies.
          My opinions, not the committee's, mine.
          Simple RFDs http://www.ckdog.co.uk/rfdmaker/
          Hi Geoff,
          Thanks for the suggestion, but so new that it means very little to
          me, how do I link to a new frameset?

          :-(
          Steve

          Comment

          • steve

            #6
            Re: Two Frames, one action, update both, How??


            Erwin Moller wrote:
            [typocorrections :]
            >
            Hi Steve,
            >
            That *m*eans that visitors with JavaScript disabled will not be able to use
            your site.
            >
            If you want to solve it with JavaScript, try something like this:
            [for more question try co*m*p.lang.jav ascript]
            >
            Regards,
            Erwin Moller
            Hi Erwin,
            Yes your right I'm also very new to javascript :-)

            but thanks for replying and offering the help

            Steve

            Comment

            • .:[ ikciu ]:.

              #7
              Re: Two Frames, one action, update both, How??

              Hmm steve <steven.stone4@ btopenworld.com wrote:
              Any ideas will be gratefully received
              Just make action on one form then this form will make action on second form


              --
              ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~
              Ikciu | gg: 718845 | yahoo: ikciu_irsa | www: www.e-irsa.pl

              2be || !2be $this =mysql_query();


              Comment

              • Geoff Berrow

                #8
                Re: Two Frames, one action, update both, How??

                Message-ID: <1160734258.826 626.33780@f16g2 000cwb.googlegr oups.comfrom
                steve contained the following:
                Thanks for the suggestion, but so new that it means very little to
                >me, how do I link to a new frameset?
                You have a page containing two frames. That page is probably called
                index.htm. This contains code to load other .htm files into two
                starting frames. Just make a copy of this file and edit it so that it
                points to two different starting frames. If you save that file as
                newframeset.htm you can jet to it with the following:

                <a href='newframes et.htm' target='_parent '>Log out of menu</a>

                If you want the menu back do the same thing in reverse.

                That said, frames are generally regarded as the work of the devil these
                days because of the difficulty in bookmarking pages.
                --
                Geoff Berrow (put thecat out to email)
                It's only Usenet, no one dies.
                My opinions, not the committee's, mine.
                Simple RFDs http://www.ckdog.co.uk/rfdmaker/

                Comment

                • steve

                  #9
                  Re: Two Frames, one action, update both, How??


                  Geoff Berrow wrote:
                  Message-ID: <1160734258.826 626.33780@f16g2 000cwb.googlegr oups.comfrom
                  steve contained the following:
                  >
                  Thanks for the suggestion, but so new that it means very little to
                  me, how do I link to a new frameset?
                  >
                  You have a page containing two frames. That page is probably called
                  index.htm. This contains code to load other .htm files into two
                  starting frames. Just make a copy of this file and edit it so that it
                  points to two different starting frames. If you save that file as
                  newframeset.htm you can jet to it with the following:
                  >
                  <a href='newframes et.htm' target='_parent '>Log out of menu</a>
                  >
                  If you want the menu back do the same thing in reverse.
                  >
                  That said, frames are generally regarded as the work of the devil these
                  days because of the difficulty in bookmarking pages.
                  --
                  Geoff Berrow (put thecat out to email)
                  It's only Usenet, no one dies.
                  My opinions, not the committee's, mine.
                  Simple RFDs http://www.ckdog.co.uk/rfdmaker/
                  Thanks Geoff,
                  I'll give it a go, and I'm coming to the same opinion on frames ;-)

                  Steve

                  Comment

                  • steve

                    #10
                    Re: Two Frames, one action, update both, How??


                    Geoff Berrow wrote:
                    Message-ID: <1160734258.826 626.33780@f16g2 000cwb.googlegr oups.comfrom
                    steve contained the following:
                    >
                    Thanks for the suggestion, but so new that it means very little to
                    me, how do I link to a new frameset?
                    >
                    You have a page containing two frames. That page is probably called
                    index.htm. This contains code to load other .htm files into two
                    starting frames. Just make a copy of this file and edit it so that it
                    points to two different starting frames. If you save that file as
                    newframeset.htm you can jet to it with the following:
                    >
                    <a href='newframes et.htm' target='_parent '>Log out of menu</a>
                    >
                    If you want the menu back do the same thing in reverse.
                    >
                    That said, frames are generally regarded as the work of the devil these
                    days because of the difficulty in bookmarking pages.
                    --
                    Geoff Berrow (put thecat out to email)
                    It's only Usenet, no one dies.
                    My opinions, not the committee's, mine.
                    Simple RFDs http://www.ckdog.co.uk/rfdmaker/
                    Just to let you know, I took the frames out and shot them, I'm now
                    using CSS and it works lovely

                    :-)

                    Regards

                    Steve

                    Comment

                    • Geoff Berrow

                      #11
                      Re: Two Frames, one action, update both, How??

                      Message-ID: <1160992370.139 846.132760@i3g2 000cwc.googlegr oups.comfrom
                      steve contained the following:
                      >
                      >Just to let you know, I took the frames out and shot them, I'm now
                      >using CSS and it works lovely
                      Good man. :-)
                      --
                      Geoff Berrow (put thecat out to email)
                      It's only Usenet, no one dies.
                      My opinions, not the committee's, mine.
                      Simple RFDs http://www.ckdog.co.uk/rfdmaker/

                      Comment

                      Working...