Re: [jQuery] New plugin: ContextMenu

2007-03-15 Thread Chris Domigan

Thanks for the research, Joel :)
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] New plugin: ContextMenu

2007-03-15 Thread Joel Birch
On 15/03/2007, at 11:31 PM, arnaud sellenet wrote:
> Thanks for this nice plugin, perfect for intranet or such indeed.
> I've tested your demo page with :
> Safari 2
> Firefox 2 mac (extensions : Firebug, Selenium IDE, codetech,
> cssViewer, dummy lipsum, errorzilla mod, measureit, newsfox,
> quickrestart, tab mix plus, view source chart, web developer)
>
> Both worked as expected.

I disabled all my Firefox extensions and re-enabled them one by one  
and found the culprit responsible for causing the misplacement of the  
menus. All-in-One Gestures 0.18.0 extension. Not sure what can be  
done about it :/

Cheers
Joel.

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] New plugin: ContextMenu

2007-03-15 Thread arnaud sellenet
Thanks for this nice plugin, perfect for intranet or such indeed.
I've tested your demo page with :
Safari 2
Firefox 2 mac (extensions : Firebug, Selenium IDE, codetech,  
cssViewer, dummy lipsum, errorzilla mod, measureit, newsfox,  
quickrestart, tab mix plus, view source chart, web developer)

Both worked as expected.


Le 15 mars 07 à 13:11, Joel Birch a écrit :

> On 09/03/2007, at 10:13 AM, Chris Domigan wrote:
>> Hi everyone
>>
>> The first version of my new ContextMenu plugin has been released.
>> You can grab it here:
>>
>> http://www.trendskitchens.co.nz/jquery/contextmenu/
>>
>> ContextMenu lets you selectively replace the browser's right click
>> menu with one of your own. It is fully customisable and allows you
>> to bind context-sensitive actions to each menu option.
>>
>> Big thanks to Joern Zaefferer whose excellent Tooltip plugin
>> provided much inspiration.
>>
>> This is my first plugin for jQuery and any feedback/comments/
>> improvements would be most appreciated!
>>
>> Cheers,
>>
>> Chris Domigan
>
> With Mac FF 2.0.0.2 on the demo page, when I right-click on the areas
> indicated, the menu does appear (unlike my earlier feedback) *except*
> that it is positioned way up the page so you have to scroll up to see
> it. It seems that page scroll is not accounted for when positioning
> the menu (for Mac FF only - works fine in Safari and I have not
> checked it on a PC).
>
> Just letting you know. Love the plugin.
>
> Joel.
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] New plugin: ContextMenu

2007-03-15 Thread Joel Birch
On 09/03/2007, at 10:13 AM, Chris Domigan wrote:
> Hi everyone
>
> The first version of my new ContextMenu plugin has been released.  
> You can grab it here:
>
> http://www.trendskitchens.co.nz/jquery/contextmenu/
>
> ContextMenu lets you selectively replace the browser's right click  
> menu with one of your own. It is fully customisable and allows you  
> to bind context-sensitive actions to each menu option.
>
> Big thanks to Joern Zaefferer whose excellent Tooltip plugin  
> provided much inspiration.
>
> This is my first plugin for jQuery and any feedback/comments/ 
> improvements would be most appreciated!
>
> Cheers,
>
> Chris Domigan

With Mac FF 2.0.0.2 on the demo page, when I right-click on the areas  
indicated, the menu does appear (unlike my earlier feedback) *except*  
that it is positioned way up the page so you have to scroll up to see  
it. It seems that page scroll is not accounted for when positioning  
the menu (for Mac FF only - works fine in Safari and I have not  
checked it on a PC).

Just letting you know. Love the plugin.

Joel.

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] New plugin: ContextMenu

2007-03-12 Thread agent2026

I know you're working on it, but in regards to the relevant context subject I
just discovered that Yahoo!Mail has this implemented very nicely with menus
relevant to what you are clicking on.  You can even rename folders as though
it were your desktop.  Yahoo! has it's own libraries of course, but I don't
see anything that shouldn't be doable with jQuery.

