Need DHTML context menu

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Need DHTML context menu

Post by alex.barylski »

I've searched Google and found some (many of which i've known about for years). They are often bloated or at least more than I need.

Basically I would like something which dynamically created the menu either at document.write or after onload. Nothing fancy, just a simple context menu which either:

1) Snaps to the element which is used to invoke the popup
2) Opens from exactly where the mouse was right clicked

Ideally both would be supported as I could use both.

Any suggestions?
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Look at Jquery. Someone write a right-click plugin that does exactly what you want. I don't have the link handy, but if you look at the plugings page and search around for a few minutes I am sure you'll stumble across it.
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

Everah - you're so quick on the draw! jQuery all the way - it's a killer context menu too... I think there are two or three of them.
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post by alex.barylski »

sweet I already installed jQuery so thats a bonus :)
User avatar
JellyFish
DevNet Resident
Posts: 1361
Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA

Post by JellyFish »

I've tried one of the jQuery context menu plugins, I didn't like how it didn't flip when the context menu leaves the window's view. Instead it just makes the horizontal scroll bar appear.
Post Reply