How is a JQuery Vertical Accordian Different Than A Hide-Show Region

Hello Everyone.
I an using Apex 4.0.1. I recently learned how to create a JQuery vertical accordian. I'm using the sample accordian that Patrick Wolf recently created/posted. It uses a really nice "accordian template" that he put together. It's really quite useful when it comes to saving space and all on a page.
Then I began wondering: How is this accordian different than Apex's own builtin Hide-Show Region template?
And so, I created a sample page on my workspace in apex.oracle.com. I placed a JQuery vertical accordian that consists of 3 regions: 2 reports and a chart. I added a little bit of JQuery to Patrick's template that causes all 3 accordian slices to be closed as opposed to the default behavior of having one slice always open. I also added code that allows a user to re-size the entire accordian either vertically and/or horizontally.
I then created 3 additional regions that mimic the first 3 regions above. These I placed in "column 2" on the page. For each region I assigned the "Hide-Show" template.
As far as I can tell, both the accordian and the Hide-Show regions provide the same functionality.
For the interested, here is a link to my page:
http://apex.oracle.com/pls/apex/f?p=49919
The app has open authentication assigned, and so, no login credentials are needed. Please click the "Accordian" tab.
I realize that the accordian has more flexibilty in that one may add features like choosing to collapse/not collapse all slices and re-sizing, etc. I suppose one could do similarly for the Hide-Show regions using Javascript or JQuery but it would likely be an effort.
Admittedly, such added features are cool and all. Still, it's been my experience that in the majority of business-like production environments, such "cool" features are pretty much useless. For example, I do not see how re-sizing the accordian or Hide-Show regions has much purpose. In fact, such "cool" features often get in the way of the main goal of the application.
Of course, a JQuery accordian may also be created that expands/contracts slices "horizontally". I do not know of any way to do the same thing using Hide-Show regions. If someone does know how to do this, I (and likely others) would sure appreciate you sharing how.
So, then, with respect to basic functionality (saving page real estate by encapsulating several regions), how is a JQuery vertical accordian any different than Apex's own builtin "Hide-Show" region?
Thank you all for your thoughts/adice/code.
Elie

Hello Jari.
Thank you for your help.
Yes. Now I do understand what it is you are doing in your accordian page. And also I want to thsnk you for providing the sample code on your page showing how to go about preserving the current state of the accordian when you navigate from/to the page.
You commented that this kind of state preservation is not available with the Hide/Show region. I'm thinking that you are correct, though I think I once saw something about doing this posted in this Forum. I'll search through and see if I can locate it.
In any case, have you (or anyone else reading this thread) any other differences between a JQuery vertical accordian and Apex's own Hide/Show region? Other than being able to apply Javascript to an accordian to do things like preserve it's state (like you did), what else may one do with an accordian that is not doable (or at least not easily doable) with a Hide/Show region?
Thank you for any further advice.
Elie