Anyway, just thought it might be useful for you.

Adam
-- 
View this message in context: 
http://www.nabble.com/New-plugin%3A-ContextMenu-tf3372757.html#a9438669
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] New plugin: ContextMenu

2007-03-10 Thread Howard Jones
Chris Domigan wrote:
> Hi everyone
>
> The first version of my new ContextMenu plugin has been released. You
> can grab it here:
Hi again Chris,

One (fairly specific) bug report:  for my particular application[*], I
use client-side imagemaps with events attached to them to select items
on a server-drawn image and pop up a properties box. I just tried adding
context-menus to this, since it'd be a pretty nice addition.

It seems that in IE6, you can't attach context menus to AREA tags, but
in Firefox and Safari you can. Regular click events do work, because
that's what I use currently for my properties popup. I am planning to
add draggable elements to the map though, so I was hoping to push what
is currently a click into a context menu, to save me having to figure
out if the user is clicking, double-clicking or dragging.

Of course, it's quite possible this is an IE6 wierdness, or even the
spec. I find that AREA is the poor cousin in HTML/DOM docs generally.

Howie

[*] http://www.network-weathermap.com/

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] New plugin: ContextMenu

2007-03-10 Thread Chris Domigan

Howard, thanks for the comments. Something like you suggest is already in
the works :)

Chris
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] New plugin: ContextMenu

2007-03-10 Thread Howard Jones
Chris Domigan wrote:
> Hi everyone
>
> The first version of my new ContextMenu plugin has been released. You
> can grab it here:
Chris,

This is a really nice plugin! One suggestion that springs to mind for it
though - the "context" part of context menu always implied to me that
the options are relevant to the thing being clicked on. Is there any way
to get a callback just before the menu is shown, which is passed the id
of the clicked object? This way round, it would allow a single
class-selector to add all the menus, even though the specific menu might
be slightly different for each item.

The situation I am thinking of is in something like Request Tracker
(www.bestpractical.com), where you get a list of search results, each of
which has a series of verbs that could be applied to it. However,
depending on your permissions, you might not be able to perform all of
those on all objects. A simple callback that allowed some user-supplied
function to mess with the menu a little before it was shown could allow
those items to be greyed-out/hidden/whatever based on external data
(which is the user's problem, not yours, then).

If I get some spare time, I might have a try at add this functionality
myself, if other commitments allow, just to get my feet wet with jQuery
plugins too :-)

Howie

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] New plugin: ContextMenu

2007-03-09 Thread Chris Domigan

Hi Danial,

On 10/03/07, Danial Tzadeh <[EMAIL PROTECTED]> wrote:


Hi All,

Is it possible to make it with left click too? could be a nice
addition as many users don't know they have to right click.

Cheers,
Danial



Yep I'll try and put this in the next version. Something in the settings
like mouseButton: "right"/"left"/"both"?

Chris
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] New plugin: ContextMenu

2007-03-09 Thread Chris Domigan

Hi Jorn,

Seems like you didn't like the Tooltip approach of prividing only the

very basics of inline-styles and the rest via stylesheets.



Yeah the whole styling thing was something I wasn't too sure about. On the
one hand I thought it might be handy not to have to worry about a separate
css file, and just bundle all the styling into the plugin. But I might
reconsider in light of the points you've made. I'll send you an email off
list to pick your brain :)

Chris
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] New plugin: ContextMenu

2007-03-09 Thread Danial Tzadeh
Hi All,

Is it possible to make it with left click too? could be a nice
addition as many users don't know they have to right click.

Cheers,
Danial

