Frames -- Disable/Enable Menus

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

    Frames -- Disable/Enable Menus

    Hi All,
    Currently i am working in a framed environment where i have
    divided the window as 20% and 80% and the 20% is used for navigation
    purpose and right frame for displaying the orignal content. Now i want
    to Disable ad Enable the menu items which are placed in the left frame
    for navigation purpose.

    Can any of you input me with any idea as how to proceed? If you
    need any other information then please let me know.

    Thanks!
  • Petr Vileta

    #2
    Re: Frames -- Disable/Enable Menus

    Deepan HTML wrote:
    Hi All,
    Currently i am working in a framed environment where i have
    divided the window as 20% and 80% and the 20% is used for navigation
    purpose and right frame for displaying the orignal content. Now i want
    to Disable ad Enable the menu items which are placed in the left frame
    for navigation purpose.
    >
    Can any of you input me with any idea as how to proceed? If you
    need any other information then please let me know.
    >
    There is two possible ways to do it.
    First way is to use javascript and it is relatively simple. You define
    javascript function to control menu item status and call it as onload() at all
    right pages with 2 parameters - item id and needed state. For example
    <body onload="setmenu ('first','disab le')">
    This way you can use for static html pages.

    Second way is to use scripts (Perl CGI or PHP) to generate frameset and left
    page. In this case you must use links to frameset with parameters and this
    script (for generating frameset) pass paramaters to other script for
    generating left menu. This way is relatively more complex but work even if
    user have javascript disabled.

    --
    Petr Vileta, Czech republic
    (My server rejects all messages from Yahoo and Hotmail. Send me your
    mail from another non-spammer site please.)

    Please reply to <petr AT practisoft DOT cz>

    Comment

    • Jonathan N. Little

      #3
      Re: Frames -- Disable/Enable Menus

      Petr Vileta wrote:
      Second way is to use scripts (Perl CGI or PHP) to generate frameset and
      left page. In this case you must use links to frameset with parameters
      and this script (for generating frameset) pass paramaters to other
      script for generating left menu. This way is relatively more complex but
      work even if user have javascript disabled.
      If doing it this way then dispense with frames all together!


      how to include one html file in another - Google Search



      why frames are evil - Google Search

      --
      Take care,

      Jonathan
      -------------------
      LITTLE WORKS STUDIO

      Comment

      • Petr Vileta

        #4
        Re: Frames -- Disable/Enable Menus

        Jonathan N. Little wrote:
        Petr Vileta wrote:
        >
        >Second way is to use scripts (Perl CGI or PHP) to generate frameset
        >and left page. In this case you must use links to frameset with
        >parameters and this script (for generating frameset) pass paramaters
        >to other script for generating left menu. This way is relatively
        >more complex but work even if user have javascript disabled.
        >
        If doing it this way then dispense with frames all together!
        >

        how to include one html file in another - Google Search
        >
        >

        why frames are evil - Google Search
        Yes, I know it, but original question was be about "How to do for frames" ;-)
        (see Subject)
        --
        Petr Vileta, Czech republic
        (My server rejects all messages from Yahoo and Hotmail. Send me your
        mail from another non-spammer site please.)

        Please reply to <petr AT practisoft DOT cz>

        Comment

        • Bergamot

          #5
          Re: Frames -- Disable/Enable Menus

          Petr Vileta wrote:
          Jonathan N. Little wrote:
          >>
          >http://www.google.com/search?hl=en&q...il&btnG=Search
          >why frames are evil - Google Search
          >
          Yes, I know it, but original question was be about "How to do for frames" ;-)
          If you asked how you could shoot yourself in the foot, don't you think
          we'd rather talk you out of it than provide step-by-step instructions?
          (see Subject)
          Welcome to Usenet. ;)

          --
          Berg

          Comment

          • Jonathan N. Little

            #6
            Re: Frames -- Disable/Enable Menus

            Petr Vileta wrote:
            Jonathan N. Little wrote:
            >Petr Vileta wrote:
            >>
            >>Second way is to use scripts (Perl CGI or PHP) to generate frameset
            >>and left page. In this case you must use links to frameset with
            >>parameters and this script (for generating frameset) pass paramaters
            >>to other script for generating left menu. This way is relatively
            >>more complex but work even if user have javascript disabled.
            >>
            >If doing it this way then dispense with frames all together!
            >>
            >http://www.google.com/search?hl=en&q...=Google+Search
            >>
            >how to include one html file in another - Google Search
            >>
            >>
            >http://www.google.com/search?hl=en&q...il&btnG=Search
            >why frames are evil - Google Search
            >
            Yes, I know it, but original question was be about "How to do for
            frames" ;-) (see Subject)
            Yes but if you are employing server-side then there is no need for
            frames in the first place. Frames was an early *hack* to modularize
            webpage development when server-side scripting was being developed and
            both expensive and not widely available. Again with my favorite analogy,
            why would a lumberjack cling to his ax after the development of the
            chainsaw?


            --
            Take care,

            Jonathan
            -------------------
            LITTLE WORKS STUDIO

            Comment

            • David E. Ross

              #7
              Re: Frames -- Disable/Enable Menus

              On 4/21/2008 6:07 AM, Petr Vileta wrote [in part]:
              Deepan HTML wrote:
              >Hi All,
              > Currently i am working in a framed environment where i have
              >divided the window as 20% and 80% and the 20% is used for navigation
              >purpose and right frame for displaying the orignal content. Now i want
              >to Disable ad Enable the menu items which are placed in the left frame
              >for navigation purpose.
              >>
              > Can any of you input me with any idea as how to proceed? If you
              >need any other information then please let me know.
              >>
              There is two possible ways to do it.
              First way is to use javascript and it is relatively simple. You define
              javascript function to control menu item status and call it as onload() at all
              right pages with 2 parameters - item id and needed state. For example
              <body onload="setmenu ('first','disab le')">
              This way you can use for static html pages.
              Gecko-based browsers (Firefox, SeaMonkey, Camino, and others) have the
              user option to disable JavaScript from affecting context menus without
              completely disabling JavaScript.

              --
              David Ross
              <http://www.rossde.com/>

              Have you been using Netscape and now feel abandoned by AOL?
              Then use SeaMonkey. Go to <http://www.seamonkey-project.org/>.

              Comment

              • dorayme

                #8
                Re: Frames -- Disable/Enable Menus

                In article <676505F2nqtelU 2@mid.individua l.net>,
                Bergamot <bergamot@visi. comwrote:
                Petr Vileta wrote:
                Jonathan N. Little wrote: Yes, I know it, but original question was be about "How to do for frames"
                ;-)
                >
                If you asked how you could shoot yourself in the foot, don't you think
                we'd rather talk you out of it than provide step-by-step instructions?
                >
                (see Subject)
                >
                Welcome to Usenet. ;)
                Welcome to the hysterical fundamentalisms that liken using frames to
                shooting oneself.

                --
                dorayme

                Comment

                • dorayme

                  #9
                  Re: Frames -- Disable/Enable Menus

                  In article <3434f$480de160 $40cba7d0$10126 @NAXS.COM>,
                  "Jonathan N. Little" <lws4art@centra l.netwrote:
                  Again with my favorite analogy,
                  why would a lumberjack cling to his ax after the development of the
                  chainsaw?
                  Because it is easy to carry and much easier to sharpen and is much less
                  dangerous. Any other analogies?

                  --
                  dorayme

                  Comment

                  • Jonathan N. Little

                    #10
                    Re: Frames -- Disable/Enable Menus

                    dorayme wrote:
                    In article <3434f$480de160 $40cba7d0$10126 @NAXS.COM>,
                    "Jonathan N. Little" <lws4art@centra l.netwrote:
                    >
                    >Again with my favorite analogy,
                    >why would a lumberjack cling to his ax after the development of the
                    >chainsaw?
                    >
                    Because it is easy to carry and much easier to sharpen and is much less
                    dangerous. Any other analogies?
                    >
                    Obviously you've never chopped down a tree with an ax.

                    --
                    Take care,

                    Jonathan
                    -------------------
                    LITTLE WORKS STUDIO

                    Comment

                    • dorayme

                      #11
                      Re: Frames -- Disable/Enable Menus

                      In article <e1c67$480e7c60 $40cba7d0$20483 @NAXS.COM>,
                      "Jonathan N. Little" <lws4art@centra l.netwrote:
                      dorayme wrote:
                      In article <3434f$480de160 $40cba7d0$10126 @NAXS.COM>,
                      "Jonathan N. Little" <lws4art@centra l.netwrote:
                      Again with my favorite analogy,
                      why would a lumberjack cling to his ax after the development of the
                      chainsaw?
                      Because it is easy to carry and much easier to sharpen and is much less
                      dangerous. Any other analogies?
                      >
                      Obviously you've never chopped down a tree with an ax.
                      This is not at all obvious. What is obvious is that you have never been
                      to the NSW Royal Easter Show to see what a true blue can do with an axe
                      and fast!

                      Perhaps you have never climbed a tree to bring down a branch as thick as
                      a tree and taken up an axe or a simple bow saw for the job because these
                      are much easier and lighter and safer! A good bow saw cutting a branch
                      is easier than is supposed, the weight of the branch opening up the cut
                      nicely.

                      The development of the chain saw does not preclude the use of simpler or
                      older tools.

                      --
                      dorayme

                      Comment

                      • Jonathan N. Little

                        #12
                        Re: Frames -- Disable/Enable Menus

                        dorayme wrote:
                        In article <e1c67$480e7c60 $40cba7d0$20483 @NAXS.COM>,
                        "Jonathan N. Little" <lws4art@centra l.netwrote:
                        >
                        >dorayme wrote:
                        >>In article <3434f$480de160 $40cba7d0$10126 @NAXS.COM>,
                        >> "Jonathan N. Little" <lws4art@centra l.netwrote:
                        >>>
                        >>>Again with my favorite analogy,
                        >>>why would a lumberjack cling to his ax after the development of the
                        >>>chainsaw?
                        >>Because it is easy to carry and much easier to sharpen and is much less
                        >>dangerous. Any other analogies?
                        >>>
                        >Obviously you've never chopped down a tree with an ax.
                        >
                        This is not at all obvious. What is obvious is that you have never been
                        to the NSW Royal Easter Show to see what a true blue can do with an axe
                        and fast!
                        No, but I *obviously* a true blue can do the same much faster and easier
                        with a saw.
                        >
                        Perhaps you have never climbed a tree to bring down a branch as thick as
                        a tree and taken up an axe
                        Use them with both feet on the ground. Axes while in a tree is not a
                        good combination.
                        or a simple bow saw for the job because these
                        are much easier and lighter and safer! A good bow saw cutting a branch
                        is easier than is supposed, the weight of the branch opening up the cut
                        nicely.
                        I use a bow saw.
                        >
                        The development of the chain saw does not preclude the use of simpler or
                        older tools.
                        >
                        If the objective is to drop a tree, and there is an ax and a saw before
                        you, unless one is a masochist, the obvious choice is the saw.

                        --
                        Take care,

                        Jonathan
                        -------------------
                        LITTLE WORKS STUDIO

                        Comment

                        • Ed Mullen

                          #13
                          Re: Frames -- Disable/Enable Menus

                          dorayme wrote:
                          In article <e1c67$480e7c60 $40cba7d0$20483 @NAXS.COM>,
                          "Jonathan N. Little" <lws4art@centra l.netwrote:
                          >
                          >dorayme wrote:
                          >>In article <3434f$480de160 $40cba7d0$10126 @NAXS.COM>,
                          >> "Jonathan N. Little" <lws4art@centra l.netwrote:
                          >>>
                          >>>Again with my favorite analogy,
                          >>>why would a lumberjack cling to his ax after the development of the
                          >>>chainsaw?
                          >>Because it is easy to carry and much easier to sharpen and is much less
                          >>dangerous. Any other analogies?
                          >>>
                          >Obviously you've never chopped down a tree with an ax.
                          >
                          This is not at all obvious. What is obvious is that you have never been
                          to the NSW Royal Easter Show to see what a true blue can do with an axe
                          and fast!
                          Ask that competition performer to keep that up all day long like that.
                          He can't. But he could with a chain saw. Ever hear the old folk song
                          "John Henry?"
                          Perhaps you have never climbed a tree to bring down a branch as thick as
                          a tree and taken up an axe or a simple bow saw for the job because these
                          are much easier and lighter and safer! A good bow saw cutting a branch
                          is easier than is supposed, the weight of the branch opening up the cut
                          nicely.
                          Nonsense. I have. Give me the chain saw every time. I'll do it faster
                          and easier.
                          The development of the chain saw does not preclude the use of simpler or
                          older tools.
                          No, it does not. The choice of tools, however, has nothing to do with
                          the existence of the tools. you are confusing, or deliberately
                          obfuscating, the differences.

                          Normally I ignore your faults in logic because you are being somehow
                          charming or amusing. Don't abuse the leeway you're being afforded.

                          --
                          Ed Mullen
                          Help for Mozilla, Firefox and SeaMonkey. Performances and original music.

                          How good bad music and bad reasons sound when we march against an enemy.
                          - Friedrich Nietzsche

                          Comment

                          • dorayme

                            #14
                            Re: Frames -- Disable/Enable Menus

                            In article <e43ee$480eb9f0 $40cba7d0$30965 @NAXS.COM>,
                            "Jonathan N. Little" <lws4art@centra l.netwrote:
                            dorayme wrote:
                            >

                            The development of the chain saw does not preclude the use of simpler or
                            older tools.
                            >
                            If the objective is to drop a tree, and there is an ax and a saw before
                            you, unless one is a masochist, the obvious choice is the [chain] saw.
                            Not if your big burly axe-murderer neighbour is asleep... (though there
                            is a remedy here, you cut so it falls over his bed-room and kill two ...)

                            Anyway, chainsaws remind me of the Irish migrant seeking work in an
                            Australian forestry company. Have you any experience asks the boss. No.
                            O well, look, 'ave a go but remember, it is piece work and goes by the
                            number of trees you fell. He hands him the chainsaw.

                            End of the day the boss asks him how many and Paddy says, well, just
                            one! The boss shakes his head and pays him a miserable amount and says
                            to come again if he really needs to! Paddy comes again next day and
                            manages two trees. The boss says to come next day and he will go out
                            with him to see if he can give him some tips on technique.

                            Day comes and they set out into the forest and the boss grabs the saw
                            and says "Now, watch my sawing angle and pressure..." as he pulls the
                            chord to start the thing. The Irishman jumps back in fright and screams
                            "What's that noise?"

                            --
                            dorayme

                            Comment

                            • Jonathan N. Little

                              #15
                              Re: Frames -- Disable/Enable Menus

                              dorayme wrote:
                              In article <e43ee$480eb9f0 $40cba7d0$30965 @NAXS.COM>,
                              "Jonathan N. Little" <lws4art@centra l.netwrote:
                              >
                              >dorayme wrote:
                              >>
                              >>The development of the chain saw does not preclude the use of simpler or
                              >>older tools.
                              >>>
                              >If the objective is to drop a tree, and there is an ax and a saw before
                              >you, unless one is a masochist, the obvious choice is the [chain] saw.
                              Actually just about *any* saw beats the ax in efficiency when felling a
                              tree.

                              --
                              Take care,

                              Jonathan
                              -------------------
                              LITTLE WORKS STUDIO

                              Comment

                              Working...