Accordion tabs w/panel sub-nav - default open issues
I have a spry accordion in a left sidebar, and I'm using it as navigation for a slideshow for a website I'm working on. Each of my 5 accordion tabs has a different category of slideshow, with each panel having multiple sub-navigation links that each link to a different slideshow which appears in the main part of the page (to the right of the sidebar). Say it's something like this:
VENUES (tab)
(start panel)
Bayside Restaurant (link)
Historic Ballroom (link)
Western Ranch (link)
(end panel)
ACTIVITIES (tab)
(start panel)
Surfing (link)
Dancing (link)
Horse back riding (link)
(end panel)
The sub-navigation to each slideshow is activated by simply clicking on the text, which I linked with the "point to file" link tool in the properties menu.
Ideally, I'd like to work with one template in Dreamweaver for all pages/slideshows I'm creating, but I'm running into a problem. I know how to change the default panel in the .js so that a different one appears open when a user first accesses the page, but I can't figure out how to get the default panel to change when the user clicks on a different panel and attempts to use the subnavigation. The subnavigation works just fine (it takes the user to the correct slideshow), but then the panel snaps shut instead of remaining open on the one the user selected.
(So, to further explain with the example above, say the user wanted to look at all the links in the "Venues" tab, but the default is to have the "Activities" tab open on arrival. The "Venues" tab opens just fine on the click, but as soon as the user clicks on, say "Bayside Restaurant," the correct slideshow appears to the right, but then the "Venues" tab snaps shut and the "Activities" tab and its sub-navigation appears open again. The user then has to click on the "Venues" tab again if s/he wants to see the other options and view a different slideshow, rather than simply being able to click on the next link.)
I tried making multiple templates, with different default panels open as a solution, but that's not working either. . .for some reason it keeps defaulting back.
Does this make sense? Are there any solutions to this problem? Any help would be much appreciated.
Thanks!
Rebekka
I think I found your problem. It lies in the Javascript:
<script language="JavaScript" type="text/javascript">
var indexAccordion = new Spry.Widget.Accordion("indexAccordion");
var acc1 = new Spry.Widget.Accordion("indexAccordion", { useFixedPanelHeights: false });
</script>
You have essentially duplicated the code in order to accomodate the useFixedPanelHeights. Consolidate it into single one, and remove the duplicate:
<script language="JavaScript" type="text/javascript"> var acc1 = new Spry.Widget.Accordion("indexAccordion", { useFixedPanelHeights: false }); </script>
IE might be having trouble understanding the double instances of the script and is ignoring the latter one. Just keep the latter one and it might fix it.
Also, thanks for the tip, but I use Chrome's Developer Tools... it just didn't cross my mind since I've been busy =)
Similar Messages
-
Collapsible Panels with one default open
I'm using the collapsible panels widget, I was wondering if
there was a way to have one panel open while the others are closed
by default. I know it's possible with the spry accordion, but is it
possible for the collapsible panels as well?
Thanks!Yes it is possible and it has a different look and feel to
it.
An accordion panel can only have one panel open at a time
whereas the sliding panel can have more open or closed.
Try something like this:
cpg = new
Spry.Widget.CollapsiblePanelGroup("CollapsiblePanelGroup", {
contentIsOpen: false });
cpg.openPanel(4); -
Can not update tab if its not the default sub-tab.
Can not update tab if its not the default sub-tab.
JDeveloper Version 10.1.2.1.0 (Build 1913)
Hi. I have a problem with a lovOpenWindowAction
The UIX is created with a master UIX and have several sub-tab that is included as UIX-pages.
The lovOpenWindowAction lies in the included UIX-page
The sub-tab I have a problem with has a table with users. Then I have a Create New button than I want to click on and select a new user that should be included in the table in the sub-tab.
When I click on the button I open a LOV-window. Here I select the user that I want to add.
In the LOV Action-class I save my new value in the database. Then in the method onLovUpdate I update the iterator with the new values from the database.
But in my GUI the subtab is not updated until I click on it.
But if I make the subtab the default subtab then it all works just fine and the GUI is updated directly.
Here is the code for the tableAction in the subtab. This code lies in an included UIX-page. Target is the table id.
<tableActions>
<button text="Create New" id=" createNewRollperson" accessKey="N">
<primaryClientAction>
<lovOpenWindowAction destination="FiskeRollpersonerLOV.do"
source=" createNewRollperson "
targets="joinedRollpersfiskeer message"/>
</primaryClientAction>
</button>
</tableActions>
Here is some code from the master UIX-page
<subTabLayout id="flikar">
<subTabs>
<subTabBar selectedIndex="${ui:defaulting(param.index,0)}">
<contents>
<link id="resorFlik" text="Resor"
disabled="${sessionScope.fiske.id == null}"
selected="${(param.source == 'resorFlik') or empty param.source}">
<primaryClientAction>
<firePartialAction event="changeTab" targets="flikar globalHeader">
<parameters>
<parameter key="source" value="resorFlik"/>
</parameters>
</firePartialAction>
</primaryClientAction>
</link>
<link id="rollpersonerFlik" text="Rollpersoner"
disabled="${sessionScope.fiske.id == null}"
selected="${param.source == 'rollpersonerFlik'}">
<primaryClientAction>
<firePartialAction event="changeTab" targets="flikar globalHeader">
<parameters>
<parameter key="source" value="rollpersonerFlik"/>
</parameters>
</firePartialAction>
</primaryClientAction>
</link>
</contents>
</subTabBar>
</subTabs>
<contents>
<switcher childName="${param.source}"
defaultCase=ResorFlik">
<case name="resorFlik">
<include node="${ctrl:parsePage(uix, 'includes/ResorFlik')}"/>
</case>
<case name="rollpersonerFlik">
<include node="${ctrl:parsePage(uix, 'includes/FiskeRollpersonerFlik')}"/>
</case>
</switcher>
</contents>
</subTabLayout>
What am I missing?? I cant have this subtab as the default subtab! Please help me with a solution!hi,
Change the condition type to manual entry.
or
for example delivery costs will be different at the time of PO and actual delivery costs then at the time of invoice we select planned delivery costs and settle them first with the actual delivery cost.
Thanks & Regards,
Kiran -
How can I make the spry accordion remember the panel open
when I refresh the page or jump to a new page?
I am using the accordion feature on all my pages as a
navigation aid. It has three panels. When you refresh the page the
panel goes back to the default pane... Is there a way of
controlling this so that the browser can remember the pane that is
open (say set a variable, cookie, other?)Look for "Set the default open panel" on the following page:
http://labs.adobe.com/technologies/spry/articles/accordion_overview/index.html
Keep in mind you would need to change that bit of code on
every page. The only way to do it more dynamically would be to
include a custom javascript or PHP/ASP style script in order to
change the value. -
ANN: Linking to non-default Spry tab or panel - tutorial
Spry 1.6 includes a file called SpryURLUtil.js that makes it
easy to
link to a specific tab or panel in a Tabbed Panels or
Accordion widget.
I've created a step-by-step tutorial explaining how to use
it. You can
find it on my site at the following URL:
http://foundationphp.com/tutorials/spry_url_utils.php
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/That should be built in, as it is in all PVII Widgets.
Being how Spry has grown to be such an important part of your
books and
other writings, perhaps you would agree (and maybe even be
able to influence
Adobe) that what Spry needs is a re-writing rather than
updates.
Al Sparber - PVII
http://www.projectseven.com
Extending Dreamweaver - Nav Systems | Galleries | Widgets
Authors: "42nd Street: Mastering the Art of CSS Design"
"David Powers" <[email protected]> wrote in message
news:fokosr$l1e$[email protected]..
> Spry 1.6 includes a file called SpryURLUtil.js that
makes it easy to link
> to a specific tab or panel in a Tabbed Panels or
Accordion widget. I've
> created a step-by-step tutorial explaining how to use
it. You can find it
> on my site at the following URL:
>
>
http://foundationphp.com/tutorials/spry_url_utils.php
>
> --
> David Powers, Adobe Community Expert
> Author, "The Essential Guide to Dreamweaver CS3"
(friends of ED)
> Author, "PHP Solutions" (friends of ED)
>
http://foundationphp.com/ -
Muse Accordion tab - opening up instead of down.
I have a working accordion widget with about 10 tabs.
Suddenly noticed that two of the tabs are opening UP instead of DOWN....
meaning that the tab is at the bottom of the open panel instead of at the top as I would prefer.
At one time all were opening DOWN with the title tab at the top of the open panel...
but now those few are different and I dont know what i did and cannot find
a MUSE control for the behavior.
Dreamweaver help articles refer to controls that do not seem available in MUSE.
Any direction appreciated.
Thanks.
MPHello,
When you say the tabs are opening up UP instead of DOWN, are you talking about the design view of Muse or in the preview/publishes site?
Could you please provide us a link to your site where we can see the issue?
Regards,
Sachin -
Accordion panel "blank" in IE6; shows on accordion tab hover
this is a weird one. I'm using Spry1.5 accordion with 3
panels. The accordion panels themselves each contain a form and
some tables and whatnot. the markup appears to be valid.
Everything works fine in firefox. but in IE 6, i get this
behavior: the panels open properly and all that, but the div itself
is "blank", meaning none of the content shows up. However, when I
hover over any of the panel tabs, the content appears.
I'm at a loss. Has anyone else ever experienced anything like
this and, if so, how do you work around it?
It's hard for me to post code because this is in an internal
site, and also there's all kind of other js and css being brought
into the page. i'm trying to extract all of it so that i can put it
online somewhere, but it's taking me some time.
thanks so much.
Marc EsherIt seems that this behavior can be caused by multiple
factors. Several of the solutions suggested by others didn't help
me. In my case, I discovered that the problem could be solved by
turning off panel animation. In order to keep the animation in
non-MS browsers, I trap for IE and append the proper code if
necessary,in PHP:
(This code also uses the $accOpen variable (set elsewhere) to
specify which panel to open when the page loads. Obviously, you can
remove this if you don't need it.)
quote:
// Trap for Internet Explorer, because animation screws up
the display
$ua = $_SERVER['HTTP_USER_AGENT'];
$ie = "";
if(preg_match("/MSIE/", strtoupper($ua)))
$ie = ", enableAnimation: false";
?>
<script type="text/javascript">
<!--
var Accordion1 = new Spry.Widget.Accordion("Accordion1",
{defaultPanel: <?= $accOpen ?><?= $ie ?>});
//-->
</script>
I hope this helps.
Regards,
Bill Krauss -
Designate a tab in a tabbed panel as the default start tab on page load?
How can I designate a tab in a tabbed panel as the default start tab on page load? Anyone know?
Hi Lightcatcher,
By default, the first tab opens when a page loads. You can drag the tabs left/right and make the desired tab first tab.
Regards,
Aish -
Hi,
I have an accordian here:
Click Here
I want the bottom panel to be open and the top 2 to be shut.
Is there any way to do this?I'm using the accordion here,
http://dev.kelley.iupui.edu/faculty/publications.cfm,
as a container for a search element. When a search is run, I want
the panel from which the search was selected to open back up after
the results are posted.
I have tried:
<cfelseif isDefined ("form.findFacultyPubs") and
#qGetFacultyPubs.RecordCount# EQ 0>
<p>There are no records for this faculty
member.</p>
<cfelseif isDefined("Form.findFacultyPubs") and
("form.faculty") is not "" >
<h4>Records found:
<strong><cfoutput>#qGetFacultyPubs.RecordCount#</cfoutput></strong></h4>
<ul>
<p><cfoutput
query="qGetFacultyPubs"><em>#citation#</em><br
/><br /></cfoutput></p></ul>
<script type="text/javascript">
var acc1 = new Spry.Widget.Accordion("Acc1", { defaultPanel:
1 });
</script>
But this only highlights the heading of the panel, it doesn't
open it. -
When I try to open a new tab using the "+" on the toolbar, nothing happens. Even trying to use the cntl t to open a new tab does not work. To open a new tab, I must right click on a hyperlink. how can I correct this? Using Firefox 3.6.18
The Ask Toolbar is causing that in the Firefox 3.6.13+ versions. Uninstall that extension.
There are a couple of places to check for the Ask toolbar:
* Check the Windows Control panel for the Ask Toolbar - http://about.ask.com/apn/toolbar/docs/default/faq/en/ff/index.html#na4
* Also check your list of extensions, you may be able to uninstall it from there - https://support.mozilla.com/kb/Uninstalling+add-ons -
Link to specific accordion tab from other page
Hi all, were working on a site that has recipes page.
there are few recipes and they are all within an accordion widget.
when you click on the title ie: Apple pie the tab opens and shows the info.
My question is : Is it possible to link to that specific accordion tab on the recipes page?
For example: on the apple page there is a link to the apple pie recipe (which is inside an accordion)
is that possible?
yd.i meant.
if you have a page. and on that page there is an accordion with multiple tab (or panel or whatever they are called)
i would need to make link on another page that link straight to a specific opened tab in the accordion. like an anchor link on another page, but
have the accordion panel open instead.
understand
sorry for the lousy english.
yd. -
How to Disable Accordion Tab?
HI. My first visit here...
Is anyone knows how to disable all accordion tabs and be able
to open each next from inside previous.
I know there are some nice samples on how to programatically
open panels and tabs, but on the same time each of panels or tabs
can be open by simply clicking on it. I need to restrict user from
opening tab, unless info is entered inside previous tab content...
Any advice is appreciated.This question has been asked before. Once again, you can NOT do this using pure java. This could be done in Windows using JNI and a keyboard hook or interfacing with the screensaver API perhaps.
-
This only started happening about 2 days ago. I will have tabs open, go to bookmarks and click on one. It seems that it is not opening but I then discovered that there is a tab at my desktop bottom tray that opened instead that I can click on to open the tab. However, it will not open unless I first minimize my bottom tray whole Firebox browser.
That is the default action when you open a new tab. There are extensions that you can install to change it from a blank page to whatever you want.
New Tab Homepage extension: <br />
https://addons.mozilla.org/en-US/firefox/addon/777 <br />
and <br />
NewTabURL extension: <br />
https://addons.mozilla.org/firefox/2221/ -
With Mavericks I have to hold command key down and double click to get a sub folder to open in a new window. Can I go back to just double clicking ?
Of course. To do it, open a Finder window, go to Finder menu (on the menu bar) > Preferences > General, and untick "Open folders in tabs instead of new windows".
-
When I click on a tab to close it I can see the red X press down but it won't close. I can open a new tab and I can click from tab to tab and the windows change. My mouse is working on every thing else, just can't close any tabs. There are six tabs open. This has been an ongoing.problem that seems to be getting more frequent. I usually do a restart and the problem goes away, but only for a short time. I don't
know where to start to fix it. I did notice the automatic updates in windows is turned off. Could that be part of the problem? Should it be turned on? I'm using Windows XP Professional version 5.1.2600 service pack 3. Firefox version 36, just refreshed. Any suggestions?
* Firefox 35.0 *Updated to Firefox 36.0 2/24/15*
* Windows XP Version 5.40.2.0 service pack 3
* Google Update
* NPRuntime Script Plug-in Library for Java(TM) Deploy
* Next Generation Java Plug-in 11.31.2 for Mozilla browsers
* DRM Store Netscape Plugin
* DRM Netscape Network Object
* Shockwave Flash 16.0 r0
* Npdsplay dll
* iTunes Detector Plug-in
* Pop up blockers: onI'm having this problem also, but I'm currently in safe mode and it's still happening, so I know it's not an addon.
'''Troubleshooting Information''':
(I'm running Win7 Pro, SP1, 64b.)
Application Basics
Name: Firefox
Version: 36.0.1
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0
Multiprocess Windows: 0/2
Crash Reports for the Last 3 Days
All Crash Reports
Extensions
Name: Clearly
Version: 10.2.1.7
Enabled: false
ID: [email protected]
Name: Disconnect
Version: 3.15.3
Enabled: false
ID: [email protected]
Name: Feedly Notifier
Version: 2.10.0
Enabled: false
ID: jid1-BOjn8b0IM7kH2w@jetpack
Name: Flash Video Downloader - YouTube HD Download [4K]
Version: 7.2.0
Enabled: false
ID: [email protected]
Name: HTTPS-Everywhere
Version: 4.0.2
Enabled: false
ID: [email protected]
Name: LastPass
Version: 3.1.92
Enabled: false
ID: [email protected]
Name: Max Tabs
Version: 0.2
Enabled: false
ID: maxtabs@cheeaun
Name: NoScript
Version: 2.6.9.19
Enabled: false
ID: {73a6fe31-595d-460b-a920-fcc0f8843232}
Name: Page Title in URL Bar
Version: 5.0.2
Enabled: false
ID: [email protected]
Name: Pushbullet
Version: 179
Enabled: false
ID: jid1-BYcQOfYfmBMd9A@jetpack
Name: Stylish
Version: 2.0.2
Enabled: false
ID: {46551EC9-40F0-4e47-8E18-8E5CF550CFB8}
Name: tabTooltip
Version: 1.1
Enabled: false
ID: [email protected]
Name: TinEye Reverse Image Search
Version: 1.1
Enabled: false
ID: [email protected]
Name: Xmarks
Version: 4.3.5
Enabled: false
ID: [email protected]
Name: µBlock
Version: 0.8.6.0
Enabled: false
ID: {2b10c1c8-a11f-4bad-fe9c-1c11e82cac42}
Graphics
Adapter Description: Intel(R) Q965/Q963 Express Chipset Family
Adapter Drivers: igdumd64 igdumdx32
Adapter RAM: Unknown
ClearType Parameters: Gamma: 2400 Pixel Structure: R ClearType Level: 100 Enhanced Contrast: 50
Device ID: 0x2992
Direct2D Enabled: Blocked for your graphics driver version.
DirectWrite Enabled: false (6.2.9200.16492)
Driver Date: 9-23-2009
Driver Version: 8.15.10.1930
GPU #2 Active: false
GPU Accelerated Windows: 0/2 Basic (OMTC) Blocked for your graphics driver version.
Subsys ID: 2808103c
Vendor ID: 0x8086
WebGL Renderer: Blocked for your graphics driver version.
windowLayerManagerRemote: true
AzureCanvasBackend: skia
AzureContentBackend: cairo
AzureFallbackCanvasBackend: cairo
AzureSkiaAccelerated: 0
Important Modified Preferences
accessibility.typeaheadfind.flashBar: 0
browser.cache.disk.capacity: 358400
browser.cache.disk.smart_size.first_run: false
browser.cache.disk.smart_size.use_old_max: false
browser.cache.frecency_experiment: 3
browser.newtab.url: about:blank
browser.places.smartBookmarksVersion: 7
browser.search.useDBForOrder: true
browser.sessionstore.upgradeBackup.latestBuildID: 20150305021524
browser.startup.homepage: google.com
browser.startup.homepage_override.buildID: 20150305021524
browser.startup.homepage_override.mstone: 36.0.1
browser.tabs.closeWindowWithLastTab: false
browser.urlbar.default.behavior: 0
dom.max_chrome_script_run_time: 0
dom.mozApps.maxLocalId: 1011
dom.mozApps.used: true
extensions.lastAppVersion: 36.0.1
font.internaluseonly.changed: true
gfx.direct2d.disabled: true
layers.acceleration.disabled: true
media.gmp-gmpopenh264.enabled: true
media.gmp-gmpopenh264.lastUpdate: 1423277131
media.gmp-gmpopenh264.version: 1.3
media.gmp-manager.lastCheck: 1426961929
network.cookie.prefsMigrated: true
places.database.lastMaintenance: 1426961930
places.history.expiration.transient_current_max_pages: 53460
plugin.disable_full_page_plugin_for_types: application/pdf
plugin.importedState: true
plugin.state.flash: 1
plugin.state.npdeployjava: 0
plugin.state.nppdf: 0
plugin.state.npwcx: 1
print.printer_PDFCreator.print_bgcolor: false
print.printer_PDFCreator.print_bgimages: false
print.printer_PDFCreator.print_colorspace:
print.printer_PDFCreator.print_command:
print.printer_PDFCreator.print_downloadfonts: false
print.printer_PDFCreator.print_duplex: 1515870810
print.printer_PDFCreator.print_edge_bottom: 0
print.printer_PDFCreator.print_edge_left: 0
print.printer_PDFCreator.print_edge_right: 0
print.printer_PDFCreator.print_edge_top: 0
print.printer_PDFCreator.print_evenpages: true
print.printer_PDFCreator.print_footercenter:
print.printer_PDFCreator.print_footerleft: &PT
print.printer_PDFCreator.print_footerright: &D
print.printer_PDFCreator.print_headercenter:
print.printer_PDFCreator.print_headerleft: &T
print.printer_PDFCreator.print_headerright: &U
print.printer_PDFCreator.print_in_color: true
print.printer_PDFCreator.print_margin_bottom: 0.5
print.printer_PDFCreator.print_margin_left: 0.5
print.printer_PDFCreator.print_margin_right: 0.5
print.printer_PDFCreator.print_margin_top: 0.5
print.printer_PDFCreator.print_oddpages: true
print.printer_PDFCreator.print_orientation: 0
print.printer_PDFCreator.print_page_delay: 50
print.printer_PDFCreator.print_paper_data: 9
print.printer_PDFCreator.print_paper_height: 11.00
print.printer_PDFCreator.print_paper_name:
print.printer_PDFCreator.print_paper_size_type: 0
print.printer_PDFCreator.print_paper_size_unit: 1
print.printer_PDFCreator.print_paper_width: 8.50
print.printer_PDFCreator.print_plex_name:
print.printer_PDFCreator.print_resolution: 1515870810
print.printer_PDFCreator.print_resolution_name:
print.printer_PDFCreator.print_reversed: false
print.printer_PDFCreator.print_scaling: 1.00
print.printer_PDFCreator.print_shrink_to_fit: true
print.printer_PDFCreator.print_to_file: false
print.printer_PDFCreator.print_unwriteable_margin_bottom: 0
print.printer_PDFCreator.print_unwriteable_margin_left: 0
print.printer_PDFCreator.print_unwriteable_margin_right: 0
print.printer_PDFCreator.print_unwriteable_margin_top: 0
privacy.cpd.offlineApps: true
privacy.cpd.siteSettings: true
privacy.donottrackheader.enabled: true
privacy.donottrackheader.value: 1
privacy.sanitize.migrateFx3Prefs: true
privacy.sanitize.timeSpan: 0
storage.vacuum.last.index: 1
storage.vacuum.last.places.sqlite: 1426532242
Important Locked Preferences
JavaScript
Incremental GC: true
Accessibility
Activated: false
Prevent Accessibility: 0
Library Versions
NSPR
Expected minimum version: 4.10.7
Version in use: 4.10.7
NSS
Expected minimum version: 3.17.4 Basic ECC
Version in use: 3.17.4 Basic ECC
NSSSMIME
Expected minimum version: 3.17.4 Basic ECC
Version in use: 3.17.4 Basic ECC
NSSSSL
Expected minimum version: 3.17.4 Basic ECC
Version in use: 3.17.4 Basic ECC
NSSUTIL
Expected minimum version: 3.17.4
Version in use: 3.17.4
Experimental Features
---------------------
Maybe you are looking for
-
Goods return to adjust open qty on Sales/Purchase Order as option
It would be handy to have an option (setting) that allows a return to adjust the open quantity on a sales order (and re-open the sales order if it was closed) if the delivery was based on a sales order. And the same functionality on the purchasing si
-
IDVD is not working...We did everything described
Why doesn't apple do Apple do something about it? We did everything described here. I bought my laptop with Leopard and DVD is not working since I bought it. We tried every thing described it was all to no avail. What can we do?
-
Hello my mac book pro doesnt connect to internet it lights up but thats it
macbok pro laptop lights up but doesnt connect pls help
-
Collecting responses to forms designed in 9 Pro with 9 Standard
I am looking to install the Acrobat 9 Pro trial to test using LiveCycle to design to PDF forms, but would like to check that I will be able to continue collecting the responses in Acrobat 9 Standard after the trail period has expired. Do I need Pro t
-
I am getting an error message CaslShared, version 3.5.1.1.. Culture=neutral, plublic key token = Gc6f83d5b7f3a097 How do I fix this?