On 3/9/07, Jörn Zaefferer <[EMAIL PROTECTED]> wrote:
> Chris Domigan schrieb:
> > Hi everyone
> >
> > The first version of my new ContextMenu plugin has been released. You
> > can grab it here:
> >
> > http://www.trendskitchens.co.nz/jquery/contextmenu/
> > 
> >
> > ContextMenu lets you selectively replace the browser's right click
> > menu with one of your own. It is fully customisable and allows you to
> > bind context-sensitive actions to each menu option.
> >
> > Big thanks to Joern Zaefferer whose excellent Tooltip plugin provided
> > much inspiration.
> >
> > This is my first plugin for jQuery and any
> > feedback/comments/improvements would be most appreciated!
> Great job!
>
> Seems like you didn't like the Tooltip approach of prividing only the
> very basics of inline-styles and the rest via stylesheets.
>
> You could move both hiding of the menu on page load (doesn't work
> without JS) and most of the formatting styles into a stylesheet, I'd
> prefer that solution.
>
> It's difficult to override the default inline-styles from a stylesheet,
> and I like to keep that seperated.
>
> I'm curious about more features to come, and will keep this in mind to
> use it on the first possible occasion.
>
> --
> Jörn Zaefferer
>
> http://bassistance.de
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] New plugin: ContextMenu

2007-03-09 Thread Jörn Zaefferer
Chris Domigan schrieb:
> Hi everyone
>
> The first version of my new ContextMenu plugin has been released. You 
> can grab it here:
>
> http://www.trendskitchens.co.nz/jquery/contextmenu/ 
> 
>
> ContextMenu lets you selectively replace the browser's right click 
> menu with one of your own. It is fully customisable and allows you to 
> bind context-sensitive actions to each menu option.
>
> Big thanks to Joern Zaefferer whose excellent Tooltip plugin provided 
> much inspiration.
>
> This is my first plugin for jQuery and any 
> feedback/comments/improvements would be most appreciated!
Great job!

Seems like you didn't like the Tooltip approach of prividing only the 
very basics of inline-styles and the rest via stylesheets.

You could move both hiding of the menu on page load (doesn't work 
without JS) and most of the formatting styles into a stylesheet, I'd 
prefer that solution.

It's difficult to override the default inline-styles from a stylesheet, 
and I like to keep that seperated.

I'm curious about more features to come, and will keep this in mind to 
use it on the first possible occasion.

-- 
Jörn Zaefferer

http://bassistance.de


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] New plugin: ContextMenu

2007-03-09 Thread Andy Matthews
Travian was pretty fun. A time sink, but enjoyable...especially since all my
co-workers also played it.
 
www.travian.com if you're interested.

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Chris Domigan
Sent: Friday, March 09, 2007 8:32 AM
To: jQuery Discussion.
Subject: Re: [jQuery] New plugin: ContextMenu


Hi Andy,

Travian sounds interesting! I'll have to check that out...

The ability to add/remove/enable/disable menu items based on the target is
something I'm working on for the next version, along with some other goodies
:) 

Chris


On 10/03/07, Andy Matthews <[EMAIL PROTECTED]> wrote: 

Good job Chris...
 
Seems very responsive too. One thing I'll throw out there for you to think
about. I built a map for a browser based game called Travian a while back.
One of the things my map did (over the in-game map) was that you could right
click on a player and get a list of options. The catch was that the options
were unique to that player. Right clicking on "me", gave you options that
only affected me, while right clicking on "the other guy" only gave you
options for him. It's probably not something that many people  would need,
but it's something to consider.
 
Anyway, good work on the menu!

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Chris Domigan
Sent: Thursday, March 08, 2007 5:14 PM
To: jQuery Discussion.
Subject: [jQuery] New plugin: ContextMenu



Hi everyone

The first version of my new ContextMenu plugin has been released. You can
grab it here:

http://www.trendskitchens.co.nz/jquery/contextmenu/
<http://www.trendskitchens.co.nz/jquery/contextmenu/> 

ContextMenu lets you selectively replace the browser's right click menu with
one of your own. It is fully customisable and allows you to bind
context-sensitive actions to each menu option.

Big thanks to Joern Zaefferer whose excellent Tooltip plugin provided much
inspiration. 

