Accordion - change of focus/viewport when opening tab

Hi,
Developing a page that uses the spry accordion 1.5.
I have several long accordion tabs, say 6 tabs, and each tab
contains 5-10 paragraphs of information.
My issue is that on opening any tab (other than the first,)
the previous tab closes, and as the new tab opens, the focus of the
viewport moves to somewhere in the middle of the newly opened tab,
(where as I would prefer that the start of the newly opened tab not
to move off the screen, so it can be more easily read, without
scrolling back up)
an example of what i am talking about is at -
http://batemansbayosteopathy.com.au/testsite/osteopathy.php#osteoand
also i cant seem to get rid of some of the scroll bars on the
RHS of several tabs.
Thanks!

As for your first issue...
You don't have to use a fixed panel size.
The problem is with IE as stated elsewhere in this forum.
You should desactivate de keyboard preset in the
SpryAccordion.js script
Like this: "this.enableKeyboardNavigation = false"
I don't understand why this is set to "true" by default if it
does not work in IE.

Similar Messages

  • How to Change the Focus of a form tab?

    Hi ,
    In Oracle Apps how to do the form personalization to change the focus of the form from one tab to another tab at the time of opening of a form
    For example when I am open a form in that by default the focus of the form is showing first tab i.e. TAB1 here I need to change the focus of the form is TAB2 when ever I open a form.
    Please help is it possible in Form Personalization or not if not please suggest the alternative.
    Thanks in Advance.
    Prasanna

    Please help is it possible in Form Personalization or not if not please suggest the alternative.Forms Personalization is a feature of the Oracle Enterprise Business Suite (EBS) not Oracle Forms. Please post your question in the General EBS Discussion forum. If you have a general Forms question, by all means, ask it here! ;-)
    For information on what and how you can do something with Forms Personalization, you should review the Oracle Application Framework Personalization Guide in the Oracle Applications Documentation library.
    Craig...

  • Focus-requests when switching tabs in JTabbedPane

    I have a tabbed pane with a JTextArea in each tab. I would like to switch focus to the corresponding area each time I select a tab or create a new one. A ChangeListener can detect tab selections and call requestFocusInWindow() on the newly chosen tab's text area.
    For some reason, the focus only switches sporadically. Sometimes the caret appears to stay, sometimes it only blinks once, and sometimes it never appears. My friend's workaround is to call requestFocusInWindow() again after the setSelectedIndex() calls, along with a Thread.sleep() delay between them. Oddly, in my test application the delay and extra focus-request call are only necessary when creating tabs automatically, rather than through a button or shortcut key.
    Does the problem lie in separate thread access on the same objects? I tried using "synchronized" to no avail, but EventQueue.invokeLater() on the focus request worked. Unfortunately, neither the delay nor invokeLater worked in all situations in my real-world application. Might this be a Swing bug, or have I missed something?
    Feel free to tinker with my test application:
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;
    /**Creates a tabbed pane with scrollable text areas in each tab.
    * Each time a tab is created or selected, the focus should switch to the
    * text area so that the cursor appears and the user can immediately type
    * in the area.
    public class FocusTest2 extends JFrame {
         private static JTabbedPane tabbedPane = null;
         private static JTextArea[] textAreas = new JTextArea[100];
         private static int textAreasIndex = 0;
         private static JButton newTabButton = null;
         /**Creates a FocusTest2 object and automatically creates several
          * tabs to demonstrate the focus switching.  A delay between creating
          * the new tab and switching focus to it is apparently necessary to
          * successfully switch the focus.  This delay does not seem to be
          * necessary when the user fires an action to create new tabs, though.
          * @param args
         public static void main(String[] args) {
              FocusTest2 focusTest = new FocusTest2();
              focusTest.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              focusTest.show();
              //Opens several tabs.
              for (int i = 0; i < 4; i++) {
                   try {
                        //adding the tab should automatically invoke setFocus()
                        //through the tabbed pane's ChangeListener, but for some
                        //reason the focus often doesn't switch or at least doesn't
                        //remain in the text area.  The workaround is to pause
                        //for a moment, then call setFocus() directly
                        addTabbedPaneTab();
                        //without this delay, the focus only switches sporadically to
                        //the text area
                        Thread.sleep(100);
                        setFocus();
                        //extra delay simply for the user to view the tab additions
                        Thread.sleep(1900);
                   } catch (InterruptedException e) {
         /**Adds a new tab, titling it according to the index of its text area.
          * Using "synchronized" here doesn't seem to solve the focus problem.
         public static void addTabbedPaneTab() {
              if (textAreasIndex < textAreas.length) { //ensure that array has room
                   textAreas[textAreasIndex] = new JTextArea();
                   //title text area with index number
                   tabbedPane.addTab(
                        textAreasIndex + "",
                        new JScrollPane(textAreas[textAreasIndex]));
                   tabbedPane.setSelectedIndex(textAreasIndex++);
         /**Constructs the tabbed pane interface.
         public FocusTest2() {
              setSize(300, 300);
              tabbedPane = new JTabbedPane();
              //Action to create new tabs
              Action newTabAction = new AbstractAction("New") {
                   public void actionPerformed(ActionEvent evt) {
                        addTabbedPaneTab();
              //in my real-world application, adding new tabs via a button successfully
              //shifted the focus, but doing so via the shortcut key did not;
              //both techniques work here, though
              newTabAction.putValue(
                   Action.ACCELERATOR_KEY,
                   KeyStroke.getKeyStroke("alt T"));
              newTabAction.putValue(Action.SHORT_DESCRIPTION, "New");
              newTabAction.putValue(Action.MNEMONIC_KEY, new Integer('T'));
              newTabButton = new JButton(newTabAction);
              Container container = getContentPane();
              container.add(tabbedPane, BorderLayout.CENTER);
              container.add(newTabButton, BorderLayout.SOUTH);
              //switch focus to the newly selected tab, including newly created ones
              tabbedPane.addChangeListener(new ChangeListener() {
                   public void stateChanged(ChangeEvent evt) {
                        //note that no delay is necessary for some reason
                        setFocus();
         /**Sets the focus onto the selected tab's text area.  The cursor should
          * blink so that the user can start typing immediately.  In tests without
          * the delay during the automatic tab creation in main(), the cursor
          * sometimes only blinked once in the text area.
         public static void setFocus() {
              if (tabbedPane == null) //make sure that the tabbed Pane is valid
                   return;
              int i = tabbedPane.getSelectedIndex();
              if (i < 0) //i returns -1 if nothing selected
                   return;
              int index = Integer.parseInt(tabbedPane.getTitleAt(i));
              textAreas[index].requestFocusInWindow();
    }

    Did you ever get everything figured out with this? I have a similar problem ... which I have working, but it seems like I had to use a bunch of hacks.
    I think the problem with the mouse clicks is because each event when you click the moues (mousePressed, mouseReleased, mouseClicked) causes the tab to switch, and also these methods are called twice for some reason - for a total of 8 events giving the tab the focus instead of your textarea.
    This works, but seems aweful hacky:
         class TabMouseListener extends MouseAdapter
              private boolean switched = false;
              public void mousePressed( MouseEvent e ) { checkPop( e ); }
              //public void mouseReleased( MouseEvent e ) { checkPop( e ); }
              //public void mouseClicked( MouseEvent e ) { checkPop( e ); }
              public void checkPop( MouseEvent e )
                   if( e.isPopupTrigger() )
                        mousex = e.getX();
                        mousey = e.getY();
                        int index = tabPane.indexAtLocation( mousex, mousey );
                        if( index == -1 ) return;
                        tabMenu.show( tabPane, mousex, mousey );
                   else {
                        if( !switched )
                             switched = true;
                             e.consume();
                             int index = tabPane.indexAtLocation( e.getX(), e.getY() );
                             if( index != -1 )
                                  tabPane.setSelectedIndex( index );
                                  TabFramePanel panel = (TabFramePanel)tabPane.getComponentAt( index );
                                  if( panel != null ) panel.getInputComponent().requestFocus();
                        else {
                             switched = false;
                             TabFramePanel panel = (TabFramePanel)tabPane.getSelectedComponent();
                             if( panel != null ) panel.getInputComponent().requestFocus();
         }Do you know of a better way yet?
    Adam

  • When opening tab how to set bookmark as default

    When opening a new page I would like my bookmark page to be the default when the tab opens

    This is coming in Firefox 29 which will be released at the end of the month. If you want to test this install Firefox Beta from the Play Store.
    * Tap the phone menu button or 3 dot button in the upper right
    * Select Settings
    * Select customize
    * Select home
    * Long tap on bookmarks and set as default

  • Random Safari Crashes when opening tab

    Hi folks.
    This has been happening since i updated to Mountain Lion and Safari 6.0.2.
    There is no discernable pattern that I can see.  Sometimes it will run fine for days, sometimes it will crash twice in ten minutes.
    Every time its when I click on a link, usually right-clicking to open in a new tab.  Poof.  Safari vanishes.
    I relaunch it, and it all works fine, the perpetrator link works fine.  Impossible to repeat the crash even with identical open tabs.  Also, I get no "Safari quit unexpectedly" or any kind of crash report.  It just poofs away and I relaunch and keep working.  Nothing shows up in the CrashReporter Logs (which claims my last safari crash was 6 months ago HA HA HA).
    Its a petty annoyance, but it gets irritating.  any ideas?  Thanks.

    The next time you have the problem, note the exact time: hour, minute, second.
    If you have more than one user account, these instructions must be carried out as an administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left.
    Scroll back in the log to the time you noted above. Select any messages timestamped from then until the end of the episode. Copy them (command-C) to the Clipboard. Paste (command-V) into a reply to this message.
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

  • Can not change project properties (crashes when opening)

    I try to change the project properties when I go to open it livetype crashes

    I had this same problem... but only with one account. Another account on the same machine worked fine. So... I studied the crash report searching for the short user name of the crashing account and found one file that was unique to this user...
    /Users/<my user account>/Library/ColorPickers/RCWebColorPicker.colorPicker
    I deleted it and now Project Properties in LiveType works fine!
    There seems to be an update to this color picker:
    http://www.rubicode.com/Software/RCWebColorPicker/
    (They acknowledge a problem with Apple Pro apps and Leopard)
    Message was edited by: Roland G

  • Changing the background color when opening an image?

    I just installed Firefox on my new Windows laptop, and when I open an image in a new tab the background around the image is a dark gray. On my old computer the background is white, which I much prefer. How do I change this setting?

    It is a new feature in Firefox 11+ versions to display a single image centered with an almost black background.
    It is added by this stylesheet:
    * resource://gre/res/TopLevelImageDocument.css
    You can look at this extension to set your preferred background color and remove the centering.
    * Old Default Image Style: https://addons.mozilla.org/firefox/addon/old-default-image-style/
    See also these forum threads for other solutions (e.g. userContent.css):
    *[[/questions/923127]]
    *[[/questions/923431]]

  • How do I stop files changing my units preferences when opening in illustrator

    When I open files in illustrator that have been sent to me they sometimes open with the measurement units changed from "mm" to "cm" or even "in", not a huge problem but when I have 10 files for a job that are all doing the same its an extra bit of messing around I could do without.
    They can be any kind of file .ai .eps .fs .pdf etc..., when I go into my preference to change it back it shows that it is set to "mm" already?????. I can change it to "mm" again but I have to go Edit - preferences - Units - change them to read "cm" - OK, then repeat the process Edit - Preferences - Units - change back to read "mm" and that does it.

    You are welcome, maxwells3.
    When you have the time (and courage), you may have a go with some of the suggestions in the list below.
    The following is a general list of things you may try when the issue is not in a specific file (you may have tried/done some of them already); 1) and 2) are the easy ones for temporary strangenesses, and 3) and 4) are specifically aimed at possibly corrupt preferences); 5) is a list in itself, and 6) is the last resort.
    1) Close down Illy and open again;
    2) Restart the computer (you may do that up to 3 times);
    3) Close down Illy and press Ctrl+Alt+Shift/Cmd+Option+Shift during startup (easy but irreversible);
    4) Move the folder (follow the link with that name) with Illy closed (more tedious but also more thorough and reversible);
    5) Look through and try out the relevant among the Other options (follow the link with that name, Item 7) is a list of usual suspects among other applications that may disturb and confuse Illy, Item 15) applies to CC, CS6, and maybe CS5);
    Even more seriously, you may:
    6) Uninstall, run the Cleaner Tool (if you have CS3/CS4/CS5/CS6/CC), and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html

  • View of PDF file changes or looks strange when opening a file.

    Hi all,
    I have strange problem, that is haunting me.
    A PDF file is created from Microsoft Dynamics AX 2009 system. I guess that Microsoft have their own pdf-writer-engine.
    From time to time, we have seen that the PDF files, on some computers looks correct, on others gibberish.
    One user has a Win7 machine, 32-bit system. 4gb of memory. Today he opened a PDF file from the AX system. When He opened the file on his desktop., it looked fine. After 5 seconds. The entire view changed to strange signs and letters. I opened the same file on a Win-7, 64 bit machine. Everything looks allrigt.  Both of us have Adobe Reader 11.04 installed. one-two houes after the first error, he opened another PDF file. That started to look like gibberish, and after 5 seconds it looked allright.
    In general we only see these types of errors something like 1 out of a hundred times. Most common is that the view is gibberish from the beginning, and never changes.
    Any idea to solve this, will be much appriciated
    /Hector

    I think this is done by the browser when it is saving a temporary file and there's already a file with that exact name in the temp folder.

  • Php changing to php.html when opening in DW

    I got some files from another designer and the home page is
    index.php however, when I open it in dreamweaver, it changes the
    name to index.php.html. It also changes, ie it's no longer
    centered. I tried over and over to get it not to, but it keeps
    doing it. It happens to every page but when I do another site i'm
    fine.
    thankyou

    The filename changes when you OPEN the file? Which DW are you
    using? Which
    OS?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "webontwerpen" <[email protected]> wrote in
    message
    news:frbm4s$b6v$[email protected]..
    >I got some files from another designer and the home page
    is index.php
    >however,
    > when I open it in dreamweaver, it changes the name to
    index.php.html. It
    > also
    > changes, ie it's no longer centered. I tried over and
    over to get it not
    > to,
    > but it keeps doing it. It happens to every page but when
    I do another site
    > i'm
    > fine.
    >
    > thankyou
    >

  • Colour picker automatically changing to different colour when opening

    I think I've only been having this problem since switching to CC 2014, but I can't be sure exactly when it started.
    When I open the colour picker to change a colour of an object, the colour automatically jumps to a different colour. It's very disruptive because I have no way of telling what the original colour was when trying to make small changes. And it's not a small jump either: for example, the default black jumps automatically to C60M90 purple – every time! It doesn't only occur with the default colour but also after I've selected a shade myself –  it seems to only be happening with blacks and greys.
    Any help would be appreciated, as it's driving me crazy. I've tried activating and deactivating the "Art work has default appearance" option as it was the only thing I could think of and have had problems with that acting strangely before. I can't think of what else I should try. If no one knows, I'll try trashing the preferences folder.
    Thanks in advance. Cheers.

    Sounds like a 2014 problem.
    Check that you are woking in the correct color mode, look to the right of your filename in parenthesis. Then use the color palette (always in the same color mode) and let us know if that is working.
    If not try to reset your illustrator preferences.

  • I get an error while changing modules pop up when opening Lr. There is no import button to use and if I try to load the default catalog I get the error message again essentially making Lr completely unusable for me! please help

    When launching Lr i get the initial screen to come up followed by an "error while changing modules" pop up. I have uninstalled and re-downloaded, followed all the suggested trouble shooting fixes and still nothing. When the app starts it has the basic info boxes but without any options in them (i.e. no import button or any buttons at all for that matter).All my other creative cloud apps seem to be working fine but Lr won't. Please help

    Ah, see, you said you had done it differently before.
    > and I tried to add a toolbox button by navigating to AcroPDF.dll.
    You'll need to reinstall Reader if the libraries aren't registered. You can't register them manually.
    Perhaps if you posted some of your code (where it creates the objects, etc.) we might be able to give you some more advice. You're sure you aren't trying to use anything outside of the AxAcroPDFLib.AxAcroPDF class?

  • Change properties to refresh when opening new workbook

    Hi All,
    I am trying to change the properties of queries and saved the workbook, when i am tranport those changes into QA environment it was not reflecting the changes in QA.
    Please help me on this issue, this is an urgent.
    Thanks in adwance....
    Babu.

    Hi
    You have to check two areas
    1. Have you chekcked bex refresh checked in the workbook properties
    Right click on workbook result ->properties -> Interaction -> 3rd option
    Refresh workbook when query is changed
    2. During transport, you have to transport the workbook ..have you did that?
    Regards
    N Ganesh

  • Premiere stops when opening tab "Adobe Media Encoder"

    Working with Premiere CS3
    When I want to export movie to flv, I open File-> Export-> Adobe Media Encoder
    Then I have to select, but since a few days when I click the Adobe Media Encoder button, Premiere stops and is out of service.
    When I start up Premiere again, it repeats.
    Yesterday I've downloaded Quicktime (of a CD which needed it for playing).
    But after uninstall Quicktime, the problem is still there.
    So I've set back the date to Wednesday (two days ago) but nothing will help.
    How can I solve this problem?

    More information would be very useful. This ARTICLE will give you tips on what types of info are needed, and how to gather some of it.
    Good luck,
    Hunt

  • U-verse App on iPad changes channels on TV when opened

    When you open the App it will cause the TV to cycle through all of the channels that you previously visited using the App.

    Same issue here. On wake flips through a ton of channels

Maybe you are looking for

  • Safari will not open specific website

    Hi, Safari will not open "www.criterion.com", it say's cannot find server, I'm using 3.1.2 on Tiger 10.4.11. Have tried repairing permissions and restarting but no joy. It worked fine last week, any ideas? Many thanks in advance, Wayne

  • Is it safe to re-install vm server - need help all envs down

    i raised another query about this but had no replies - I have also raised 2 SR's to know avail yet please help if you can: I added extra cpu's and mem to a vm server (the only one in a pool) - now nothing works if i try to rediscover the server it sa

  • Problem with PowerPoint import

    Hi , When I import an PowerPoint slide in Arabic Language to my project its characters changes to Left to Right format and its face crash into bad form . Can I correct them ?

  • ABAP Objects-Initialising

    Hi, IF cc_txt IS INITIAL.       CREATE OBJECT cc_txt         EXPORTING *      parent                      =           container_name               = 'CC_TXT' *      style                       = *      lifetime                    = lifetime_default *

  • Issue of Hierarchy when Replicating Materials ECC- CRM

    Hello, We are replicating materials from SAP ECC to SAP CRM, the material got replicated successfully however when I check the material in SAP CRM, the wrong hierarchy is getting assigned to the same(screen shot attached the hierarchy R3PRODSTYP gets