Similar Messages

  • How do I keep Hide / Show Region open

    Hi,
    I have a page with one region based on a hide/show template. The current behaviour on a page submit is that the region always hides.
    I'd like it so that if the user opens the region that it will remain open after the page refreshes.
    Thanks,
    Brian

    This is a hack so I wouldn't count on it, but it worked for me (in variation, I needed a bit different thing). And, remind you, it only holds one of them open for a page (my logic is, that when they are hidden no more than one should be open at once).
    1) the page should have an item that holds the information - I'll call it OPEN_REGION. I am knowingly ignoring the usual Pn_ naming convention so all pages with Hide / Show regions could have their own OPEN_REGION but the name could still be uniquely referenced in javascript. It should be a hidden variable in the topmost region in the template (which must not be one of those enhanced HIde/Show regions).
    2) make a new javascript function to set the item and submit page. Be careful to make sure you use valid variables or javascript errors display when no OPEN_REGION item is on the page (for example).
    function myHideShow ( region )
    if (document.getElementById('OPEN_REGION'))
    if ( document.getElementById('OPEN_REGION').value != region )
    document.getElementById('OPEN_REGION').value = region;
    }else{
    document.getElementById('OPEN_REGION').value = '';
    doSubmit();
    2) edit the region template. Set it to call your own function.
    Where it sais:
    href="javascript:hideShow('region#REGION_SEQUENCE_ID#','shIMG#REGION_SEQUENCE_ID#','#IMAGE_PREFIX#jtfuhide.gif','#IMAGE_PREFIX#jtfushow.gif');"
    make it (set the page item to the region sequence number):
    href="javascript:myHideShow('#REGION_SEQUENCE_ID#');"
    3) edit your page template, in the footer add the opening of the region. Be careful to make sure you use valid variables or javascript errors display when no OPEN_REGION item is on the page (for example).
    <script>
    if (document.getElementById('OPEN_REGION'))
    if (document.getElementById('OPEN_REGION').value != '')
    theRegion = document.getElementById('OPEN_REGION').value;
    hideShow('region'+theRegion, 'shIMG'+theRegion, '#IMAGE_PREFIX#jtfuhide.gif', '#IMAGE_PREFIX#jtfushow.gif');
    </script>
    That should do it, but be aware, that I am not in Oracle team, just a simple programmer trying to find my own solutions and Javascript has helped me here sometimes.
    For example, try to use #TITLE# substitution string in BODY part of the Page Template...

  • Hide Show region vertically

    Hello friends,
    I want to use Tree on Show/Hide region.
    Is there a a way to change the behavior of Hide/Show region. By default it slides down. I need it to slide right.
    Or I have to try jquery accordion.
    Regards,
    Water

    See this:
    http://stackoverflow.com/questions/596608/slide-right-to-left
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    http://apex.oracle.com/pls/otn/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Customized setup for deployment of Firefox 4 : How to integrate addons & prefs (seems different than 3.6.x)

    I'd like to silently install Firefox 4 using customized prefs, but it's seems different than the 3.6.x versions.
    How does it work with the new "folder architecture" used in Firefox ?
    * For 3.6.x, using the -ms switch install Firefox silently, and i integrated addons & prefs by :
    - copying pref.js + localstore.rdf + mimeTypes.rdf + content-prefs.sqlite + bookmarks.html to "localized\defaults\profile".
    - extracting all *.xpi addons into the extensions install folder "nonlocalized\extensions".
    * For FF 4 the -ms still works, and i tried to copy my addons in "core\distribution\extensions\", but all of them do not install, and I don't see any "localized" or "profile" folder for the prefs..
    Thx a lot in advance !

    Hi guys, here are some informations that i found and combined. These preferences/customisations ARE TESTED and WORKING!!
    First of all, extract your "Firefox Setup 4.0.exe"
    '''Silent installation without desktop icon:'''
    Create a "nodesktop.ini" at the same place you can find the setup.exe (root directory after extraction) containing following text:
    [Install]
    DesktopShortcut=false
    '''Run''': Installationfolder\setup.exe -ms /INI="CompletePathToInstallationFolder\nodesktop.ini"
    '''Disable Import Wizard:'''
    Create: InstallationFolder\core\override.ini containing:
    [XRE]
    EnableProfileMigrator=false
    Many options have to be set in InstallationsFolder\core\defaults\profile\prefs.js These directories and the prefs.js File have to be created first. Then make following entries:
    '''Use wpad:'''
    user_pref("network.proxy.autoconfig_url", "YourWpad.dat");
    user_pref("network.proxy.type", 2);
    '''Set startup homepage:'''
    user_pref("browser.startup.homepage", "http://www.YourPage.com/");
    '''Don't show browser rights:'''
    user_pref("browser.rights.3.shown", true);
    '''Don't ask if FF should be default browser:'''
    user_pref("browser.shell.checkDefaultBrowser", false);
    '''Dont't show FF welcome homepage at first run:'''
    user_pref("startup.homepage_welcome_url", "");

  • Keyboard issue - types different than what keyboards shows

    Hi,
    before my keyboard settings were Spanish (Dutch), since today these settings are just Spanish ... resulting in some keys giving a different outcome than what it shows on the keyboard.
    For example when I want to type \ by using the ALT + 1st button on 2nd row I keep on getting { ... and this applies to a lot of other signs/symbols as well.
    I tried to change it through language settings but not to my surprise Spanish (Dutch) is nowhere to be found there.
    What does this Spanish (Dutch) actually mean ... and more important how can I get it back?
    I´m sure this is very easy to sort out ... I just don't seem to find the solution.
    Can anyone help?

    Your keyboard layout is determined by what box is checked in system preferences/language & text/input sources.  Go there and make sure that only the layout you want has its box checked.
    There is no keyboard layout called Spanish (Dutch).  Try Spanish ISO or Dutch and see if that is what you are used to.  If not, please provide some additional examples of particular key combinations you want and we will try to determine which layout you should check.

  • How to compile from a folder different than bin

    Greetings guys
    I remember that a line must be added to some file, or maybe a special command is used.
    Can you tell me how, please?

    Variable Name :
    javac bin
    Variable Value:
    F:\j2sdk1.4.1\binI think you may have misunderstood. When you get to step 6, you should get a small window titled
    Edit System Variable correct? The first textfield should have Path written in it. The textfield
    under the path textfield should have a bunch of paths to various directories something like so (yours will
    differ a bit but don't worry about it):
    %SystemRoot%\system32;%SystemRoot%\System32\Wbem notice each dir is separated by a ';'
    Now, all you have to do is type the complete path to your bin directory at the end of the textfield. For example
    if I were to add my bin directory, the above bold line would look like this:
    %SystemRoot%\system32;%SystemRoot%\System32\Wbem;C:\Program Files\jdk1.5.0\bin
    I hope that helps, PLEASE PLEASE DO NOT delete the lower textfield and save. It's meant for users to
    append directories to the end of the field. If you delete info from the lower textfield, you may experience
    some major OS problems. The PATH variable is used as a convenience of being able to type a command
    from anywhere in the prompt. Any executable can be run from anywhere in a prompt provided that the
    executable's directory is appended to the end of the Path variable. That's why you can run commands from
    the prompt such as cd, exit, paint, ver, etc

  • Hide / Show region template - how to make it stay visible after NEXT& PREV?

    Hello,
    I am using the Hide / Show region template (by the way great idea to create this template ;)
    By default the region is hidden. If i want to see the region content (it is a report) I click on that icon and it becomes visible. For my report I use the pagination "ROW Ranges X to Y of Z (with pagination)".
    The issue is that if I click NEXT of Previous, the region is closing (hidding).. and in order to see the next / previous page of my report I have to re-open it..
    Is there any known workaround for this?
    Thank you in advance
    Anca

    I would start at Re: Toggle all hide show regions on a page open/closed
    It references the using javascript to manipulate your hide/show regions. It should get you started in the right direction. It is about the most straight-forward example I have seen for what you are trying to do<br><br>
    You could trigger the javascript after your page is rendered by calling it from the page footer and reference the values of page items to determine if you are supposed to hide the region(s).<br>
    Create a page item called P88_HIDESHOW_REGION1 and set it's value to Y or N depending on whether the #REQUEST# has a string in it that is part of report pagination. If you hover over a "next page" button in a report, check out the resulting URL that pops up in your browser.....it looks like ..../f?p=900:210:8352027355600111016:pg_R_241403738845262873:NO&pg_min_row=31&pg_max_rows=30&pg_rows_fetched=30
    <br>
    You could do an instr(:REQUEST,'pg_R_') > 0 then set P88_HIDESHOW_REGION1 = 'Y' else P88_HIDESHOW_REGION1 = 'N'. Your javascript called at the footer of the page could set the display of the region to on or off depending on the result of P88_HIDESHOW_REGION1

  • How to keep display as Show when using Hide Show region with pagination?

    We are trying to use a 'Hide Show' region with pagination. The problem is that if you 'Show' (ie expand) the region and then hit the link for the next page, the next page displays Hidden (ie collapsed). We want to keep the page display as 'show' when you move to the next set of records.
    There is a fix in this forum for this issue in version 2.2 (Application Express) but we are on 2.0.0.00.49 (HTML DB). Does anyone know of a similar fix for HTML DB 2?
    Ver 2.2 fix is at:
    http://www.oracle.com/technology/products/database/application_express/packaged_apps/packaged_apps.html#STICKY
    Thanks.
    David.

    Thanks for your reply.
    Running the application install script via SQL Plus using FLOWS_020000 produces result:
    NOT COMPATIBLE (Your export may contain calls not supported by your HTMLDB version.)
    The wwv_flow_api package routines that are not available in our version appear to be:
    create_or_remove_file
    create_install
    create_install_script
    Is there any way to handle these calls in other ways?
    Thanks
    David.

  • Hide show button and textual area via Javascript or jQuery

    Hi folks am Apex newbie using 4.0.1 on Vista laptop running OracleXE (for dev purposes)
    A quick desc of what items are on the page of my Helpdesk appkication and what I want to achieve ..
    I have a Progress region defined on the page - with textual areas and some region buttons.
    Details are have 2 textual areas in my region - 1st textual area shows current progress (this is read only).
    Second textual region is where IT person will type latest progress on Helpdesk prob (ticket).
    There is a region button Save Progress Text which when pressed will append text from textual area 2 into textual area 1 and
    also appends text e.g date / time / userid etc of progress text added.
    This all works fine.
    Have added a new region button - call it Enter Progress Text - which I would like when pressed will make textual area 2 and the Save Progress Text buttons visible.
    I can hide and show the textual area 2 via $X_show / hide but cannot for life of me hide the Save Progress Text button.
    I also tried to make a subregion holding textual area 2 and the Svae Progress Text button but again via Javascript / jQuery could not hide the subregion.
    Can someone please tell me the syntax of how to hide via Javascript / jquery as can't find anything much at all in the Apex online documentation.
    Many, many thanks as always.
    P.S Don't want to use dynamic actions or hide / show region as want there to be buttons on screen to make things explicit for user hence my desire to use Javascript.
    Wiggywig

    Hi,
    If its a page item then you can use below script to hide it.
    <script type="text/javascript">
        $x_HideItemRow('Put your item name');
    </script>*Put this code in page footer..                                                                                                                                                                                                                                                                                                                                                                                                                               

  • I am having a problem with homesharing on my apple tv. The email address on my tv is different than what I am registered with. How do I correct the email address that is being displayed under home sharing on the apple tv?

    Somehow my apple id email address under homesharing on my apple tv is different than that used for homesharing on itunes in my imac. I can't access home sharing on my apple tv because of this. Can you please tell me how to change it on the apple tv in order to get homesharing to work?

    turn off home sharing on apple tv, then turn it on again, entering new credentials. Apple-TV works very reliably with home sharing unlike iDevices which don't

  • If I have two email accounts, one personal hotmail account and one MS Exchange work account, how can I setup individual notifications for each account. Right now, any email from any account has the same notification. I want work to be different than perso

    If I have two email accounts, one personal hotmail account and one MS Exchange work account on my iPhone 4s, How can I setup individual notifications for each account? Fore example, if I get a work email, I want to hear a DING, DING....If I get a personal email, I want to hear a BEEP, BEEP. Right now, any email from any account has the same notification. I want work incoming email notification to be different than personal incoming notification. The only semi-workaround I've seen is just disable any notification for the Hotmail account, so only work emails would notify. But then I don't know when I get a personal email. Even the lowely Blackberry Torch 9800 has this feature..not iPhone 4s??
    Thanks

    Sorry you get only one notification sound for all email accounts.  you can send a suggestion to apple here http://www.apple.com/feedback/

  • How can we choose to have different apps, different playlists, different contacts, etc., on each device., while using one itunes to sync more than 1 iphone

    How can we choose to have different apps, different playlists, different contacts, etc., on each device., while using one itunes to sync more than 1 iphone

    Use Multiple Devices with One Computer
    How to use multiple iPods, iPads, or iPhones with one computer

  • I had my itunes acct with a yahoo mail, now Im using icloud with my apple id, which is different than itunes I had.  how can I merge this 2 accounts? I still have money in my old itunes acct. 2 acct

    I had my itunes acct with a yahoo mail, now Im using icloud with my apple id, which is different than itunes I had.  how can I merge this 2 accounts? I still have money in my old itunes acct. 2 acct

    Is your phone still signed in with your old iTues ID for iCloud (in Settings>iCloud)?

  • I entered a new calendar event at I cloud on my laptop.  The enent showed up on my I Phone  4S but, the start and finish times on the entry in I cloud was different than the times shown on the I phone calendar.  How do I sync the time in my I Phone with

    I entered a new calender event using I cloud on my laptop. The enent transfered to my i Phone 5 S but, the start and finish times shown st i cloud on the laptop are different than the times shown on the i phone.  How do I sync the times on the i Phone with the times shown on the laptop i cloud calender?

    Turn off time zone support on the phone.

  • I just upgraded to lion on my intel macbook.  I would like to change my facetime alert to something different than a phone ring and, I would like to be able to have full screen.  How do I do this?

    I just upgraded to lion on my intel macbook.  I would like to change my facetime alert to something different than a phone ring and, I would like to be able to have full screen.  How do I do this?

    Downgrade Lion to Snow Leopard
    1.  Boot from your Snow Leopard Installer Disc. After the installer loads select your language and click on the Continue button.  When the menu bar appears select Disk Utility from the Utilities menu.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area.  If it does not say "Verified" then the drive is failing or has failed and will need replacing.  SMART info will not be reported  on external drives. Otherwise, click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, set the partition scheme to GUID then click on the OK button. Click on the Partition button and wait until the process has completed.
    4. Quit DU and return to the installer. Install Snow Leopard.
    This will erase the whole drive so be sure to backup your files if you don't have a backup already. If you have performed a TM backup using Lion be aware that you cannot restore from that backup in Snow Leopard (see below.) I suggest you make a separate backup using Carbon Copy Cloner 3.4.1.
    If you have Snow Leopard Time Machine backups, do a full system restore per #14 in Time Machine - Frequently Asked Questions.  If you have subsequent backups from Lion, you can restore newer items selectively, via the "Star Wars" display, per #15 there, but be careful; some Snow Leopard apps may not work with the Lion files.

Maybe you are looking for