Dynamic Accordion Menu
Hi All,
I'm using spry accordion as a menu loading its data from an
XML file. Here is my code
<!-- here I include all the libraries -->
<script src="../SpryAssets/SpryAccordion.js"
type="text/javascript"></script>
<script src="../SpryAssets/xpath.js"
type="text/javascript"></script>
<script src="../SpryAssets/SpryData.js"
type="text/javascript"></script>
<script src="../SpryAssets/SpryDOMUtils.js"
type="text/javascript"></script>
<script src="../SpryAssets/SpryURLUtils.js"
type="text/javascript"></script>
<script type="text/javascript">
// Grabs the values of the URL parameters for the current
URL.
var params = Spry.Utils.getLocationParamsAsObject();
</script>
<script type="text/javascript">
var strategic1 = new
Spry.Data.XMLDataSet("../xml/Strategic.xml", "NewDataSet/Content");
var observer = { onPostUpdate: function(notifier, data) { var
a2 = new Spry.Widget.Accordion("Accordion1" ,
{defaultPanel:(params.panel ? params.panel : -1)}); } };
Spry.Data.Region.addObserver("strategic1Region", observer);
//-->
</script>
<!-- here I set the spry region -->
<div id="strategic1Region" spry:region="strategic1">
<div id="Accordion1" class="Accordion" tabindex="0">
<!-- here I set the area to be repeated -->
<div spry:repeat="strategic1" class="AccordionPanel">
<div
class="AccordionPanelTab">{strategic1::Menu}</div>
<div class="AccordionPanelContent">
<ul>
<li spry:if=" '{strategic1::Link1}' != 'undefined' "
class="SubMenu"><a href="{URL1}"
class="SubMenu">{Link1}</a></li>
<li spry:if=" '{strategic1::Link2}' != 'undefined' "
class="SubMenu"><a href="{URL2}"
class="SubMenu">{Link2}</a></li>
<li spry:if=" '{strategic1::Link3}' != 'undefined' "
class="SubMenu"><a href="{URL3}"
class="SubMenu">{Link3}</a></li>
<li spry:if=" '{strategic1::Link4}' != 'undefined' "
class="SubMenu"><a href="{URL4}"
class="SubMenu">{Link4}</a></li>
<li spry:if=" '{strategic1::Link5}' != 'undefined' "
class="SubMenu"><a href="{URL5}"
class="SubMenu">{Link5}</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
AND HERE IS MY XML FILE
<Content>
<IdMenu>2</IdMenu>
<Menu>tab01</Menu>
<SunMenu>SUB2</SunMenu>
<Link1>link01</Link1>
<Link2>link02</Link2>
<Link3>link0303</Link3>
<URL1>../link01.asp?panel=0#strategic</URL1>
<URL2>../link02.asp?panel=0#strategic</URL2>
<URL3>../link03.asp?panel=0#strategic</URL3>
</Content>
<Content>
<IdMenu>3</IdMenu>
<Menu>tab02</Menu>
<SunMenu>SUB3</SunMenu>
<Link1>link01</Link1>
<Link2>link02</Link2>
<Link3>link0303</Link3>
<URL1>../link01.asp?panel=0#strategic</URL1>
<URL2>../link02.asp?panel=0#strategic</URL2>
<URL3>../link03.asp?panel=0#strategic</URL3>
</Content>
<Content>
<IdMenu>4</IdMenu>
<Menu>tab03</Menu>
<SunMenu>SUB4</SunMenu>
<Link1>link01</Link1>
<Link2>link02</Link2>
<Link3>link03</Link3>
<Link4>link04</Link4>
<Link5>link0303</Link5>
<URL1>../link01.asp?panel=0#strategic</URL1>
<URL2>../link02.asp?panel=0#strategic</URL2>
<URL3>../link03.asp?panel=0#strategic</URL3>
<URL4>../link04.asp?panel=0#strategic</URL4>
<URL5>../link05.asp?panel=0#strategic</URL5>
</Content>
The Question
Is there a way to get the number of childnodes from the XML
file and load it to a var x and loop
<li spry:if=" '{strategicx::Linkx}' != 'undefined' "
class="SubMenu"><a href="{URLx}"
class="SubMenu">{Linkx}</a></li>
instead of repeating the spry:if 5 times
<li spry:if=" '{strategic1::Link1}' != 'undefined' "
class="SubMenu"><a href="{URL1}"
class="SubMenu">{Link1}</a></li>
<li spry:if=" '{strategic1::Link2}' != 'undefined' "
class="SubMenu"><a href="{URL2}"
class="SubMenu">{Link1}</a></li>
<li spry:if=" '{strategic1::Link3}' != 'undefined' "
class="SubMenu"><a href="{URL3}"
class="SubMenu">{Link1}</a></li>
<li spry:if=" '{strategic1::Link4}' != 'undefined' "
class="SubMenu"><a href="{URL4}"
class="SubMenu">{Link1}</a></li>
<li spry:if=" '{strategic1::Link5}' != 'undefined' "
class="SubMenu"><a href="{URL5}"
class="SubMenu">{Link1}</a></li>
Siva,
My suggestion:
1). Create a managed bean that contains nested java.util.List's or java.util.Array's that read the menu hierarchy from the database
2). Use af:forEach tags inside of af:panelAccordion to iterate through the menu structure and stamp out the menu items.
John
Similar Messages
-
Accordion menu problem. Doesn't move.
Hello!
Here are files I've modified.
http://failiem.lv/u/jhqapxy
I was making an accordion menu after this tutorial.
http://www.thetechlabs.com/xml/build-a-dynamic-accordion-menu-in-flash-cs4-with-actionscri pt-30-and-xml/
In basic tutorial there is extra part of button where you add menu name "home, about us" etc.
But I don't need this. I needed more simplier. From xml file I load an image or swf. And then you just mouse over it and it moves and it clicks. No extra 30 pixels for button space.
If i change AS line
ldr.x=0
to ldr.x=27
then it moves, but there is extra unnecessary empty space between content things. I don't need it. What should I do?
I'm total beginer at these things, but I really need this thing.You need to find where the space between is being added. If you include the relevant code in your posting you are more likely to get help. Also, probiding screenshots to show the problem you want to solve can be helpful.
People are generally not too keen about chancing downloading files and researching tutorials or other external information when trying to help in forums. -
Is there a way to expand all the options in the accordion menu?
I would like to have all the tabs in the accordion menu expanded. Is there a setting or button to have all the options expanded? Thanks.
thanks trying to help out people if i can, if you put all the years into one accordion rather than a series of accordions then you could open/close the whole lot at once, what about grouping the years into three accordions, 1998-2003, 2004-2009, 2010-2015, so at least theres a good chunk of information available / visible initially?
-
Where can I find a horizontal accordion menu tutorial
I have googled all day looking for a horizontal accordion menu for javascript and haven't found an actual tutorial. I have found downloads, but I want learn how to make one.
Just to clarify, Accordions are collapsing panels (not a menu system per se).
Spry Accordion Panels Widget
http://labs.adobe.com/technologies/spry/articles/accordion_overview/
Working with Spry Horizontal Drop-Menu widget
http://labs.adobe.com/technologies/spry/articles/menu_bar/index.html
Making a JQuery Mega Menu
http://www.sitepoint.com/make-a-mega-drop-down-menu-with-jquery/
jQuery Superfish Menus
http://users.tpg.com.au/j_birch/plugins/superfish/
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb -
Using an image as label in Spry Accordion Menu
I was wondering if it was possible to use an image instead of
text in the spry accordion menu. I have replaced the text that is
there with a roll-over image link however I'm unable to label it
since it uses the text as the label and therefore can't set the
default panel I want opened. Is there a way to do this? Thanks for
your help.Stefaan Lesage wrote:
Is this possible with Pages 09 ? And can I achieve this ?
Is it possible to look at the Help or at the Pages User Guide
In the English one, page 17, we may read:
• Some graphics, such as watermarks or logos, appear on pages. These objects are called master objects. If you cannot select an object in a template, it’s probably a master object. To learn more, see “Using Master Objects (Repeated Background Images)” on page 60.
You can drag or place objects on a page, including imported graphics, movies, and sound, or objects that you create within Pages, including text boxes, charts, tables, and shapes.
You can also insert pages that have been preformatted for the template you’re using. Click Pages or Sections in the toolbar and choose a template page. The new page is added immediately after the page where you placed the insertion point.
Yvan KOENIG (from FRANCE vendredi 27 février 2009 23:01:32) -
Setting the Default Value for a dynamic select menu
Hi I have a php page with 2 forms on it, one feeds the other to achieve a drill down (manufacturer > model). In the second select menu I have a default static value "Select Aircraft Model", I want to set a value for the first dynamic select menu to read "Select Aircraft Manufacturer". When I add a static value to my list it tells me I alreay have a dynamic behavior on this menu and to choose a different one. I have included the code for both menus. Thank you in advance, I know this must be a stupid question, but it's got me stumped.
Tom
//This is the menu I want to add the default static value to//
<td width="667"><select name="airMake" style="width: 200px;"onchange="this.form.submit();" id="airMake">
<?php
do {
?>
<option value="<?php echo $row_rsAirManufacturer['aircraft_manufacturer']?>"<?php if (!(strcmp($row_rsAirManufacturer['aircraft_manufacturer'], ((isset($_POST["airMake"]))?$_POST["airMake"]:"")))) {echo "selected=\"selected\"";} ?>><?php echo $row_rsAirManufacturer['aircraft_manufacturer']?></option>
<?php
} while ($row_rsAirManufacturer = mysql_fetch_assoc($rsAirManufacturer));
$rows = mysql_num_rows($rsAirManufacturer);
if($rows > 0) {
mysql_data_seek($rsAirManufacturer, 0);
$row_rsAirManufacturer = mysql_fetch_assoc($rsAirManufacturer);
?>
</select>
</td>
</tr>
</table></form>
<form action="quoteResult.php" method="post" name="quoteForm">
<table width="100%" border="0" cellpadding="5px">
<tr>
<td width="260"style="color: #000; text-align: right;">Aircraft Model:</td>
<td colspan="2"><span id="spryselect2">
//This is the menu that works correctly//
<select name="airModel" style="width: 200px;" id="airModel">
<option value="" <?php if (!(strcmp("", ((isset($_POST["airMakeField"]))?$_POST["airMakeField"]:"")))) {echo "selected=\"selected\"";} ?>></option>
<?php
do {
?>
<option value="<?php echo $row_rsAirModel['aircraft_model']?>"<?php if (!(strcmp($row_rsAirModel['aircraft_model'], ((isset($_POST["airMakeField"]))?$_POST["airMakeField"]:"")))) {echo "selected=\"selected\"";} ?>><?php echo $row_rsAirModel['aircraft_model']?>Select Aircraft Model</option>
<?php
} while ($row_rsAirModel = mysql_fetch_assoc($rsAirModel));
$rows = mysql_num_rows($rsAirModel);
if($rows > 0) {
mysql_data_seek($rsAirModel, 0);
$row_rsAirModel = mysql_fetch_assoc($rsAirModel);
?>
</select>Change this -
<select name="airMake" style="width: 200px;"onchange="this.form.submit();" id="airMake">
to this -
<select name="airMake" style="width: 200px;"onchange="this.form.submit();" id="airMake">
<option value="-1">Select Aircraft Manufacturer</option>
Then if the value of 'airMake' is -1 you know that no choice was made. -
Spry Accordion Menu Tab Link css - totally confused
Thanks folks from an l-plater but I've totally confused myself trying to work this out and I'm hoping some fresh eyes will see the answer clear as day. I've created a spry accordion menu with links in the actual panel tabs. Menu and links all working fine - problem is in css styling, particularly panel tab link open and hover states which should be blue text over green background, same as non-link panel tabs. You'll see from code that I've tried a few styles but can't get this to work. I'm thinking I've totally overdone it and some styles are overriding others and solution is a simple deletion of some unnecessary or conflicting styles.
Thanks so much in advance for your help - I just can't see for looking any more though I'm sure it can't be hard.
<div id="sidebar1">
<div id="Accordion1" class="Accordion">
<div class="AccordionPanel">
<div class="AccordionPanelTab"><a href="Index.html" onclick="window.location = this.href">Home</a></div>
</div>
<div class="AccordionPanel">
<div class="AccordionPanelTab">Photo Gallery</div>
<div class="AccordionPanelContent">
<ul>
<li><a href="PhotoGallery.html">Gallery 1</a></li>
</ul>
</div>
</div>
<div class="AccordionPanel">
<div class="AccordionPanelTab">Unit Newsletters</div>
<div class="AccordionPanelContent">
<ul>
<li><a href="Newsletter.html">February 2010</a></li>
</ul>
</div>
</div>
<div class="AccordionPanel">
<div class="AccordionPanelTab"><a href="Sponsors.html" onclick="window.location = this.href">Sponsors</a></div>
</div>
<div class="AccordionPanel">
<div class="AccordionPanelTab"><a href="Merchandise.html" onclick="window.location = this.href">Merchandise</a></div>
</div>
<div class="AccordionPanel">
<div class="AccordionPanelTab"><a href="Links.html" onclick="window.location = this.href">Links</a></div>
</div>
<div class="AccordionPanel">
<div class="AccordionPanelTab"><a href="Events.html" onclick="window.location = this.href">Events</a></div>
</div>
<div class="AccordionPanel">
<div class="AccordionPanelTab">Forms</div>
<div class="AccordionPanelContent">
<ul>
<li><a href="">Joining Instructions</a></li>
<li><a href="">Enrolment</a></li>
<li><a href="">Next of Kin</a></li>
<li><a href="">Volunteer Blue Card</a></li>
</ul>
</div>
</div>
<div class="AccordionPanel">
<div class="AccordionPanelTab"><a href="Contact.html" onclick="window.location = this.href">Contact</a></div>
</div>
<div class="AccordionPanel">
<div class="AccordionPanelTab"><a href="LogIn.html" onclick="window.location = this.href">Log In</a></div>
<div class="AccordionPanelContent">
<ul>
<li><a href="WhatsOn.html">Whats On</a></li>
<li><a href="PSG.html">Parent Support Group</a></li>
</ul>
</div>
</div>
</div>
</div>
.AccordionPanel {
margin: 0px;
padding: 0px;
.AccordionPanelTab {
background-color: #036;
border-bottom: 1px #93b747 solid;
margin: 0px;
padding-left: 10px;
padding-top: 2px;
padding-bottom: 2px;
font-size: 12px;
cursor: pointer;
-moz-user-select: none;
-khtml-user-select: none;
text-decoration: none;
.AccordionPanelTabOpen {
color: #036;
background-color: #93b747;
display: block;
text-decoration: none;
.AccordionPanelTabHover {
color: #036;
background-color: #93b747;
text-decoration: none;
border-bottom: 1px solid #036;
display: block;
.AccordionPanelTab a {
color: #93b747;
margin: 0px;
font-size: 12px;
cursor: pointer;
-moz-user-select: none;
-khtml-user-select: none;
text-decoration: none;
display: block;
.AccordionPanelTab a.open {
font-color: #036;
color: #036;
background-color: #93b747;
text-decoration: none;
display: block;
.AccordionPanelTab a.active {
color: #036;
background-color: #93b747;
display: block;
text-decoration: none;
.AccordionPanelTab a.hover {
color: #036;
background-color: #93b747;
font-weight: bold;
text-decoration: none;
display: block;
.AccordionPanelTab a.close {
color: #93b747;
background-color: #036;
text-decoration: none;
display: block;
.AccordionPanelContent {
margin: 0px;
padding-left: 10px;
padding-top: 2px;
padding-bottom: 12px;
background: #fff;
font-size: 12px;
color: #036;
font-weight: 500;
.AccordionPanelContent ul li {
margin-left: -40px;
padding-top: 2px;
padding-bottom: 2px;
background: #fff;
font-size: 12px;
color: #036;
font-weight: 500;
text-decoration: none;
list-style-type:none;
list-style:none;
.AccordionPanelContent ul li a:link {
color: #036;
text-decoration: none;
list-style-type:none;
list-style:none;
.AccordionPanelContent ul li a:hover {
color: #036;
font-weight: bold;
text-decoration: none;
.AccordionPanelContent ul li a:visited {
color: #036;
text-decoration: none;
.AccordionPanelOpen .AccordionPanelTab {
color: #036;
background: #93b747;
border-bottom: 1px solid #036;
.AccordionPanelOpen .AccordionPanelTab.a {
color: #036;
background: #93b747;
border-bottom: 1px solid #036;
.AccordionPanelOpen .AccordionPanelTabHover {
color: #036;
font-weight: bold;
.AccordionPanelOpen.a .AccordionPanelTabHover.a {
color: #036;
font-weight: 600;
.AccordionFocused .AccordionPanelTab {
color: #036;
font-weight: 600;
a.AccordionFocused .AccordionPanelTab {
color: #036;
font-weight: 600;
.AccordionFocused .AccordionPanelOpen .AccordionPanelTab {
color: #036;
font-weight: 600;
a.AccordionFocused .AccordionPanelOpen .AccordionPanelTab {
color: #036;
font-weight: 600;Yes Beth, you're right and I've corrected my css - I think - problem with AccordionPanelTab link open and hover states still happening so css still wrong. I've uploaded site so you can see what's happening (www.11acu.org). All tab states should be as per Photo Gallery, Newsletters and Forms. Hover state in tab links seem okay until mouse moves away from "a href" block - rest of tab area not working so its like the two styles, ie "AccordionPanelTab" and "AccordionPanelTab a:hover" are both working at the same time but I only want the latter to work. Now I've probably got you confused as well! lol Apologies! Recreated css for tab links below. Html same as in original post. Any help much appreciated.
.AccordionPanelTab {
color: #93b747;
background-color: #036;
border-bottom: solid 1px #93b747;
margin: 0px;
padding-left: 10px;
padding-top: 2px;
padding-bottom: 2px;
font-size: 12px;
text-decoration: none;
cursor: pointer;
-moz-user-select: none;
-khtml-user-select: none;
.AccordionPanelTab a {
color: #93b747;
background-color: #036;
margin: 0px;
padding-left: -10px;
padding-top: -2px;
padding-bottom: -2px;
font-size: 12px;
text-decoration: none;
cursor: pointer;
-moz-user-select: none;
-khtml-user-select: none;
display: block;
.AccordionPanelTab a:link {
color: #93b747;
background-color: #036;
margin: 0px;
padding-left: -10px;
padding-top: -2px;
padding-bottom: -2px;
font-size: 12px;
text-decoration: none;
cursor: pointer;
-moz-user-select: none;
-khtml-user-select: none;
display: block;
.AccordionPanelTab a:hover {
color: #036;
background-color: #93b747;
margin: 0px;
padding-left: -10px;
padding-top: -2px;
padding-bottom: -2px;
font-size: 12px;
text-decoration: none;
cursor: pointer;
-moz-user-select: none;
-khtml-user-select: none;
display: block;
.AccordionPanelTab a:active {
color: #036;
background-color: #93b747;
margin: 0px;
padding-left: -10px;
padding-top: -2px;
padding-bottom: -2px;
font-size: 12px;
text-decoration: none;
cursor: pointer;
-moz-user-select: none;
-khtml-user-select: none;
display: block;
.AccordionPanelOpen .AccordionPanelTab {
color: #036;
background-color: #93b747;
border-bottom: solid 1px #036;
text-decoration: none;
.AccordionPanelTabHover {
color: #036;
background-color: #93b747;
text-decoration: none;
border-bottom: solid 1px #036;
.AccordionPanelOpen .AccordionPanelTabHover {
color: #036;
background-color: #93b747;
text-decoration: none;
font-weight: bold;
.AccordionFocused .AccordionPanelTab {
color: #93b747;
background-color: #036;
text-decoration: none;
.AccordionFocused .AccordionPanelOpen .AccordionPanelTab {
color: #036;
background-color: #93b747;
border-bottom: solid 1px #036;
text-decoration: none; -
Spry:state and dynamic accordion
When I use a dynamic accordion (i.e. populated by a dataSet),
the accordion functionality disappears. Here is my code. Am I doing
something wrong, or is this just a bug?
Thanks
Andy
<div spry:region="dsOrders">
<div spry:state="loading">Data is
loading...</div>
<div spry:state="error">Error loading
data...</div>
<div spry:state="ready">
<div id="orders" class="Accordion">
<div class="AccordionPanel" spry:repeat="dsOrders">
<div class="AccordionPanelTab"><h3
spry:content="{ORDERNUM}"></h3></div>
<div class="AccordionPanelContent"><span
spry:content="{ORDERDATE}"></span></div>
</div>
</div>
</div>
</div>This might also be helpful to some. Not only do we have
states in SPRY... but events! Here is how I did it on a site that
has a dataset called dsOpportunities. The following HTML/Javascript
was added to the head tags of the HTML. Then the on <body
onload="afterReady()" > was used to make sure it was run.
Remember that your section you are hiding needs to have a class
with the same senario. (Or if it is unique you could do something
simular with ID rather than class.
<script>
function afterReady() {
$('pageContent').style.visibility = 'hidden';
var iSPRY = new Object;
iSPRY.onPostLoad = function(dataSet,data) {
$('pageContent').style.visibility = 'visible';
dsOpportunities.addObserver(iSPRY);
</script>
<style>
.pageContent {
visibility: hidden;
</style> -
Dynamic accordion with dynamic datagrid
I’m trying to create a dynamic accordion with embedded
datagrids in each accordion area. I have the base working but have
2 problems I can’t seem to figure out.
Bases; the accordion uses a repeater and vbox with a custom
component from a webservice result set to create the accordion. The
custom component has another webservice that gets a value from the
repeater to pass it to the custom component.
My 2 problems:
1. how do I prevent the custom component from running the
webservice until the accordion item is clicked or the area is
visible? Otherwise I end up will a bunch of queries hitting the DB
and if there is several items for the accordion and many items from
the datagrid its slower.
2. how can I get the datagrid query to refresh when the
accordion item is clicked? Because the data may change I am not
able to see the updated data unless I reload the entire
application.
1 thing I did try. With the tab control you can use the
show() event and the data will refresh just fine, but with the
accordion, the show() event does not seem to fire. Its as if they
are all visible.
Any help here would be much appreciated, I’ve been
racking my brain for days now and I sure it is something simple
that I am missing. Thanks in advance.
See the example code below.
the application code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute"
width="100%"
height="100%"
initialize="ws.getMethod1.send()"
xmlns:output="com.comp.*">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
[Bindable]
public var thisWsdl:String = '
http://localhost/webservice/service.cfc?wsdl';
]]>
</mx:Script>
<mx:WebService id="ws"
wsdl="{thisWsdl}"
useProxy="false"
showBusyCursor="true"
fault="Alert.show(event.fault.faultString, 'Error');"
concurrency="multiple" requestTimeout="30">
<mx:operation name="getMethod1">
<mx:request>
<param1>{param1data}</param1>
<param2>{param2data}</param2>
<param3>{param3data}</param3>
</mx:request>
</mx:operation>
</mx:WebService>
<mx:Accordion width="100%" height="100%"
fillColors="[#808080, #808080]">
<mx:Repeater id="rp"
dataProvider="{ws.getMethod1.lastResult}">
<mx:VBox label="{String(rp.currentItem.catname)}"
backgroundColor="#C0C0C0" width="100%" height="100%"
paddingRight="10">
<output:comp catid="{rp.currentItem.catid}"/>
</mx:VBox>
</mx:Repeater>
</mx:Accordion>
</mx:Application>
the component code:
<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="
http://www.adobe.com/2006/mxml"
width="100%"
height="100%"
focusIn="ws.getMethod.send()"
horizontalAlign="center"
backgroundColor="#FFFFFF">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
[Bindable]
public var thisWsdl:String = '
http://localhost/webservice/service.cfc?wsdl';
[Bindable]
public var catid:int;
]]>
</mx:Script>
<mx:WebService id="ws"
wsdl="{thisWsdl}"
useProxy="false"
showBusyCursor="true"
fault="Alert.show(event.fault.faultString, 'Error');"
concurrency="multiple" requestTimeout="30">
<mx:operation name="getMethod2">
<mx:request>
<catid>{catid}</catid>
</mx:request>
</mx:operation>
</mx:WebService>
<mx:DataGrid id="itemGrid"
dataProvider="{ws.getMethod2.lastResult}" width="700"
height="250">
<mx:columns>
<mx:DataGridColumn width="100" dataField="itemid"
headerText="Item Id"/>
<mx:DataGridColumn wordWrap="true" dataField="itemname"
headerText="Item Name"/>
</mx:columns>
</mx:DataGrid>
</mx:VBox>Perhaps you could use the change event of the accordion, or
the show event of the child containers?
Tracy -
Accordion menu HELP - sorry, very urgent
Good afternoon, first I would like to say that I'm a completely newbie in this things, sorry for that. I'm trying to expose my question in the most simple way:
I want to make a Accordion menu, where in the content boxes appears no only one space to work and put a link and images, but more, how many as I want. Is correct putting a table inside the content box and make rows? Is there any other way to build this correctly? I tried the Vertical Menu Spy, but I don't like it because I want this to work like the accordion... don't know if I make myselfe clear, sorry the bad english. Hope some one can help! Thanks
PS: there goes an image to explain betterDW Sprys and Accordions are difficult for experts to use. If you don't have a good knowledge of HTML, CSS and JavaScripts yet, you may be better off using a commercial product.
Project Seven Accordion Panel Magic 2
http://www.projectseven.com/products/tools/accordion2/index.htm
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
www.alt-web.com/
www.twitter.com/altweb -
DYNAMIC SIMULATION MENU IN SEM BPS PLEASE ANSWER
DYNAMIC SIMULATION MENU IN SEM BPS PLEASE ANSWER
Hi everbody,
I cannot see menu "dynamic simulation" and planning function "dynamic simulation" in our company's SEM System. Installation details are so:
Component version : Netweaver 04
Database: Oracle 9.2.0.5.0
SAP_ABA 640 0010 SAPKA64010
SAP_BASIS 640 0010 SAPKB64010
PI_BASIS 2004_1_640 0006 SAPKIPYI66
SAP_BW 350 0010 SAPKW35010
FINBASIS 300 0012 SAPK-30012INFINBASIS
SEM-BW 400 0012 SAPKGS4012
BI_CONT 353 0005 SAPKIBIFP5
Does SAP not support integration with Powersim in this new version of SEM or is there another way to integrate Powersim with BPS? I have seen these menus in version SEM 3.20 with underlying BW version of 3.10.
Thank you very much.
With best regards.Hi again,
I know that Powersim is sold by own and has seperate license, but to connect Powersim and BPS there is a delivered planning function in SEM-BPS as I read and in "Planning" menu (in screen bps0) was a menu named "dynamic simulation" in Version SEM 3.2, I had seen this menu option in Version SEM 3.2.
I think these menus are necessary to call simulation model that is prepared by Powersim, otherwise how can I connect my Powersim model to BPS?
Can be the problem Support Package level or something that is not installed to system?
Thanks very much -
Accordion menu widget behavior and contents
I'm working on an accordion menu that is then used in a DPS folio created in InDesign.
The accordion menu resides on the Master Pages of the articles/documents, 6 articles total.
When the label is tapped, the accordion menu expands open >
The label is also a link that takes the reader to a page within the folio while expanding (using the navto://documentname#page formatting) >
Inside the content area of each label are subtopics that also navigate to different pages within the folio (also using the navto://documentname#page formatting).
My desire is that when a label is tapped and expands, the reader can then click on each subtopic and go to that page without the accordion menu collapsing as it goes to the page.
I'm finding that 99.9% of the time, the menu is collapsing. Other times I get the exact performance I desire.
I'm Ok with the menu collapsing as each label is tapped, but not the subtopics.
I've played around with setting the accordion properties by unchecking "Collapse All" and unchecking "Edit Together", but can't seem to edit these sections or the text boxes individually. It either sets ALL items in the accordion menu to Collapse All or not. No mixing of the two settings.
Is there a way to get the desired functionality, outlined above, with the accordion menu widget?
TIA,
HunterYou can either use separate accordions for sub topic or you would need to go with unchecked collapse all and then manually edit all contents.
Thanks,
Sanjit -
Accordion Menu to display image
Hey guys,
I am in desperate need of some knowledgeable direction. Many thanks up front for any help!!!!!
Situation: I am designing my company's resume page: 3 or 4 names within 6 different departments in an accordion menu.
Currently: I have a two level accordion menu on the left (department and then names within the department.) and a anchored DIV tag on the right.
Goal: When the user clicks on "Bob Example" text link in the "Engineering" department tab (accordion menu), I would like for it to open a picture of "Bob Example" on the right hand side.
Problem: I've named the anchor DIV tag, "biopic" and targeted the link the same name, however, when I click on the "Bob Example" text link - it opens the picture in a separate window. I have played around with targeting so much my brain is now mush.
Can anybody shed some light on why the "Bob Example" pic won't open on the right hand side?That link isn't much help.
All the assets are pointing to files on your local Z drive instead of the site folder.
<script src="file:///Z|/Desktop/NEW WEBSITE/SpryAssets
/SpryAccordion.js" type="text/javascript"></script>
If your site is properly defined in DW, that shouldn't happen.
Setting Up Local & Remote site folders in DW
http://help.adobe.com/en_US/dreamweaver/cs/using/WS753df6af718a350a60097e0f131686fa2b4-7ff e.html
Nancy O. -
Accordion Menu - Submenu position issue
Hello,
I've created an accordion menu that resides in the top right corner of my website. I seem to be getting various undesired results when previewing the site.
Desired layout: Build mode
Undesired Result: Page Preview
Undesired Result: Site Preview
The top level sites work fine but when I move the submenu to the left of the menu using the X position, then preview the page or site, the submenus show up either right over the menu or way off to the left of the site, almost completely off the page. I have no idea why, please help.
JeffHi Sanjit, thank you for your reply.
The first image is a from the Design View, the second is a page preview in browser and the final image is a site preview in browser. My default browser is Safari (also testing in Chrome however).
If I leave the menu with default settings, the submenus appear off the site's live area and when I preview they do not show up at all. Presumabley they are off to the right side of the site.
The menu is and has been set to "All Pages" and not manually throught my build. Other than plaving the vertical menu widget within the accordion widget, it is more or less default with exeption of some styling.
I will try to rebuild the menu and see if the problem is still occuring. If you have any further sugestions I would be happy to hear them.
Thnaks again -
Accordion Menu - need to control which panel opens
I have an accordion menu that works fine but when I put it
into action
on the site, I realized that I needed the accordion to open
up a
different section on each new page.
Since I have the accordion menu in an SSI (server side
include) I don't
want to have a different spry asset for each page. However, I
think
setting a session variable would work to control which
section is opened.
Anyone done this? What would it look like?quote:
Danilo Celic wrote:
Try this page:
http://foundationphp.com/tutorials/spry_url_utils.php
Thanks a lot. This web page gave some answers, but now I have
a new problem:
When I test my accordion menu in a normal html page
everything works fine. When I put this accordion menu to my DW
template it stops working. The result is that every accordion's
panels are open!
Why? Can you assist me?
In template head I have this code:
<link href="../SpryAssets/SpryAccordion.css"
rel="stylesheet" type="text/css" />
<script src="../SpryAssets/SpryAccordion.js"
type="text/javascript"></script>
<script type="text/javascript"
src="SpryAssets/SpryURLUtils.js"></script>
<script type="text/javascript">
var params = Spry.Utils.getLocationParamsAsObject();
</script>
And in template end just before </body> tag I have this
code:
<script type="text/javascript">
<!--
var Accordion1 = new Spry.Widget.Accordion("Accordion1",
{useFixedPanelHeights: false, defaultPanel: params.panel ?
params.panel: 0});
//-->
</script>
Maybe you are looking for
-
ITunes library xml from windows to mac using external drive.
Hi there! I'm a newbie on mac computers.. I've recently purchase a macbook pro retina. So, I used to use iTunes in windows XP. My old computer crashed and I can't re-open it and save files... Now, the only file I have from my windows library is an "l
-
We upgraaded our router to the new time capsule over christmas break and it works great but our old ibook clamshell doesnt work with it. is says an error has occured when i try to connect to it. Is there someway to connect the Clamshell? Thanks!
-
Applet Plug-in and Caching GIF files
In the Plug-in 1.4 release notes, it says that the Plug-in will cache GIF files and other non-JAR files. Are there instructions or documentation how to get the Plug-in to cache files other than JAR files? I couldn't find anything when perusing the 1.
-
Sending mail of ALV Report automatically
Hi All, Don't we have one funtional module to send the report output automatically when it is executed. I want to give userID only for input. Please tel me as soon as possible. Regards, Rohit
-
What is the difference between parameter and parameters
hi everybody what is the exact difference between parameter and parameters