This is my first plugin for jQuery and any feedback/comments/improvements
would be most appreciated!

Cheers,

Chris Domigan


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/




___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] New plugin: ContextMenu

2007-03-09 Thread Chris Domigan

Hi Andy,

Travian sounds interesting! I'll have to check that out...

The ability to add/remove/enable/disable menu items based on the target is
something I'm working on for the next version, along with some other goodies
:)

Chris

On 10/03/07, Andy Matthews <[EMAIL PROTECTED]> wrote:


 Good job Chris...

Seems very responsive too. One thing I'll throw out there for you to think
about. I built a map for a browser based game called Travian a while back.
One of the things my map did (over the in-game map) was that you could right
click on a player and get a list of options. The catch was that the options
were unique to that player. Right clicking on "me", gave you options that
only affected me, while right clicking on "the other guy" only gave you
options for him. It's probably not something that many people  would need,
but it's something to consider.

Anyway, good work on the menu!

 --
*From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On
Behalf Of *Chris Domigan
*Sent:* Thursday, March 08, 2007 5:14 PM
*To:* jQuery Discussion.
*Subject:* [jQuery] New plugin: ContextMenu

Hi everyone

The first version of my new ContextMenu plugin has been released. You can
grab it here:

http://www.trendskitchens.co.nz/jquery/contextmenu/

ContextMenu lets you selectively replace the browser's right click menu
with one of your own. It is fully customisable and allows you to bind
context-sensitive actions to each menu option.

Big thanks to Joern Zaefferer whose excellent Tooltip plugin provided much
inspiration.

This is my first plugin for jQuery and any feedback/comments/improvements
would be most appreciated!

Cheers,

Chris Domigan

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] New plugin: ContextMenu

2007-03-09 Thread Andy Matthews
Good job Chris...
 
Seems very responsive too. One thing I'll throw out there for you to think
about. I built a map for a browser based game called Travian a while back.
One of the things my map did (over the in-game map) was that you could right
click on a player and get a list of options. The catch was that the options
were unique to that player. Right clicking on "me", gave you options that
only affected me, while right clicking on "the other guy" only gave you
options for him. It's probably not something that many people  would need,
but it's something to consider.
 
Anyway, good work on the menu!

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Chris Domigan
Sent: Thursday, March 08, 2007 5:14 PM
To: jQuery Discussion.
Subject: [jQuery] New plugin: ContextMenu


Hi everyone

The first version of my new ContextMenu plugin has been released. You can
grab it here:

http://www.trendskitchens.co.nz/jquery/contextmenu/
 

ContextMenu lets you selectively replace the browser's right click menu with
one of your own. It is fully customisable and allows you to bind
context-sensitive actions to each menu option.

Big thanks to Joern Zaefferer whose excellent Tooltip plugin provided much
inspiration. 

This is my first plugin for jQuery and any feedback/comments/improvements
would be most appreciated!

Cheers,

Chris Domigan

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] New plugin: ContextMenu

2007-03-09 Thread Joel Birch
On 09/03/2007, at 10:13 AM, Chris Domigan wrote:
> Hi everyone
>
> The first version of my new ContextMenu plugin has been released.  
> You can grab it here:
>
> http://www.trendskitchens.co.nz/jquery/contextmenu/
>
> ContextMenu lets you selectively replace the browser's right click  
> menu with one of your own. It is fully customisable and allows you  
> to bind context-sensitive actions to each menu option.
>
> Big thanks to Joern Zaefferer whose excellent Tooltip plugin  
> provided much inspiration.
>
> This is my first plugin for jQuery and any feedback/comments/ 
> improvements would be most appreciated!
>
> Cheers,
>
> Chris Domigan
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/

This is some great work Chris - I really like it. I know many people  
will be wanting to use it!

I tried your demo in Mac FF2 and the menu did not appear but the  
default menu was suppressed. I think maybe it's possible that one of  
my extensions interferes with it. I have NoScript (but allowed your  
domain), adblock, Firebug, WebDeveloper, and All-in-one Gestures.

