How to add events to Safari context menu

Hi there, I have yet to buy an iPad, the choice is currently between the iPad and the Kindle. Although I would in fact prefer a general-purpose computer such as the iPad, the Kindle does meet all my current needs. Additionally, the Kindle has a single advantage that might make my choice.
When browsing the web I need a method to select a word and send it to an url in the form:
http://example.com?var=%s
...where %s is the word selected. I currently do this in Firefox and in Chrome with these addons:
https://addons.mozilla.org/en-US/firefox/addon/searchwith/
https://chrome.google.com/webstore/detail/ocpcmghnefmdhljkoiapafejjohldoga
Additionally, my PDF reader (Okular on Kubuntu Linux) also has this feature built in. My workflow dictates this, there is no way around it. It is a feature that I use tens of times per day.
If Safari cannot handle this, can another web browser be installed on the iPad?
Thanks in advance for any advice.

Hi Ray,
   Yes, you are right. This is the assignation chain:
   Command->group commands->resource/collection/details->layout set->folder/KM navigation iview.
   Remember, layout set is a service that you need to active on your repository.
   Layout set allows you define (between other things) commands groups availables for resource, links or folders.
   The context menu will have differents commands group depending reource type.
Patricio.

Similar Messages

  • How to add event handling for a menu?

    hi,
    I have created a menu and few mneu items.
    for eachmenu itme , i did event handling and it is workign fine.
    it was like this
    menuItem = new JMenuItem("Exit",KeyEvent.VK_X);
    menuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_X, ActionEvent.ALT_MASK));
    menuItem.addActionListener(this);
    menu.add(menuItem);
         public void actionPerformed(ActionEvent e)
    JMenuItem source = (JMenuItem)(e.getSource());
    String s = "Action event detected. Event source: " + source.getText();
    System.out.println(s);     
    public void itemStateChanged(ItemEvent e)
    JMenuItem source = (JMenuItem)(e.getSource());
    String s = "Item event detected. Event source: " + source.getText();
    System.out.println(s);
    now int he second menu i don't have any menu item and i want to do the event handling for the menu itself. any ideas how to do it. following is the code for the menu
    //Build the second menu.
    menu2 = new JMenu("Options");
    menu2.setMnemonic(KeyEvent.VK_O);
    menuBar.add(menu2);
    menu2.addActionListener(this);     //this does nto work

    You were on the right track. However, selecting a menu is different from selecting a menu item. MenuItem chucks an ActionEvent and Menu will send an ItemEvent.
    If you pile all action output to one actionPerformed method then be careful of your assumptions on what the source type will be. If by any chance the Menu has sent an ActinoEvent then your code will have caused a ClassCastException.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class MenuTest implements ActionListener, ItemListener {
        JMenuItem menuItem;
        JMenu menu1, menu2;
        JMenuBar menubar;
        JFrame frame;
        public MenuTest() {
            frame = new JFrame("MenuTest");
            frame.setDefaultCloseOperation(frame.EXIT_ON_CLOSE);
            menubar = new JMenuBar();
            frame.setJMenuBar(menubar);
            menu1 = new JMenu("File");
            menu1.setMnemonic(KeyEvent.VK_F);
            menuItem = new JMenuItem("Exit",KeyEvent.VK_X);
            menuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_X, ActionEvent.ALT_MASK));
            menuItem.addActionListener(this);
            menu1.addItemListener(this);
            menu1.add(menuItem);
            menubar.add(menu1);
            //Build the second menu.
            menu2 = new JMenu("Options");
            menu2.setMnemonic(KeyEvent.VK_O);
            menu2.addActionListener(this); //this does not work
            menu2.addItemListener(this); // use this instead
            menubar.add(menu2);
            JPanel panel = new JPanel();
            panel.setPreferredSize(new Dimension(100,100));
            frame.getContentPane().add(panel);
            frame.pack();
            frame.show();
        public void actionPerformed(ActionEvent e)
            String s = "Action event detected. Event source: " + e.getSource();
            System.out.println(s);
        public void itemStateChanged(ItemEvent e)
            String s = "Item event detected. Event source: " + e.getSource();
            System.out.println(s);
        public static void main(String[] args) {
            new MenuTest();
    }

  • How to add custom option in context menu

    Hi,
    When viewing a document of a repository, can we add our own option (for example, "View In new Browser") in the context menu? And how can we configure the function when a user clicked on the option of context menu?
    Thanks,
    Ray

    Hi Ray,
       Yes, you are right. This is the assignation chain:
       Command->group commands->resource/collection/details->layout set->folder/KM navigation iview.
       Remember, layout set is a service that you need to active on your repository.
       Layout set allows you define (between other things) commands groups availables for resource, links or folders.
       The context menu will have differents commands group depending reource type.
    Patricio.

  • Add fcodes to a context menu at runtime

    Hi,
    How do i add fcodes to a context menu at runtime.
    regards
    kaushik

    Hi Kaushik,
      MOre examples:
    DEMO_DYNPRO_CONTEXT_MENU       Context Menus on Screens
    DEMO_LIST_CONTEXT_MENU         Context Menu in Lists   
    RSDEMO_CONTEXT_MENU_LIST       Program RSDEMO_CONTEXT_MENU_LIST
    Regards,
    Ravi

  • How to add event to calendar?

    how to add event to calendar?  No plus sign at top of window.

    See the user guide:  http://manuals.info.apple.com/en_US/iphone_user_guide.pdf

  • How to add keyboard control key to menu bar as shown

    how to add keyboard control key to menu bar as shown bellow
    Please help

    why, nobody can give me any suggestion?!
    I want to know how to get the specific Control from the Line which does not has this kind of Control. Currently, I met this problem -- the line does not support EnumControl.Type.REVERB, however, I want to exert the reverb control to the line.
    please. thank you very much!

  • How to I add options to the Context Menu for html files under Site Content

    Currently in Web Page Composer...  if a developer wants to get the Target URL to an html page in a WPC site (i.e. under the Site Content folder) they have to take several steps...   Content Menu -> Details -> Settings -> Properties -> Access Links -> copy the Target URL.  I would like to add this ability (i.e. to copy the target URL to clipboard) as a option to the "context menu" of each html file.  Does anyone know if this is possible and if so how it can be done?   It can be a global change if necessary.

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    You can use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    You have to close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    Also check the Mouse driver settings in the Control Panel.

  • How to add a new right-click menu entry in Nautilus file browser?

    I want to add a couple of new context menu entries to Nautilus File Browser.
    So when I e.g. right-click in View Pane on a file "foobar.conf" an menu entry "edit with gedit" should appear (among the other default entries).
    When clicked the file "foobar.conf" should be passed to gedit (and gedit editor opened).
    How can I achieve this?
    Under Ubuntu there are nautilus-actions but when I try to install them in Solaris with
    pkg install nautilus-actions
    then this package is not found.
    How else can I create my own context menues?
    I would appreciate to have one script with all my context menus, which when run add them all in one step.

    To manage selected files or directories, you can use specific Nautilus variables like NAUTILUS_SCRIPT_SELECTED_FILE_PATHS.
    For more details and which variables exist, please read the content of the following URL :
    Nautilus File Manager Scripts: Questions and Answers

  • How to add events to a ordinary html tag

    How can i add a event to ordinary tag
    Ex:
    public void encodeBegin(FacesContext context) throws IOException {
    ResponseWriter writer = context.getResponseWriter();
    writer.startElement("div", this);
    writer.writeAttribute("id", getClientId(context), null);
    String width = (String)getAttributes().get("width");
    String height = (String)getAttributes().get("height");
    String style = (String)getAttributes().get("style");
    style= (style!=null) ? style + ";" : "";
    if (width != null) style += "width:" + width + ";";
    if (height != null) style += "height:" + height+ ";";
    writer.writeAttribute("style", style, null);
    String styleClass = (String)getAttributes().get("styleClass");
    if (styleClass!=null)
    writer.writeAttribute("class", styleClass, null);
    String title = (String)getAttributes().get("title");
    if (title!=null)
    writer.writeAttribute("title", title, null);
    public void encodeEnd(FacesContext context) throws IOException {
    ResponseWriter writer = context.getResponseWriter();
    writer.write("<input type=\"button\" name=\"but\"/>");
    writer.endElement("div");
    i want to add event and bean for the <<< writer.write("<input type=\"button\" name=\"but\"/>"); >>>line of code, which is nothing but a button. I can added using JSF concept. but the requirement is like this. I have to add normal html tag for which i have to use bean and events as well.
    Can anyone give suggestion for this

    I will give a clear example
    writer.write("<h:outputText id=\"txt\" value=\"Just a Display\" />");
    writer.write("div");
    this 2 lines is in endcodeEnd method. The output text wont display the msg.
    even i am writing before the end tag
    Here is the full code
    ================
    public void encodeBegin(FacesContext context) throws IOException {
    ResponseWriter writer = context.getResponseWriter();
    writer.startElement("div", this);
    writer.writeAttribute("id", getClientId(context), null);
    String width = (String)getAttributes().get("width");
    String height = (String)getAttributes().get("height");
    String style = (String)getAttributes().get("style");
    style= (style!=null) ? style + ";" : "";
    if (width != null) style += "width:" + width + ";";
    if (height != null) style += "height:" + height+ ";";
    writer.writeAttribute("style", style, null);
    String styleClass = (String)getAttributes().get("styleClass");
    if (styleClass!=null)
    writer.writeAttribute("class", styleClass, null);
    String title = (String)getAttributes().get("title");
    if (title!=null)
    writer.writeAttribute("title", title, null);
    public void encodeEnd(FacesContext context) throws IOException {
    ResponseWriter writer = context.getResponseWriter();
    writer.write("<h:outputText id=\"txt\" value=\"Just a message\" />");
    writer.endElement("div");
    writer.write("<h:outputText id=\"txt\" value=\"Just a message\" />");
    This line is not executing
    kindly reply me..
    my mail id is [email protected]

  • How to remove or hide toolbar context menu in visual studio IDE

    Hi All,
    Currently we are extending Visual studio and it's functionality.
    As we know, we can have different categories of tool bars like standard, build, debug etc shown in pic - 
    or we can access the categories via -  View Main Menu -> Toolbars 
    Basically My requirement is that, I don't want to show these options (Build, Debug, Debug Location, Layout, customize , Text Editor, Standard etc) shown in context menu or shown in submenu.  
    How can I achieve it ? Please advice.

    AFAIK, you can only customize it manually, but can't hide the builtin menus:
    http://msdn.microsoft.com/en-us/library/vstudio/wdee4yb6(v=vs.100).aspx
    or maybe you can try vsct:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/f3acc18c-b176-4f06-a8d1-cccff3d4bf7f/how-to-disable-and-enable-menu-commands-in-vspackage?forum=vsx

  • How to add new folder in sap menu visible to all users

    I want to add a new folder in sap menu. i can do it for my user id as it is user specific. I wanna know that how to add a folder so that every user able to see the same i.e irrespective of user-ids.

    Hi Ramya,
    This can be done in SAP menu instead of User Menu, provided all your users are using SAP menu. If a folder is created in User menu it would be visible only to the user. If it is created in SAP menu and if all the users are using the SAP menu then the folder would be visible to all...
    Hope this clarifies your query...
    Reward me points...
    Regards
    Prasanna

  • How to display Preferences in the context menu of an iView

    How do I display the 'Perferences' of an iView in it's context menu (in the iView tray)? I need to expose the Layout Set of the iView currently being looked at - for our content maintainers only. Are commands or command groups involved? Thanks

    Hi Robert,
    I don't fully understand your question.
    Anyhow, on each iView there are two options needed to offer personalization functionality: Show Personalize Option and Show Tray. This is not user dependent! Of course you could create different roles for content admins and other users, with the same content, but for this iView different settings; but this is too much maintenance in my eyes... (of course, you would have to set the personalization option of rndLayoutSet to the value needed).
    Another option may be to use the FlexUI debugging settings, see http://help.sap.com/saphelp_erp2005/helpdata/en/f4/2c6b2089cc784bb384a7ea058de50d/frameset.htm - this can be done on a per user basis.
    Hope it helps
    Detlev

  • How to add events in JTable fields

    Hello friends i m working with file transfer client server project in my college.In my client part i have used JTable with AbstractTableModel.
    In my JTable it list the current directory files and directories under current directory .
    now how can i add events to the the directories that it shows on JTable so that when i click on directory it displays files under that selected directory.
    can anyone help me in that.
    I will send you my code for that project if anyone can help me.
    please help me to do that

    You can handle row selections with selection listener but if you want to handle double clicks you can use something similar to this:
    table.addMouseListener(new MouseAdapter() {
    public void mouseClicked(MouseEvent e)
    int column = table.columnAtPoint(e.getPoint());
    int row = table.rowAtPoint(e.getPoint());
    Object cellValue = table.getValueAt(row, column); 
    // Insert files below clicked row
    });Please, be more patient in the future -you would probably get an answer if you just posted to any of these two forums.

  • Is it possible to trigger an event when clicking context menu trigger icon?

    When opening a context menu on a UI element, is it possible to trigger an event to handle, eg. set the lead selection for this context element to which the UI element is bound, when clicking the menu trigger icon ?

    First, these NW04s menus are not really context menus. They are static menus that are rendered within the view layout. Real context menus will come later.
    There is no "onMenuOpen" event for an application.
    Armin

  • How to add event listener?

    i want to add event listener when i click on a button in mxml, the event listener should be added in the action script file, how to do this?
    can anyone help? urgent!!!

    Hi Lakshmi,
    You can do this just put all the script in the mxml block in seperate AS file as shown below... Observe that I have included an AS file named Script.as and removed the script block form mxml and moved to this Script.as file. Place the Script.as file in your src folder ....
    // Main mxml file....
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="onCreationComplete()">
        <mx:Script source="Script.as"/>
    <mx:TextArea id="textArea" width="300" height="100" />
    <mx:Button id="myButton" label="Click ME"/>
    </mx:Application>
    //Script.as file
    import mx.controls.Alert;
                private function onCreationComplete():void
                 myButton.addEventListener(MouseEvent.CLICK, onButtonClick);
                private function onButtonClick(event:MouseEvent):void
                 Alert.show("Button is Clicked");
    Thanks,
    Bhasker

Maybe you are looking for