Replace Contextmenu with new menu

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

    #16
    Re: Replace Contextmenu with new menu

    : You assume all your visitors are mouse users?
    No.

    : The browser's inbuilt
    : context menus are accessible via keyboard. Yours is not.
    Thanks for the tip, I'll focus the first link.

    : BTW, yours is not really a context menu at all, since the menu items
    : don't change depending on the element (link vs image vs text).
    Tha's just a temp. problem, after some tips in this group I tried to change
    from <a href="javascrip :.."> to <a onclick="..">
    But MSIE then does not support hover style. So I did put in the href="#".

    : You are only going to annoy your visitors, you know.
    I'll try to make it smaller than the original one (no disabled options that
    do show) and add icons.
    Just an other thing one can design together with the style of their site.
    Like most new things it's hard for the first to change :-)

    Wouter


    Comment

    • DJ WIce

      #17
      Re: Replace Contextmenu with new menu

      : 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.
      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.


      : My menu was made to look good with my browser, not with your site.
      Yeah, and what you are viewing is my site ;-)

      Wouter



      Comment

      • Michael Winter

        #18
        Re: Replace Contextmenu with new menu

        On Fri, 16 Jan 2004 01:24:39 +0100, Lasse Reichstein Nielsen
        <lrn@hotpop.com > wrote:
        [color=blue]
        > "DJ WIce" <contextmenu@dj wice.com> writes:
        >[color=green]
        >> Do you know why #ccc and #cccccc exists? I mean what is prefered?[/color]
        >
        > They are completely equivalent, and neither is prefererred. Use
        > whatever you like better. The short notation is probably just to
        > save space.[/color]

        Not quite true: all #rgb codes can be represented with the #rrggbb format,
        but the reverse is not true. The expanded format allows for the
        specification of more colours.

        There are probably two forms due to the evolution in monitor colour
        capabilities[1].

        Mike


        [1] Obvious speculation.

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

        Comment

        • Michael Wilcox

          #19
          Re: Replace Contextmenu with new menu

          DJ WIce <contextmenu@dj wice.com> wrote:[color=blue]
          > I'm now just working on the scripting. And getting it to work like to
          > normal menu.[/color]

          What is the point of putting in so much effort into a feature that's already
          implemented in browsers?
          [color=blue][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]

          I came to your site for its content. Your job as an author is to provide
          that content in an organized fashion with proper structure, both in your
          code and in site navigation. It is *not* your job to alter my browser
          preferences or interfere in anyway with the normal operation of my browser.
          --
          Michael Wilcox
          mjwilco at yahoo dot com
          Essential Tools for the Web Developer - http://mikewilcox.t35.com


          Comment

          • Michael Wilcox

            #20
            Re: Replace Contextmenu with new menu

            DJ WIce <contextmenu@dj wice.com> wrote:[color=blue]
            > I'll try to make it smaller than the original one (no disabled
            > options that do show) and add icons.
            > Just an other thing one can design together with the style of their
            > site. Like most new things it's hard for the first to change :-)[/color]

            First of all, you're not changing it, you're replacing it, and doing a poor
            job. Second, if the context menu was meant to accept style suggestions,
            there would be a way to do so with simple CSS. Third, you don't know what's
            on the user's context menu (it's not the same for all operating systems and
            browsers) and you can't replicate the features they're expecting.
            --
            Michael Wilcox
            mjwilco at yahoo dot com
            Essential Tools for the Web Developer - http://mikewilcox.t35.com


            Comment

            • DJ WIce

              #21
              Re: Replace Contextmenu with new menu

              : First of all, you're not changing it, you're replacing it, and doing a
              poor
              : job.
              That's just a mater of opinion. If I wanted that your opinion on me
              replacing the menu, I would have gone to alt.html.critiq ue.

              : Second, if the context menu was meant to accept style suggestions,
              : there would be a way to do so with simple CSS.
              Sorry, this is a non argument. If this argument would hold there would not
              have been CSS 2 and worse: you would never ever have phoned your
              wife/girlfriend/friends. Simply because a phone was not intended to use it
              like that when it was designed.


              : Third, you don't know what's on the user's context menu (it's not the same
              for all operating systems and
              : browsers) and you can't replicate the features they're expecting.
              Maybe I can make features that they do not have in that menu?
              Maybe this is just a test case for me, testing what is possible?

              Do you know MSIE accepts that if you press key x that if tell MSIE that it
              was a Q it beleves me?
              Code:

              document.onkeyd own = function(e)
              {
              if (document.all)
              {
              var kC = event.keyCode;
              switch(kC)
              {
              case 40 : /* down */; event.keyCode=9 ; return true;
              default : return true;
              }
              }
              }


              Now tell me, was that inteded when you pressed the down arrow? That your
              browser thinks it's a TAB?
              No? Well MSIE accepts it that I define event.keyCode.


              By the way do you know how I can do this for Shift+Tab, so I can replace
              arrow up?


              Wouter


              Comment

              • DJ WIce

                #22
                Re: Replace Contextmenu with new menu

                : >> My menu was made to look good with my browser, not with your site.
                : > Yeah, and what you are viewing is my site ;-)
                :
                : I came to your site for its content. Your job as an author is to provide
                : that content in an organized fashion with proper structure, both in your
                : code and in site navigation.
                Yes, and here is a definition part that's your discussion point:

                site navigation.

                I think that includes all the things you can do with my website.
                Your opinion is that your browser interface is perfect.
                I'm not always convinced all people would think that after they seen some
                new.

                Internet was never intended to have banners and commercial advertisements.
                But it's the one reason why it still exists in this lange scale; they pay
                the high way.
                (Even though I don't like them on websites or worse in e-mail).


                : It is *not* your job to alter my browser preferences or
                : interfere in anyway with the normal operation of my browser.
                I know, and I will never do that. If you have a browser that does allow
                interfearance.. why do you use it?
                You just talked about your browser being exactly like you want it?


                Ciao and don't be to angry, don't try to find the sence of it. I'm just
                finding the limit of the technological posibilities. Nothing more, nothing
                less.
                Wouter


                Comment

                • Randy Webb

                  #23
                  Re: Replace Contextmenu with new menu

                  DJ WIce wrote:

                  <--snip-->
                  [color=blue]
                  >
                  > Do you know MSIE accepts that if you press key x that if tell MSIE that it
                  > was a Q it beleves me?
                  > Code:
                  >
                  > document.onkeyd own = function(e)
                  > {
                  > if (document.all)[/color]
                  <--snip-->

                  Just a side note, and an FYI one. MSIE is not the only browser that can
                  pass that test. Opera, in IE spoof mode, and several other browsers
                  emulate the document.all (pass the test).


                  if (document.all &! document.layers &! window.opera){
                  alert('I think you are using MSIE but I could still be wrong')
                  }

                  the !window.opera excludes Opera.
                  the !document.layer s excludes a browser (the name eludes me, Jim Ley
                  named it once for me) that supports both document.all and document.layers .

                  --
                  Randy

                  Comment

                  • Michael Wilcox

                    #24
                    Re: Replace Contextmenu with new menu

                    DJ WIce <contextmenu@dj wice.com> wrote:[color=blue]
                    > I think that includes all the things you can do with my website.
                    > Your opinion is that your browser interface is perfect.
                    > I'm not always convinced all people would think that after they seen
                    > some new.[/color]

                    And once they leave your site, will they ever see your navigation again?
                    Does it even matter if they like it if they can never use it?
                    [color=blue][color=green]
                    >> It is *not* your job to alter my browser preferences or
                    >> interfere in anyway with the normal operation of my browser.[/color]
                    > I know, and I will never do that.[/color]

                    When I right-clicked on your page and saw a menu other than my browser's and
                    without the features I wanted, then you interfered with my browser.
                    [color=blue]
                    > If you have a browser that does
                    > allow interfearance.. why do you use it?[/color]

                    If, in this case, intereference means JavaScript, than no, I don't allow it.
                    I turn it off unless I'm testing a page like yours or some site was poorly
                    designed to require it.

                    JavaScript, while not necessarily a bad idea, was horribly abused by the
                    "developers " at Microsoft and by authors who think they should (or even can)
                    have ultimate control over another's browser.
                    [color=blue]
                    > You just talked about your browser being exactly like you want it?[/color]

                    Yep, that's what Edit > Preferences is for.
                    --
                    Michael Wilcox
                    mjwilco at yahoo dot com
                    Essential Tools for the Web Developer - http://mikewilcox.t35.com


                    Comment

                    • kchayka

                      #25
                      Re: Replace Contextmenu with new menu

                      DJ WIce wrote:
                      [color=blue]
                      > : First of all, you're not changing it, you're replacing it, and doing a
                      > : poor job.
                      > That's just a mater of opinion. If I wanted that your opinion on me
                      > replacing the menu, I would have gone to alt.html.critiq ue.[/color]

                      Here's a heads-up for ya - you'll most likely get roasted in
                      alt.html.critiq ue for trying to mess with the user's browser. ;)
                      [color=blue]
                      > : you can't replicate the features they're expecting.
                      > Maybe I can make features that they do not have in that menu?[/color]

                      A user is accustomed to having their context menus work the same
                      regardless of what web site they are on. You are trying to make it
                      different. This does not help the user at all, but will only confuse or
                      annoy them.
                      [color=blue]
                      > Maybe this is just a test case for me, testing what is possible?[/color]

                      Just because you can, doesn't mean you should. If you care about your
                      users, you won't mess around with their UI.
                      [color=blue]
                      > Do you know MSIE accepts that if you press key x that if tell MSIE that it
                      > was a Q it beleves me?[/color]

                      And what if the visitor isn't using IE?

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

                      Comment

                      • Brian

                        #26
                        Re: Replace Contextmenu with new menu

                        DJ WIce wrote:[color=blue]
                        >
                        > 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]

                        One which fails to work as advertised in Mozilla. "Add to favorites"
                        does exactly nothing. And how could it, since "favorites" is
                        Microsoft-specific. So what good is the script?
                        [color=blue]
                        > It works nice in MSIE[/color]

                        ....for which it was obviously designed...
                        [color=blue]
                        > but on Netscape (and probable other browsers) it
                        > stays on the same place (does not "open'' where the mouse is).[/color]

                        I'm not sure what you mean. Using Mozilla 1.3/Win2k, the context menu
                        pops up where the normal one would, and looks all pretty and everything.
                        [color=blue]
                        > And the links do not work when you click on them.[/color]

                        back, forward, refresh, view source, and use standard menu all work in
                        Mozilla. I didn't try print, so I cannot say what happens with that
                        one. Add to favorites does not work (as I said above). Neither does
                        "make home page."

                        Trying to make HTML a programming interface (target="_new" anyone?) is
                        fraught with problems. Using javascript as an end run to hijack the
                        browser is only going to introduce the same issues.
                        [color=blue]
                        > If anyone has sugestions on how to improve it, please let me know.[/color]

                        For Mozilla? You cannot make it fully functional, that's for sure.

                        The menu looks quite nice, and may have some very elegant code behind
                        it. But I'm afraid there's no way to improve it for my preferred
                        browser. And even in MSIE, it's terrible in terms of usability for the
                        context menu to change from site to site, just like it's terrible for
                        the fixed menus to change. The best thing you could do for the web is
                        drop the idea.

                        --
                        Brian
                        follow the directions in my address to email me

                        Comment

                        • Richard Cornford

                          #27
                          Re: Replace Contextmenu with new menu

                          "Randy Webb" <hikksnotathome @aol.com> wrote in message
                          news:K-2dnVU60Na1yJrdR Vn-vA@comcast.com. ..
                          <snip>[color=blue][color=green]
                          >>Do you know MSIE accepts that if you press key x that if tell
                          >>MSIE that it was a Q it beleves me?
                          >> Code:
                          >>
                          >> document.onkeyd own = function(e)
                          >> {
                          >> if (document.all)[/color]
                          ><--snip-->
                          >Just a side note, and an FYI one. MSIE is not the only browser
                          >that can pass that test. ...[/color]
                          <snip>[color=blue]
                          >if (document.all &! document.layers &! window.opera){
                          >alert('I think you are using MSIE but I could still be wrong')[/color]

                          Konqueror 3 (Safari), IceBrowser 5, iCab and NetFront (at least) all
                          also make it in here. I think that they all support a - keyCode -
                          property on a global - event - object but I doubt that they will behave
                          consistently in response to having that - keyCode - property
                          re-assigned.
                          [color=blue]
                          >}[/color]

                          There are objects for which their existence would currently allow the
                          inference that the browser in use was IE (5.0+). But given the extent to
                          which, for example, IceBrowser actively spoofs the IE DOM (global
                          ActiveXObject constructor, filters collections on elements, etc.) it is
                          unlikely that any test that attempts to infer the browser make or
                          version from the existence of objects in its DOM is going to stay valid
                          for long. Even IE's conditional comments could be implemented by another
                          browser if they were seen to be being employed as a mechanism to exclude
                          it from a significant number of sites.

                          In principal[1] the safe test for the availability of the required
                          feature would be:-

                          if((typeof event != 'undefined')&&
                          (typeof event.keyCode == 'number')){
                          ... // safe to access event.keyCode
                          }

                          - but the only way of seeing if assigning a new value to - keyCode - had
                          the desired result would be to try it and then monitor the browser to
                          see if it was possible to work out what the result was.
                          [color=blue]
                          >the !window.opera excludes Opera.
                          >the !document.layer s excludes a browser (the name eludes me,
                          >Jim Ley named it once for me) that supports both document.all
                          >and document.layers .[/color]

                          It was Omniweb.

                          Richard.

                          [1] The principal being: testing the browser for the existence of the
                          features most closely associated with the code that may be executed if
                          they exist.


                          Comment

                          • Richard Cornford

                            #28
                            Re: Replace Contextmenu with new menu

                            "DJ WIce" <contextmenu@dj wice.com> wrote in message
                            news:bu7iq5$qo6 $1@news.tudelft .nl...[color=blue]
                            >: First of all, you're not changing it, you're replacing it,
                            >: and doing a poor job.[/color]
                            [color=blue]
                            >That's just a mater of opinion.[/color]

                            You are (at least attempting to) replace the context menu, so that
                            cannot be opinion.

                            You are doing a poor job, because you are failing to replace it at all
                            on Opera versions (for example). Your replacement can only be an
                            impoverished version of the original at best because you have no way of
                            telling what features were in the original and are incapable of
                            reproducing (at all, or fully) many of the features that you know would
                            have existed on the context menus of common browsers.
                            [color=blue]
                            >If I wanted that your opinion on me replacing the
                            >menu, I would have gone to alt.html.critiq ue.[/color]

                            If it is scripted and you post it to comp.lang.javas cript you are
                            inviting opinions on how viable/sensible the script is.

                            <snip>[color=blue]
                            >Maybe I can make features that they do not have in that menu?[/color]

                            When a user activates the context menu of their browser it is not a
                            speculative activity intended to give them the opportunity to see what
                            new features may have been provided. It is an action taken with the
                            expectation that a known set of features will be available to them. If
                            you take any of those features away, or break them with a bad
                            implementations (and especially the one they intended to use), it
                            doesn't matter how spectacular what you put in its place may be, the
                            user will still be frustrated.
                            [color=blue]
                            >Maybe this is just a test case for me, testing what is possible?[/color]
                            <snip>

                            Then you should want to be told if you are wasting your efforts on
                            something with no viable Internet applications.

                            Richard.


                            Comment

                            • Stephen Poley

                              #29
                              Re: Replace Contextmenu with new menu

                              On Thu, 15 Jan 2004 22:56:32 +0000, Steve Pugh <steve@pugh.net > wrote:
                              [color=blue]
                              >It doesn't work at all in Opera 7.23 (even when I set my preference to
                              >allow JavaScript to access the right mouse click, which I normally
                              >don't allow. Can any Opera users remember whether that's off or on by
                              >default?)[/color]

                              I've never changed that setting as far as I can rememember; it's off in
                              my 7.23.

                              --
                              Stephen Poley

                              Deze pagina bestaat niet of is niet meer beschikbaar. Oude XS4ALL-homepages zijn soms nog terug te vinden via webarchieven.

                              Comment

                              • DJ WIce

                                #30
                                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.

                                Wouter


                                Comment

                                Working...