I then tried it in Safari and it works great. Well done!

Joel Birch.

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] New plugin: ContextMenu

2007-03-08 Thread Klaus Hartl
Chris Domigan schrieb:
> Hi everyone
> 
> The first version of my new ContextMenu plugin has been released. You 
> can grab it here:
> 
> http://www.trendskitchens.co.nz/jquery/contextmenu/ 
> 
> 
> ContextMenu lets you selectively replace the browser's right click menu 
> with one of your own. It is fully customisable and allows you to bind 
> context-sensitive actions to each menu option.
> 
> Big thanks to Joern Zaefferer whose excellent Tooltip plugin provided 
> much inspiration.
> 
> This is my first plugin for jQuery and any 
> feedback/comments/improvements would be most appreciated!
> 
> Cheers,

Hey Chris, nice work!

The images (for the icons) in your example are lacking the alt attribute 
  though. But I'd put these into the CSS anyway!


-- Klaus

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] New plugin: ContextMenu

2007-03-08 Thread Chris Domigan

Hi Glen, thanks for the ideas.

Just as a styling suggestion.  Would it be hard to enable Office 2007 style

on it?



No, shouldn't be too difficult. Would have to put some logic in to support
icon column. You could set a background image in menuStyle to emulate this.

1. Ability to disable/gray out a choice (maybe with a 50% opacity layer?)




Good idea. How about I pass the clicked option to the handler as a second
parameter? Then you could define your own logic and styling.

2. Enable/Disable Icon runer column on left.




Hmm good idea. But again you may be able to do this using the current
styling options.

3. Seperators.




This is currently in the works :)

4. Cascading choices > (Ok, now I've gone too far!)




Yep also coming down the track

5. Shadow on the whole box.




Not a major priority at the moment

Chris, your plugin is really good!  RIght-clickin kicks ass.




Cheers :)

Chris
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] New plugin: ContextMenu

2007-03-08 Thread Chris Domigan

Re #1: Oops. Obviously passing the clicked option won't help here - the
whole point is you don't want it clickable in the first place...
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] New plugin: ContextMenu

2007-03-08 Thread Glen Lipka

Cool!

Just as a styling suggestion.  Would it be hard to enable Office 2007 style
on it?
Example from powerpoint here:
http://glenlipka.kokopop.com/jQuery/right-click.gif

So some wishlist items (feel free to chuck these in the "circular file"):
1. Ability to disable/gray out a choice (maybe with a 50% opacity layer?)
2. Enable/Disable Icon runer column on left.
3. Seperators.
4. Cascading choices > (Ok, now I've gone too far!)
5. Shadow on the whole box.

Chris, your plugin is really good!  RIght-clickin kicks ass.

Glen
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] New plugin: ContextMenu

2007-03-08 Thread Mike Alsup
> The first version of my new ContextMenu plugin has been released. You can
> grab it here:

Chris, that is sweet!  Thanks.

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] New plugin: ContextMenu

2007-03-08 Thread Rey Bango
Ok, that gets added to my "badass plugin" list as well!!

Chris Domigan wrote:
> Hi everyone
> 
> The first version of my new ContextMenu plugin has been released. You 
> can grab it here:
> 
> http://www.trendskitchens.co.nz/jquery/contextmenu/ 
> 
> 
> ContextMenu lets you selectively replace the browser's right click menu 
> with one of your own. It is fully customisable and allows you to bind 
> context-sensitive actions to each menu option.
> 
> Big thanks to Joern Zaefferer whose excellent Tooltip plugin provided 
> much inspiration.
> 
> This is my first plugin for jQuery and any 
> feedback/comments/improvements would be most appreciated!
> 
> Cheers,
> 
> Chris Domigan
> 
> 
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/

-- 
BrightLight Development, LLC.
954-775- (o)
954-600-2726 (c)
[EMAIL PROTECTED]
http://www.iambright.com

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/