• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Add Contextual Menu items with safari plugin when you right-click on the safari webpage?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Add Contextual Menu items with safari plugin when you right-click on the safari webpage? (From: Jack Teom <email@hidden>)

  • Prev by Date: Add Contextual Menu items with safari plugin when you right-click on the safari webpage?
  • Next by Date: Getting Started with Objective C and Xcode?
  • Previous by thread: Add Contextual Menu items with safari plugin when you right-click on the safari webpage?
  • Next by thread: Getting Started with Objective C and Xcode?
  • Index(es):
    • Date
    • Thread