Replace Contextmenu with new menu

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

    #31
    Re: Replace Contextmenu with new menu

    : do:
    : <a href="pageRequi resJS.html" onclick="someco de();return false"> ... </a>
    : Then you can use the link to tell people that your page requires
    : Javascript, so people without it will know why it fails instead of
    : just nothing happening.

    I did this exept the "pageRequiresJS .html" part.
    Do people even see my menu if JS is off?
    I mean oncontextmenu is a JS event right?
    And I write it via JS on their page.

    But I'm not shure how browsers react on a onclick event and a link in one
    anchor tag.
    I mean if the onclick returns false, do all browsers never load the link?

    Wouter


    Comment

    • Fabian

      #32
      Re: Replace Contextmenu with new menu

      DJ WIce hu kiteb:
      [color=blue][color=green]
      >> Having the "Disable this" text doesn't make it okay to toy with the
      >> user's browser. What if I wanted to copy and paste? That's not even
      >> on your menu.[/color]
      > I'm now just working on the scripting. And getting it to work like to
      > normal menu.
      > When selection is done I can disable the menu, that a nice suggestion!
      > Thanks.
      >
      >[color=green]
      >> My menu was made to look good with my browser, not with your site.[/color]
      > Yeah, and what you are viewing is my site ;-)[/color]

      If I find that the site navigation tools, such as the user interface,
      have been manipulated, my first thought is that the webpage contains
      potentially hostile content, and my instinctive reaction is to close the
      window.

      Oops, you lost another viewer.


      --
      --
      Fabian
      Visit my website often and for long periods!


      Comment

      • Michael Winter

        #33
        Re: Replace Contextmenu with new menu

        On Fri, 16 Jan 2004 12:05:15 +0100, DJ WIce <contextmenu@dj wice.com> wrote:

        <snip>
        [color=blue]
        > But I'm not shure how browsers react on a onclick event and a link in one
        > anchor tag.
        > I mean if the onclick returns false, do all browsers never load the link?[/color]

        Consider:

        <a href="pageRequi resJS.html" onclick="someco de();return false"[color=blue]
        >...</a>[/color]

        If the browser understand intrinsic events and JavaScript is enabled,
        somecode() will be executed and the event (the navigation to
        pageRequiresJS. html) will be cancelled, due to the 'return false'
        statement.

        If the browser doesn't implement intrinsic events, or JavaScript is
        disabled, the entire onclick event is ignored and the browser navigates to
        pageRequiresJS. html.

        JavaScript-enabled pages should use this behaviour to provide alternative
        content to users who choose not to use JavaScript, or have browsers that
        don't support it.

        Mike

        --
        Michael Winter
        M.Winter@blueyo nder.co.invalid (replace ".invalid" with ".uk" to reply)

        Comment

        • kchayka

          #34
          Re: Replace Contextmenu with new menu

          DJ WIce wrote:[color=blue]
          > : One which fails to work as advertised in Mozilla. "Add to favorites"
          > : does exactly nothing.
          > Thanks I did disable it (I think) in Mozilla.[/color]

          So you're making it even less useful than it was before? How is a
          seriously limited-function context menu supposed to be a good thing for
          the user? Please, just throw the whole idea away right now.

          --
          To email a reply, remove (dash)un(dash). Mail sent to the un
          address is considered spam and automatically deleted.

          Comment

          • DJ WIce

            #35
            Re: Replace Contextmenu with new menu

            : > : One which fails to work as advertised in Mozilla. "Add to favorites"
            : > : does exactly nothing.
            : > Thanks I did disable it (I think) in Mozilla.
            : So you're making it even less useful than it was before?
            ?? No the functions that had no function in some browsers, I did remove for
            people using those browsers.

            : How is a seriously limited-function context menu supposed to be
            : a good thing for the user?
            Never read: "Less is more"?
            So it can be, just need to seach the right less version ;-) LOL.

            : Please, just throw the whole idea away right now.
            It seem to me that you do not understand that someone can just playa round
            and try what's possible before one thinks of the usefullness. If people
            would always pre-consider that, then for example SMS would never have been
            "invented".

            Wouter


            Comment

            • DJ WIce

              #36
              Re: Replace Contextmenu with new menu


              : Consider:
              :
              : <a href="pageRequi resJS.html" onclick="someco de();return false"
              : >...</a>
              :
              : If the browser understand intrinsic events and JavaScript is enabled,
              : somecode() will be executed and the event (the navigation to
              : pageRequiresJS. html) will be cancelled, due to the 'return false'
              : statement.
              :
              : If the browser doesn't implement intrinsic events, or JavaScript is
              : disabled, the entire onclick event is ignored and the browser navigates to
              : pageRequiresJS. html.

              Thanks.

              Btw. why do you leave out the ; after false?

              Wouter


              Comment

              • Michael Winter

                #37
                Re: Replace Contextmenu with new menu

                On Fri, 16 Jan 2004 15:19:06 +0100, DJ WIce <contextmenu@dj wice.com> wrote:
                [color=blue]
                > : <a href="pageRequi resJS.html" onclick="someco de();return false"
                > : >...</a>[/color]

                <snip>
                [color=blue]
                > Btw. why do you leave out the ; after false?[/color]

                No particular reason (though sometimes, it makes the difference between
                wrapping, or not wrapping, a line of HTML). There are times when leaving
                out the terminating semi-colon is valid (syntactically) . Unless someone
                tells me otherwise after I make this post, this is one of those times.
                When I write scripts, rather than event handlers, I always include the
                semi-colon at the end of every statement.

                Mike

                --
                Michael Winter
                M.Winter@blueyo nder.co.invalid (replace ".invalid" with ".uk" to reply)

                Comment

                • Andrew Thompson

                  #38
                  Re: Replace Contextmenu with new menu

                  "DJ WIce" <contextmenu@dj wice.com> wrote in message
                  news:bu8rkk$a40 $1@news.tudelft .nl...
                  .....
                  | So it can be, just need to seach the right less version ;-)
                  LOL.

                  What ..does that sentence mean?


                  Comment

                  • Jim Ley

                    #39
                    Re: Replace Contextmenu with new menu

                    On Fri, 16 Jan 2004 15:15:12 +0100, "DJ WIce" <contextmenu@dj wice.com>
                    wrote:
                    [color=blue]
                    >: Please, just throw the whole idea away right now.
                    >It seem to me that you do not understand that someone can just playa round
                    >and try what's possible before one thinks of the usefullness. If people
                    >would always pre-consider that, then for example SMS would never have been
                    >"invented".[/color]

                    If you want to extend the possibilities of a context menu, makes much
                    more sense to demonstrate to your visitors how to do it efficiently.

                    e.g. http://www.mattkruse.com/contextmenu/

                    Jim.
                    --
                    comp.lang.javas cript FAQ - http://jibbering.com/faq/

                    Comment

                    • Michael Rozdoba

                      #40
                      Re: Replace Contextmenu with new menu

                      Andrew Thompson wrote:
                      [color=blue]
                      > "DJ WIce" <contextmenu@dj wice.com> wrote in message
                      > news:bu8rkk$a40 $1@news.tudelft .nl... .... | So it can be, just need
                      > to seach the right less version ;-) LOL.
                      >
                      > What ..does that sentence mean?[/color]

                      If you're familiar with the expression "less is more" & you're aware
                      that 'more' is a utility to page output to the screen (*nix & dos), &
                      that 'less' is an extension of 'more' (allows scrolling back up through
                      the output), which no doubt comes in many flavours, you should then
                      understand.

                      BTW FWIIW I also think the menu, as anything other than a coding
                      exercise, is horrible from an HCI point of view.

                      --
                      Michael
                      m r o z a t u k g a t e w a y d o t n e t

                      Comment

                      • DJ WIce

                        #41
                        Re: Replace Contextmenu with new menu

                        : If you want to extend the possibilities of a context menu, makes much
                        : more sense to demonstrate to your visitors how to do it efficiently.
                        :
                        : e.g. http://www.mattkruse.com/contextmenu/

                        Ah you want me to trick visitors to download a .reg and so have my menu :-)
                        Well, it's just coding for fun :)
                        Like you must have noticed when the color of the page in NN is like the
                        default color of NN 7. And in IE it's that of the classic theme.
                        I did "even" remove the small black line from your browser window ;-)
                        For that you need not to specify the dtd else it won't work :)

                        Wouter


                        Comment

                        • bill drescher

                          #42
                          Re: Replace Contextmenu with new menu

                          DJ WIce wrote:[color=blue]
                          > Hi all,
                          >
                          > I did make a script/css thing to replace the contextmenu on the website with
                          > a new one: http://www.djwice.com/contextmenu.html
                          >
                          > It works nice in MSIE, but on Netscape (and probable other browsers) it
                          > stays on the same place (does not "open'' where the mouse is). And the links
                          > do not work when you click on them.
                          >
                          > If anyone has sugestions on how to improve it, please let me know.
                          >
                          > Thanks,
                          > Wouter
                          >
                          >[/color]
                          BTW, it works fine in Mozilla 1.5b

                          --
                          Bill Drescher
                          william {at} TechServSys {dot} com

                          Comment

                          • kchayka

                            #43
                            Re: Replace Contextmenu with new menu

                            bill drescher wrote:[color=blue]
                            > DJ WIce wrote:[color=green]
                            >>
                            >> I did make a script/css thing to replace the contextmenu on the website with
                            >> a new one: http://www.djwice.com/contextmenu.html
                            >>[/color]
                            > BTW, it works fine in Mozilla 1.5b[/color]

                            No, it does not. "Works fine" is more than just the absence of
                            JavaScript errors. The scripted context menu neither has the same
                            options as mozilla, nor do the options change depending on which page
                            element has focus, nor is it accessible via keyboard.

                            Functionally, it is vastly inferior to the browser's context menus, so
                            it does not "work" at all as a replacement.

                            --
                            To email a reply, remove (dash)un(dash). Mail sent to the un
                            address is considered spam and automatically deleted.

                            Comment

                            • Jim Ley

                              #44
                              Re: Replace Contextmenu with new menu

                              On Fri, 16 Jan 2004 21:08:03 +0100, "DJ WIce" <contextmenu@dj wice.com>
                              wrote:
                              [color=blue]
                              >: If you want to extend the possibilities of a context menu, makes much
                              >: more sense to demonstrate to your visitors how to do it efficiently.
                              >:
                              >: e.g. http://www.mattkruse.com/contextmenu/
                              >
                              >Ah you want me to trick visitors to download a .reg and so have my menu :-)[/color]

                              No, you stated your reason for doing this was in that innovation in
                              contextmenu was good, and you're right it is, which is why Mozilla, IE
                              and others allow it to be modified easily.
                              [color=blue]
                              >Like you must have noticed when the color of the page in NN is like the
                              >default color of NN 7.[/color]

                              Who knows what you're talking about?
                              [color=blue]
                              > And in IE it's that of the classic theme.[/color]

                              Why, why not use the colour of my contextmenu if you're wanting to be
                              consistent?

                              Jim.
                              --
                              comp.lang.javas cript FAQ - http://jibbering.com/faq/

                              Comment

                              • Christopher Finke

                                #45
                                Re: Replace Contextmenu with new menu

                                "Lasse Reichstein Nielsen" <lrn@hotpop.com > wrote in message
                                news:n08oq0cw.f sf@hotpop.com.. .[color=blue]
                                > "DJ WIce" <contextmenu@dj wice.com> writes:
                                >[color=green]
                                > > : Suggestion: Trash it and stop screwing with my mouse.
                                > >
                                > > Sugestion: look at what you see before complaining; click the option on[/color][/color]
                                the[color=blue][color=green]
                                > > bottom of the menu...[/color]
                                >
                                > Didn't see a thing. I use Opera :) Anyway, I did check in IE and
                                > Mozilla ...
                                >
                                > Neither allows me to pop the menu down again when it is up, except by
                                > chosing an entry.[/color]

                                I checked in IE and Mozilla as well (versions 6.0 and 1.6 respectively) and
                                had no problems with the menu. Right-clicking showed the menu, and clicking
                                outside of it hid it again.

                                Christopher Finke


                                Comment

                                Working...