Re: Add Contextual Menu items with safari plugin when you right-click on the safari webpage?
Re: Add Contextual Menu items with safari plugin when you right-click on the safari webpage?
- Subject: Re: Add Contextual Menu items with safari plugin when you right-click on the safari webpage?
- From: Jens Alfke <email@hidden>
- Date: Mon, 19 Apr 2010 09:12:15 -0700
On Apr 19, 2010, at 3:06 AM, Jack Teom wrote:
I just want to write a safari webkit plugin that can add Contextual
Menu items of safari plugin when you right-click on the safari
webpage.
Web Plugins can't do that. They're limited to running a UI in a
specific region of a page when the page content invokes them with an
<object> or <embed> tag.
The screenshot you added isn't a Mac menu. It looks like some custom
HTML displayed by a web page in response to a right-click event. You
don't need any sort of WebKit plugin to do that; just use the standard
JavaScript event model to register a handler for right-clicks and pop
up a custom <div> positioned at the event coordinates. Many JS
frameworks, like JQuery, have utilities that do this for you.
Also, Xcode-Users is the wrong list for this. It's for questions about
the development tools themselves. It sounds like your question is
about general web development, so stackoverflow.com is a good place to
ask.
—Jens
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden