Maintaing focus on Nav elements

Does anyone know how to hold focus on a separate navigation
menu (i am using an unorderd list with hrefs, using CSS pseudo
styling with an additional Javascript to activate the focus on
which menu item page is displayed), while interacting with the Spry
collapsible panels? Anytime, I open or close a collpasible panel,
my navigation menu (separate from the spry panels) looses it's
pseudo 'active' state and becomes unhighlighted.

By Applying a page ID to a non-displayed DIV(wrapping the
entire page content before and after body) and an ID on each
navigation element, I can style the nav elements accordingly, to
appear as if selected, while still interacting with other elements,
including Spry elements, on the page.

Similar Messages

  • How to set focus on UI Element

    Hi All,
    I am using the below code to set the focus on the first row of the table given in the link  [How to set focus at UI element ? ] on enter of an event.
    data: lr_elem type ref to if_wd_view_element.
    lr_elem = view->get_element( <ID of the Link to Action field>).
    if lr_elem is bound.
    view->request_focus_on_view_elem( lr_elem ).
    endif.
    I am getting "Cannot use NULL reference as object error at view".
    Can you please tell me how to get the reference of the "view".
    Thanks
    Praveen

    >
    praveenkumar_81 wrote:
    > Hi All,
    >
    > I am using the below code to set the focus on the first row of the table given in the link  [How to set focus at UI element ? ] on enter of an event.
    >
    >
    data: lr_elem type ref to if_wd_view_element.
    > lr_elem = view->get_element( <ID of the Link to Action field>).
    >
    > if lr_elem is bound.
    > view->request_focus_on_view_elem( lr_elem ).
    > endif.
    >
    > I am getting "Cannot use NULL reference as object error at view".
    >
    > Can you please tell me how to get the reference of the "view".
    >
    > Thanks
    > Praveen
    Hallo Praveen,
    have you controlled that id of the Linktoaction ? there you made error.
    See it in the ViewElement designer .
    should be something like this
    lr_elem = view->get_element( 'LTA_name ' ).

  • How  to set focus on an element inside a datatable on load

    How to set focus on an element inside a datatable on load

    Check out https://blogs.oracle.com/groundside/entry/ever_wondered_how_uncommitteddatawarning_works and
    Decompiling ADF Binaries: Checking for dirty data
    Timo

  • Is it possible to do focus stacking in elements 11

    Is it possible to do focus stacking in elements 11 and how do i do it ?

    Hi marcuso46392578,
    Please find this video for focus stacking:
    Focus Stacking in Photoshop Elements - YouTube
    You can also see this blog: Focus Stacking in PSE 11/12 - Elements Village
    Regards,
    Sandeep

  • How do I show the focus point in Elements 12?

    How do I show the focus point in Elements 12?  There are times when displaying the camera focus point(s) in either the organizer or the editor would be very helpful in analyzing pictures.  Is there a way to do this?

    As far as I know this is a feature specific to a given camera manufacturer. Only their proprietary editing softwares can interpret the proprietary metadata...

  • How to force focus last focused HTML input element when going back in history with backspace?

    SUMMARY: I am a Firefox user with HTML knowledge. I want to be able to configure Firefox to behave in a special manner when I hit backspace. It's something that Firefox already does, BUT NOT ALWAYS. I don't know why it behaves differently in different situations for no apparent reason. I want to be able to configure firefox to ALWAYS behave in the manner I want to. Read below for the precise description.
    When I fill a FORM in a page, wether POST or GET, and press ENTER, it obviously acts as expected: submits the data and brings me to a new page. When I get to the new page, and I press BACKSPACE, Firefox behaves in sometimes like TYPE 1 and sometimes like TYPE 2 (see below), and I can't predict which one he will choose. I want to be able to configure it to behave ALWAYS like TYPE 2.
    TYPE 1 - Firefox reloads the previous page, as if I just entered it for the first time.
    TYPE 2 - Firefox brings me back to the exact same page view I had before pressing ENTER to submit the FORM.
    2.1 - It doesn't reload the page;
    2.2 - It places the page in the same scrolled position I was before (for example, if I scrolled to the bottom of the page to fill the FORM and press enter, after pressing backspace it brings me to the bottom of the page again;
    2.3 - It automatically focus the HTML input element I last typed (the element that was focused at the very moment I pressed ENTER to submit the FORM).
    So, I want to be able to configure Firefox for it to ALWAYS BEHAVE LIKE TYPE 2 whenever I fill a HTML FORM, press ENTER and press backspace after going to the new page. All three details I gave are important. Remember that I've already experienced TYPE 2 in previous versions of Firefox, I just wish to FORCE IT to behave like that ALWAYS (because for no apparent reason, sometimes it behaves like TYPE 1 instead).
    Please let me know if that's possible, and if not, I would really THANK YOU ALL FOREVER if you add this feature to the next version.

    It's set to true.
    I saw the add on you suggested, but it does not fulfill my needs.
    I like the behavior exactly as I said because, after submitting the form, I want to be able to look something in the new page and quickly get back to the form, change the text I wrote in the input element and submit it again, in a matter of one or two seconds only...
    I was able to do that whenever firefox behaved like TYPE 2 (explained above)...
    Thanks for the reply but didn't solve my problem yet...

  • Form Loads - Focus on Wrong Element

    Good day. This is a cross post but I'll try to put better detail here.
    I have a form that loads empty. I then grab data from the DB and populate the form. I have 3 radio buttons that are part of the radio group. I set one of these after gathering data by calling setSelected(true).
    The focus (rectangular dotted line) does not move to the element that is selected. I have tried requestFocus() but it does not change. The focus moves when I press tab. It seems like the focus is set to the first focusable element.
    What do I need to do to solve this? Should I try changing the order of focusable elements to have my selected item as the first element?
    BTW - I have also tried the following to correct this.
    doClick()
    grabFocus()
    Thanks

    OK. I am now working woth a non modal dialog. I do the following.
    Construct
    Show
    Call DB
    Update radio button
    request focus for the selected button
    The first button (non selected) is still focused.
    Help please?

  • Firefox inspector not focus on the element through clicking inspect.

    As the new firefox for developer came out, I downloaded & used it as main browser.
    However, I found out that the Inspector not focus or show direct element I inspected. It just open the inspector window & show the whole body tag.
    Is this something from the new Firefox? or from any add-ons of mine?

    It happens all the time. As I start Firefox in Safe Mode, it works just fine.
    Then I start Firefox normally & disable hardware acceleration + some add-ons that I haven't install on my previous Firefox.
    It somehow seems to work right now even though I turned hardware acceleration back on & enable almost every add-on of mine + appearance except Wired Marker + ADB Helper from Firefox.

  • Focus on UI element

    This seems to be a trivial question, but I couldn't find the answer.
    How can you programmaticaly give an ui element the focus or at least make sure it's visible (similar to html anchors) ?
    Thanks

    Hi Pieter,
    You have a Ui Element like inputfield
    (a)If you want to focus this  inputfield then
    IWDInputField input=(IWDInputField)view.get(id of  inputfield);
    input.requestFocus();
    if you want make it visible:-
    input.setVisible(WDVisible.NONE);
    or
    input.setVisible(true);
    Regards,
    Praveen

  • Swap the key focus at Array element

    Hello,
              Would you help me about the title query ? the details is in attachment. thanks @! LV7.1 version.
    Attachments:
    help.vi ‏40 KB

    Attached is a quick example showing the basic method needed for a table.
    An array is more complex, because to refer to a specific array element, you first have to resize the number of visible elements to 1, then use the Array Element>Reference and cast that reference to a cluster, and set the key focus to the right element of the cluster and then resize the array back to its display size. To avoid having the user see this, you need to use the Defer Panel Updates property, and this might cause the control to lose the focus, I'm not sure.
    A side note is that using Value property nodes is not a good way of doing things. A local is usually better and using real data flow is even better.
    Try to take over the world!
    Attachments:
    help mod 71.vi ‏63 KB

  • Problem giving the focus to an element

    Hi,
    I have a complex page, with lots of refresh, execute, method which change the selected row of my table from java...
    And i want, when a row of my table is selected, to automatically give the focus to the 2nd column of the selected row.
    For this in my java code, i get the id of the good column of the selected row and call this javascript function:
    function setFocusId(id) {
        var t = document.getElementById(id);
        t.focus();
    }The java code:
            ExtendedRenderKitService service = Service.getRenderKitService(facesContext, ExtendedRenderKitService.class);
            service.addScript(facesContext, "setFocusId('" + inputId + "');");That works when i click on a line of my table !
    But sometimes i change the selected line from the java code, and i have to refresh my table. To refresh the table i use :
        AdfFacesContext.getCurrentInstance().addPartialTarget(this.getTable());And when i refresh the table with this, and then i call my function to give the focus to the column, that do not work, the focus is not given...
    Do Someone have an idea to solve that problem ?
    Regards,
    Trigger

    Hi Frank
    I have the good ID of the component:
            RichTable table = this.getTquest();
            FacesContext facesContext = FacesContext.getCurrentInstance();
            String tableId = table.getClientId(facesContext);
            RowKeySet rks = table.getSelectedRowKeys();
            String inputId = "";
            if (rks != null && rks.size() > 0) {
                Object rowKey2 = rks.iterator().next();
                String rowId = table.getClientRowKeyManager().getClientRowKey(facesContext, table, rowKey2);
                inputId = tableId + ":" + rowId + ":" + "otOvprCode::content";
            } else {
                System.out.println("Error");
            ExtendedRenderKitService service = Service.getRenderKitService(facesContext, ExtendedRenderKitService.class);
            service.addScript(facesContext, "setFocusId('" + inputId + "');");It works, the id is always good, but the focus is not given when i refresh the table before ...
    Julien
    Edited by: Trigger on 3 août 2011 13:13

  • Maintaing Focus Video on Elph 130IS

    I primarily use my Canon PowerShot Elph 130IS for taking videos of the products I design and sell on the Internet.  The subject of my videos are R/C Gliders known as "Slope Planes."  These planes are usually flown at the top of a hill where the glider can ride uplifting winds.
    My problem is that I have yet to have found the right combination of settings that allow the glider to stay in focus.  I would say that around 30% of my videos are out of focus.  I'm able to edit out the out of focus parts to make decent video, but it is still very frustrating because some of my best aerobatic moves are lost to editing because they are out of focus.  
    I have tried just about everything to include "Program Mode" and set the focus to Infinity...not much if any difference.  
    I have a feeling that it has something to do with tracking in that it seems to go out of focus when the glider changes distances from the camera.  
    I would love to know if it is possible to set up the camera in such a way that it maintains focus no matter how close the glider is or how far away it is.
    Here is a finished example of what I use my camera for in my business...the camera is basically strapped to my forehead.
    https://vimeo.com/44354738
    Thanks in advance.
    -MacPaige

    Hi Paige after looking at the available focus settings/options for that model camera for movies I think I see your dilemma. Unfortunately while taking movies you do not have the option of using say Servo AF which continuosly maintains the focus. Also it looks to me that setting th focus to infinity is only available when shooting still images not movies on your model camera so it has no effect. The best options for you with that camera for movies from what I see is to be sure your AF Frame Size is set to Normal and not Small and Continuos Focus is set to on. Also try with Image Stabilization set to Continous as well as Off for your application.
    I assume you want to focus at varying distances, if you want to focus or focusing at a certain distance will work better for you then you can try to use the AF focus lock option.
    Hang in there though there are others who will also chime in with advice for you too. 
    By the way what your doing sounds pretty cool !!
    John

  • Focus on clicked element - GUI

    Hello,
    I have some form that user will fill that has many string and enum controlls, more than 40.
    User wil tab and fill one by one. I want to set focus on controll when user clicks on it.
    I don't want to make more than 40 event cases and service each control in separate way.
    My another idea is to get refs and positions of all controls on FP, then monitor mouse click event on FP, get click position and then search for that controll.
    But maybe there is more elegant way that I am not aware of ?
    Solved!
    Go to Solution.

    I know but this form fields have to be placed in many many diffrent places - like that :
    And belive me - this was not my idea
    This form has to be saved to pdf and printed. So I wanted to use exaprom pdf addon. But there was problem in creating table with so many fields in different places ( cells had to be added one by one with diffrent colspan and border type...  and that would take ages) So I put every page on invisible tab controll and printed that tab as an image to pdf. Text is not as vector but as image. The best part of it is that quality of that was acceptable

  • Request focus on view element

    Hi everybody,
    I have a little problem and I didn't know how to solve it. I'd like to set the cursor at any input field at my view.
    I tried this like this way:
      DATA: lr_elem TYPE REF TO if_wd_view_element.
      lr_elem = view->get_element( gv_cursor ).
      view->request_focus_on_view_elem( lr_elem ).
    If I start the webdynpro the cursor was set at the right position...now if I press enter or a button at the dynpro the program logic will be done and the method WDDOMODIFYVIEW will be processed again...but the cursor were not set at any field at the dynpro, why?

    The following works in SP10.
    I cant see what you have missed:
    My test was 2 buttons, each button changes the focus to a different input field.
    Attribute called FIELD was declared.
    method WDDOMODIFYVIEW .
      DATA: lr_elem TYPE REF TO if_wd_view_element.
    lr_elem = view->get_element( wd_this->field ).
    if lr_elem is BOUND.
    view->request_focus_on_view_elem( lr_elem ).
    endif.
    endmethod.
    method ONACTIONSET_F1 .
      wd_this->field = 'F1'.
    endmethod.
    method ONACTIONSET_F2 .
      wd_this->field = 'F2'.
    endmethod.
    regards
    Phil

  • Focus for text elements

    hi
    I want to set the focus of mouse cursor on a certain component.
    for example - if the text in the text feld is not valid -> move the focus to this field.
    how can i control that?

    textComponent.requestFocus()

Maybe you are looking for