Copy an accordian menu
is it possible to copy an accordian menu onto a new page, i
would just save it as a new page but I want to change the language
of the menu and therefor the template for the other page is
completely different. So I would like to copy the english menu onto
the spanish page and then just go through and change the
text.
Hello,
I think there may be an issue in how your model/Accordion Menu was configured. What insert option are you using? Your destination should only be 'one' row OR 'one' column at the most.
Thanks,
AJ
Similar Messages
-
Links not working in Spry Accordian Menu
When clicked the links in the left side accordian menu do not work. However, the child-links work great. Example: http://www.richartbuilders.com/remodel.php
HEAD TAGS:
<script src="SpryAssets/SpryAccordion.js" type="text/javascript"></script>
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="SpryAssets/SpryMenuBarHorizontal2.css" rel="stylesheet" type="text/css" />
<link href="SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css" />
<link href="content.css" rel="stylesheet" type="text/css" />
HTML:
<div id="navSide">
<div id="sideWrapper">
<div id="Accordion1" class="Accordion" tabindex="0">
<div class="AccordionPanel">
<div class="AccordionPanelTab"><a href="../remodel.php">Remodel</a></div>
<div class="AccordionPanelContent"></div>
</div>
<div class="AccordionPanel">
<div class="AccordionPanelTab"><a href="../windowsdoors.php">Windows & Doors</a></div>
<div class="AccordionPanelContent"></div>
</div>
<div class="AccordionPanel">
<div class="AccordionPanelTab"><a href="../weatherization.php">Weatherization</a></div>
<div class="AccordionPanelContent"></div>
</div>
<div class="AccordionPanel">
<div class="AccordionPanelTab"><a href="#">Electrical...</a></div>
<div class="AccordionPanelContent">
<ul>
<li><a href="residential.php">Residential</a></li>
<li><a href="commercial.php">Commercial</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
var Accordion1 = new Spry.Widget.Accordion("Accordion1" ,{ useFixedPanelHeights:false, defaultPanel:0});
</script>
external CSS:
@charset "UTF-8";
/* SpryAccordion.css - version 0.5 - Spry Pre-Release 1.6.1 */
/* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */
/* This is the selector for the main Accordion container. For our default style,
* we draw borders on the left, right, and bottom. The top border of the Accordion
* will be rendered by the first AccordionPanelTab which never moves.
* If you want to constrain the width of the Accordion widget, set a width on
* the Accordion container. By default, our accordion expands horizontally to fill
* up available space.
* The name of the class ("Accordion") used in this selector is not necessary
* to make the widget function. You can use any class name you want to style the
* Accordion container.
.Accordion {
overflow: hidden;
border: 1px solid #CCC;
width: 145px;
/* This is the selector for the AccordionPanel container which houses the
* panel tab and a panel content area. It doesn't render visually, but we
* make sure that it has zero margin and padding.
* The name of the class ("AccordionPanel") used in this selector is not necessary
* to make the widget function. You can use any class name you want to style an
* accordion panel container.
.AccordionPanel {
margin: 0px;
padding: 0px;
/* This is the selector for the AccordionPanelTab. This container houses
* the title for the panel. This is also the container that the user clicks
* on to open a specific panel.
* The name of the class ("AccordionPanelTab") used in this selector is not necessary
* to make the widget function. You can use any class name you want to style an
* accordion panel tab container.
* NOTE:
* This rule uses -moz-user-select and -khtml-user-select properties to prevent the
* user from selecting the text in the AccordionPanelTab. These are proprietary browser
* properties that only work in Mozilla based browsers (like FireFox) and KHTML based
* browsers (like Safari), so they will not pass W3C validation. If you want your documents to
* validate, and don't care if the user can select the text within an AccordionPanelTab,
* you can safely remove those properties without affecting the functionality of the widget.
.AccordionPanelTab {
background-color: #F2F2F2;
margin: 0px;
padding: 12px;
cursor: pointer;
font-family: "Myriad Pro", Verdana, Geneva, sans-serif;
font-size: 14px;
color: #0071BC;
border-bottom: 1px solid #CCC;
/* [disabled]text-transform: uppercase; */
.AccordionPanelTab a {
text-decoration:none;
color: #0071BC;
/* This is the selector for a Panel's Content area. It's important to note that
* you should never put any padding on the panel's content area if you plan to
* use the Accordions panel animations. Placing a non-zero padding on the content
* area can cause the accordion to abruptly grow in height while the panels animate.
* Anyone who styles an Accordion *MUST* specify a height on the Accordion Panel
* Content container.
* The name of the class ("AccordionPanelContent") used in this selector is not necessary
* to make the widget function. You can use any class name you want to style an
* accordion panel content container.
.AccordionPanelContent {
overflow: auto;
margin: 0px;
padding: 0px;
.AccordionPanelContent ul {
list-style-type:none;
margin:0;
line-height: 22px;
font-family:"Myriad Pro", "Trebuchet MS", Arial, Helvetica, sans-serif;
font-size:14px;
.AccordionPanelContent ul li {
color:#666;
.AccordionPanelContent ul li a {
display:block;
padding-top: 5px;
padding-right: 0px;
padding-bottom: 5px;
padding-left: 0px;
.AccordionPanelContent ul li a:link, .AccordionPanelContent ul li a:visited {
text-decoration:none;
color:#0071BC;
.AccordionPanelContent ul li a:hover, .AccordionPanelContent ul li a:active {
color:#FF9900;
.AccordionPanelTab a:link, .AccordionPanelTab a:visited {
color:#0071BC;
.AccordionPanelTabHover a:hover, .AccordionPanelTabHover a:active {
color:#FF9900;
/* This is an example of how to change the appearance of the panel tab that is
* currently open. The class "AccordionPanelOpen" is programatically added and removed
* from panels as the user clicks on the tabs within the Accordion.
.AccordionPanelOpen .AccordionPanelTab {
background-color: #FFFFFF;
/* This is an example of how to change the appearance of the panel tab as the
* mouse hovers over it. The class "AccordionPanelTabHover" is programatically added
* and removed from panel tab containers as the mouse enters and exits the tab container.
.AccordionPanelTabHover {
.AccordionPanelOpen .AccordionPanelTabHover {
color: #555555;
/* This is an example of how to change the appearance of all the panel tabs when the
* Accordion has focus. The "AccordionFocused" class is programatically added and removed
* whenever the Accordion gains or loses keyboard focus.
.AccordionFocused .AccordionPanelTab {
/* [disabled]background-color: #3399FF; */
/* This is an example of how to change the appearance of the panel tab that is
* currently open when the Accordion has focus.
.AccordionFocused .AccordionPanelOpen .AccordionPanelTab {
/* [disabled]background-color: #33CCFF; */
/* Rules for Printing */
@media print {
.Accordion {
overflow: visible !important;
.AccordionPanelContent {
display: block !important;
overflow: visible !important;
height: auto !important;When clicked the links in the left side accordian menu do not work. However, the child-links work great. Example: http://www.richartbuilders.com/remodel.php
HEAD TAGS:
<script src="SpryAssets/SpryAccordion.js" type="text/javascript"></script>
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="SpryAssets/SpryMenuBarHorizontal2.css" rel="stylesheet" type="text/css" />
<link href="SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css" />
<link href="content.css" rel="stylesheet" type="text/css" />
HTML:
<div id="navSide">
<div id="sideWrapper">
<div id="Accordion1" class="Accordion" tabindex="0">
<div class="AccordionPanel">
<div class="AccordionPanelTab"><a href="../remodel.php">Remodel</a></div>
<div class="AccordionPanelContent"></div>
</div>
<div class="AccordionPanel">
<div class="AccordionPanelTab"><a href="../windowsdoors.php">Windows & Doors</a></div>
<div class="AccordionPanelContent"></div>
</div>
<div class="AccordionPanel">
<div class="AccordionPanelTab"><a href="../weatherization.php">Weatherization</a></div>
<div class="AccordionPanelContent"></div>
</div>
<div class="AccordionPanel">
<div class="AccordionPanelTab"><a href="#">Electrical...</a></div>
<div class="AccordionPanelContent">
<ul>
<li><a href="residential.php">Residential</a></li>
<li><a href="commercial.php">Commercial</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
var Accordion1 = new Spry.Widget.Accordion("Accordion1" ,{ useFixedPanelHeights:false, defaultPanel:0});
</script>
external CSS:
@charset "UTF-8";
/* SpryAccordion.css - version 0.5 - Spry Pre-Release 1.6.1 */
/* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */
/* This is the selector for the main Accordion container. For our default style,
* we draw borders on the left, right, and bottom. The top border of the Accordion
* will be rendered by the first AccordionPanelTab which never moves.
* If you want to constrain the width of the Accordion widget, set a width on
* the Accordion container. By default, our accordion expands horizontally to fill
* up available space.
* The name of the class ("Accordion") used in this selector is not necessary
* to make the widget function. You can use any class name you want to style the
* Accordion container.
.Accordion {
overflow: hidden;
border: 1px solid #CCC;
width: 145px;
/* This is the selector for the AccordionPanel container which houses the
* panel tab and a panel content area. It doesn't render visually, but we
* make sure that it has zero margin and padding.
* The name of the class ("AccordionPanel") used in this selector is not necessary
* to make the widget function. You can use any class name you want to style an
* accordion panel container.
.AccordionPanel {
margin: 0px;
padding: 0px;
/* This is the selector for the AccordionPanelTab. This container houses
* the title for the panel. This is also the container that the user clicks
* on to open a specific panel.
* The name of the class ("AccordionPanelTab") used in this selector is not necessary
* to make the widget function. You can use any class name you want to style an
* accordion panel tab container.
* NOTE:
* This rule uses -moz-user-select and -khtml-user-select properties to prevent the
* user from selecting the text in the AccordionPanelTab. These are proprietary browser
* properties that only work in Mozilla based browsers (like FireFox) and KHTML based
* browsers (like Safari), so they will not pass W3C validation. If you want your documents to
* validate, and don't care if the user can select the text within an AccordionPanelTab,
* you can safely remove those properties without affecting the functionality of the widget.
.AccordionPanelTab {
background-color: #F2F2F2;
margin: 0px;
padding: 12px;
cursor: pointer;
font-family: "Myriad Pro", Verdana, Geneva, sans-serif;
font-size: 14px;
color: #0071BC;
border-bottom: 1px solid #CCC;
/* [disabled]text-transform: uppercase; */
.AccordionPanelTab a {
text-decoration:none;
color: #0071BC;
/* This is the selector for a Panel's Content area. It's important to note that
* you should never put any padding on the panel's content area if you plan to
* use the Accordions panel animations. Placing a non-zero padding on the content
* area can cause the accordion to abruptly grow in height while the panels animate.
* Anyone who styles an Accordion *MUST* specify a height on the Accordion Panel
* Content container.
* The name of the class ("AccordionPanelContent") used in this selector is not necessary
* to make the widget function. You can use any class name you want to style an
* accordion panel content container.
.AccordionPanelContent {
overflow: auto;
margin: 0px;
padding: 0px;
.AccordionPanelContent ul {
list-style-type:none;
margin:0;
line-height: 22px;
font-family:"Myriad Pro", "Trebuchet MS", Arial, Helvetica, sans-serif;
font-size:14px;
.AccordionPanelContent ul li {
color:#666;
.AccordionPanelContent ul li a {
display:block;
padding-top: 5px;
padding-right: 0px;
padding-bottom: 5px;
padding-left: 0px;
.AccordionPanelContent ul li a:link, .AccordionPanelContent ul li a:visited {
text-decoration:none;
color:#0071BC;
.AccordionPanelContent ul li a:hover, .AccordionPanelContent ul li a:active {
color:#FF9900;
.AccordionPanelTab a:link, .AccordionPanelTab a:visited {
color:#0071BC;
.AccordionPanelTabHover a:hover, .AccordionPanelTabHover a:active {
color:#FF9900;
/* This is an example of how to change the appearance of the panel tab that is
* currently open. The class "AccordionPanelOpen" is programatically added and removed
* from panels as the user clicks on the tabs within the Accordion.
.AccordionPanelOpen .AccordionPanelTab {
background-color: #FFFFFF;
/* This is an example of how to change the appearance of the panel tab as the
* mouse hovers over it. The class "AccordionPanelTabHover" is programatically added
* and removed from panel tab containers as the mouse enters and exits the tab container.
.AccordionPanelTabHover {
.AccordionPanelOpen .AccordionPanelTabHover {
color: #555555;
/* This is an example of how to change the appearance of all the panel tabs when the
* Accordion has focus. The "AccordionFocused" class is programatically added and removed
* whenever the Accordion gains or loses keyboard focus.
.AccordionFocused .AccordionPanelTab {
/* [disabled]background-color: #3399FF; */
/* This is an example of how to change the appearance of the panel tab that is
* currently open when the Accordion has focus.
.AccordionFocused .AccordionPanelOpen .AccordionPanelTab {
/* [disabled]background-color: #33CCFF; */
/* Rules for Printing */
@media print {
.Accordion {
overflow: visible !important;
.AccordionPanelContent {
display: block !important;
overflow: visible !important;
height: auto !important; -
How to hide cut/copy/paste/Replace… menu on the UIWebView when it is being displayed over the keyboard.
Detail: I am having a HTML from, having text box, displayed using UIWebView. If user types in text box it shows the keyboard. Now If user tap and hold on text box it shows a popup menu. Now while keyboard and pop up are being displayed user scrolls the view. At this time it shows pop up over the keyboard which I need to hide.
I tried setMenuVisible of UIMenuController when popup rect and keyboard rect intersects each other on viewDidScroll but it didn't help me.
Any clues will help a lot.
Thanks.You are more likely to get an answer if you post programming problems to the Developer forum. This forum is intended for normal user level problems.
-
I want to lik the images and swf to local files but I'm not able to do so. Could you please tell me how?
I took the code from an accordian menu tutorial
This is the xml code
<?xml version="1.0" encoding="utf-8"?>
<menu menuOpen="1" moveOnMouseOver="false">
<item Ititle="home" IcontentType="image/swf" IcontentData="image2.jpg"/>
<item Ititle="about" IcontentType="text" IcontentData="Our company is based on UK! Know how we have born!; Click here"/>
<item Ititle="Products" IcontentType="image/swf" IcontentData="image5.jpg"/>
<item Ititle="Services" IcontentType="image/swf" IcontentData="item2.swf"/>
<item Ititle="Contact" IcontentType="image/swf" IcontentData="image1.jpg"/>
</menu>
This is the AS code
//import tweenlite classes
import gs.TweenLite;
import gs.easing.*;
var MENU_ARRAY:Array; //used to save the items data
var OPENED_MENU:int; //to inform the menu that should be open at startup
var MOVE_ON_MOUSE_OVER:Boolean=false; //tha name says everything
var xmlLoader:URLLoader; //the xml loader
loadXML("menu.xml"); //load the xml
function loadXML(Uri:String):void {
xmlLoader = new URLLoader();
xmlLoader.addEventListener(Event.COMPLETE, onComplete);
xmlLoader.addEventListener(IOErrorEvent.IO_ERROR, onError);
xmlLoader.load(new URLRequest(Uri));
function onError(evt:ErrorEvent):void {
trace("cannot load xml file");
function onComplete(evt:Event):void {
//read and load xml into array, by parsing it using prepareMenu
MENU_ARRAY=prepareMenu(xmlLoader.data.toString());
placeItemsOnStage(); //place all required items on stage.
function placeItemsOnStage():void {
var pos:Number=0;
//define the container properties
menuContainer.x=0;
menuContainer.y=0;
for(var c:int=0; c<MENU_ARRAY.length; c++) {
var it:menuItem = new menuItem; //load out menuItem, because its exported to AS, we can use it here
it.x=c*27; //its the gray border width
it.y=0; //place on top
it.id="Item-"+c; //id the menuItem
it.name="Item-"+c; //name de menuItem
it.posX=pos; //actual pos, useful to open and know is position
it.itemLabel.text=String(MENU_ARRAY[c].Ititle).toUpperCase(); //load the label in uppercase
it.addEventListener(MouseEvent.CLICK, onMouseClick); //add mouse click listener
if(MOVE_ON_MOUSE_OVER==true) it.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver); //if configured, load the mouse over event
it.useHandCursor=true; //use hand cursor
it.buttonMode=true; //buttonMode
it.itemText.visible=false; //hide the textField
menuContainer.addChild(it); //add the menu item as child
if(String(MENU_ARRAY[c].IcontentType)=="image/swf") { //check the content and load things accordint to it
var ldr:Loader = new Loader();
ldr.x=27;
ldr.y=0;
it.addChild(ldr);
ldr.load(new URLRequest(MENU_ARRAY[c].IcontentData.toString()));
else if(String(MENU_ARRAY[c].IcontentType)=="text") {
it.itemText.visible=true;
it.itemText.text=MENU_ARRAY[c].IcontentData.toString();
pos+=27; //the next menuItem x position
//put mask in place
masker.width=(MENU_ARRAY.length*27+325)
masker.height=menuContainer.height;
masker.x=0;
masker.y=0;
moveItem(OPENED_MENU-1); //open menu confirured in XML
function onMouseOver(evt:MouseEvent):void {
if(evt.target.name.toString()=="buttonBack") prepareMove(evt)
function prepareMove(evt:MouseEvent):void {
var targetName:String = evt.currentTarget.name.toString(); //get the menuItem
var temp:Array = targetName.split("-"); //split his name: Item-x
var itemNumber:int=(temp[1]); //got item number
moveItem(itemNumber); //move it
function onMouseClick(evt:MouseEvent):void {
if(evt.target.name.toString()=="buttonBack") prepareMove(evt); //mouse action was done in buttonBack
else trace("Item "+evt.currentTarget.name+" clicked!"); //mouse action was made on accordion area
function moveItem(num:int):void {
var itemToMove:menuItem=menuContainer.getChildByName("Item-"+String(num)) as menuItem;
//get the menuItem child
for(var m=0;m<MENU_ARRAY.length;m++) //move one-by-one to the new position
var tempMc = menuContainer.getChildByName("Item-"+m);
if(tempMc.x > itemToMove.x) TweenLite.to(tempMc, 1, {x:((tempMc.posX) + itemToMove.width-27), ease:Quart.easeOut}); //see tweenLite for info about this.
else if(tempMc.x <= itemToMove.x) TweenLite.to(tempMc, 1, {x:(tempMc.posX), ease:Quart.easeOut});
function prepareMenu (XMLData:String):Array
//make sure it cames in XML
var menuXML:XML = new XML(XMLData);
//just in case
menuXML.ignoreWhitespace = true;
//get XML item's entrys
var XMLItems = menuXML.descendants("item");
//load all items into an array
var itemsArray:Array = new Array();
var itemObj:Object;
for(var i in XMLItems)
itemObj=new Object();
itemObj.Ititle=XMLItems[i].@Ititle;
itemObj.IcontentType=XMLItems[i].@IcontentType;
itemObj.IcontentData=XMLItems[i].@IcontentData;
itemObj.itemID="menu"+i;
itemsArray.push(itemObj);
OPENED_MENU=menuXML.@menuOpen; //get menu for open.
MOVE_ON_MOUSE_OVER=([email protected]()=="true" ? true : false); //get the option for load or not mouseOver open
return itemsArray;
//finish.
stop();Bring up this post! I am also inquiring something similiar in another thread http://forums.adobe.com/message/3855478#3855478
Thanks peeps! -
Using a Stacked Bar Chart With an Accordian Menu
I am having difficulty using a stacked bar chart with an accordian menu. I am able to have one stack bar populate but the other four stays blank. There seems to be an issue with my destination. I dont think it likes that my destination is more than one row and one column. Is there a way to fix this?
Hello,
I think there may be an issue in how your model/Accordion Menu was configured. What insert option are you using? Your destination should only be 'one' row OR 'one' column at the most.
Thanks,
AJ -
Using Dynamic Visibility with Accordian Menu
Hiya. I am trying to use dynamic visibility with an accordian menu. My menu categories are years, 2005 - 2010. My categories items are key performance indicators such as abandon percentage, first call resolution, customer satisfaction percentage, call volume and average speed of answer.
Of my 6 KPIs, 4 display as percentages and 2 display as whole numbers. When the percentage graphs are displayed the axis labels needs to be percentages. When the whole number graphs are displayed the axis label needs to show whole numbers.
I thought to achieve this I should use dynamic visibility with two different line charts where one line chart shows percentages and the other line chart shows whole numbers. However I am strugging trying to make that happen.
Is my concept correct, or is there an easier way to accomplish this? If my concept is correct,can someone give me some advice on how to make dynamic visibility display the correct chart depending on which KPI I select from my accordian menu?
Thanks!Hi
You can achieveby doing following steps..
Insert your categories into D3 and label bind to E3.
take two charts and bind to the destination data of Accordion menu
then write a formula in F3 like this =IF(OR(E3="abandon percentage",E3="customer satisfaction percentage"),1,0)
and bind your two charts to the F3 and set DV for % charts as 1 and # charts as 0.
I hope this will helps you
Thanks,
Srinivas Dandamudi. -
Problems with accordian menu, look familiar?
I just upgraded to SP3, and although I have never used the accordian menu, I think I know what it should look like, but since I upgraded, something seems broken.
When I go to the accordian menu (properties), all that is available in the menu area is "General", and the only options are "Name", "Value" and "Bind" in the header of the columns.
Can anyone tell me what I have done?
Many thanks,
JohnnyHi:
For Accordion Menu, there should be three tabs under property sheet, General, Behavior, Appearance. Also this component should be only available for Xcelsius Engage, and Enterprise version.
You can try to reinstall Xcelsius to see whether it is the installation problem. -
Dynamic Accordian Menu - Stay Open?
Hi,
I've developed an accordian menu seen on left hand side here:
http://quarsh.worldsecuresystems.com/
Managed to get it all working so that when the top item is clicked it opens the submenus and other items without submenus remain as standard links.
I would now like to be able to force the submenu items to stay open if possible. It's acceptable to have to put some special code in relative areas in the dynamic menu editor or in templates.
Anyone got any pointers?
Many thanks,
TomHello Tom,
If you want to keep the submenu open when you are on those pages you should just need some css.
For the hidden ul, when we are within the "What We Do" section would just be:
#nav ul li.selected ul{
display: block;
You will still be able to click the "what we do" link to make the ul hide, but it will show on page load.
Hope this helps,
Chad Smith | http://bcgurus.com/Business-Catalyst-Templates for only $7 -
My right mouse button clicks but no result, i.e Cut/Copy/Paste/Delete menu does not appear.
I think the hardware has failed.
Note the mousepd is not the issue. The right button is the problem
Left button works fineSame deal with me except the right button has failed twice. You may find that if you push on it past the click with a bit more force it will respond. They swapped the hardware and same thing occurred.
HP should be ashamed that they would put such awful mouse hardware on its flagship product. Whoever designed it should be fired.
If HP had any customer loyalty they would offer a hardware update and offer it to those who are still under warranty.
Suffice to say I will never, ever purchase an HP workstation again.
Good luck. -
How to copy an open menu?
How can I copy an OPEN menu?
Take a picture of a menu, including the title
Click the menu to display the menu commands, press Command (⌘)-Shift-4, and drag the crosshair pointer over the area.
To cancel, press Escape.
Take a picture of the menu without its title
Click the menu to display the menu commands, press Command (⌘)-Shift-4, press the Space Bar, move the camera pointer over the menu to highlight it, and then click.
To cancel, press Escape.
You can also take pictures of the screen using the Grab application (in the Utilities folder in the Applications folder). -
Block-copying a Spry menu?
I have several different webpages, with sharply different layouts, that I want to use the same Spry menu on. One is my site homepage; a second is a page template for static HTML pages; and a third is a header file for a set of PHP pages. The menu is large and complicated. It would make sense if I could create the menu once and then block-copy it to the templates for the other pages. However, every time I try to do this, the menu refuses to work in the new file. That is:
1) I create the menu on page_a.html
2) I test the menu in a browser and verify that it works.
3) I open page_b.html in a second Dreamweaver tab.
4) I block-copy the entire menu div and all its contents from page_a.html to page_b.html.
5) I also copy the line that creates the Javascript menu object and the lines that link to the Spry .CSS and .JS files.
6) I test the menu in page_b.html. It doesn't work. None of the drop-down or flyout menu boxes will appear. When I look at the file again in Dreamweaver, it doesn't see the menu div as a Spry menu widget.
I'm using Dreamweaver 5.5.
Is the menu widget really so stupid that it can't be copied from page to page? Do I have to rebuild my menu completely in every one of my pages and page templates? Or is there a way to copy it from page to page, and I'm just not seeing it?Jon Woolf wrote:
Is the menu widget really so stupid that it can't be copied from page to page? Do I have to rebuild my menu completely in every one of my pages and page templates? Or is there a way to copy it from page to page, and I'm just not seeing it?
The SpryMenuBar widget comprises three components
HTML
CSS
JS
The HTML often contains links to other pages, so that per document, you must ensure that these links are correct. Per document, you must also ensure that the links to the supporting files (CSS and JS) are correct.
Hence it is not the widget that is stupid when it is copied from page to page. -
Hi All,
We are working on a custom built software which will communicate with SAP.
There are certain requirements where we cant find any solutions.
Any answer to the following questions will be very helpful.
1. How to copy the SAP Menu? Including the sub-nodes & description.
2. While creating PO or any in any other transactions, how to capture the Error image shown? or How to copy the contents of the message shown?
3. In the PO creation screen (ME21N), there are lot of TABS (as shown in the below pic). Is there any keyboard shortcut to shift between these tabs?
Will give more description if required.
Moderators : Respected Mods, I was not sure about the section in which this question should be posted. Kindly move it to the respective section if it does not belong here.
Thanks,
Deepan MHello Deepan,
Follow the below path to download the area menu.
1) SE43 display menu S000 and then explode it all, then: Area Menu -> Print -> Print List -> Save to PC File -> Spreadsheet - done.
3) You can use above option said by Manish, but the cursor has to be in the tab while using it. When u switch the tab using Ctrl+ page up or down, the cursor position goes to the top of the page, again you have to place the cursor in the tab and press ctrl+ page up or down to move to net tabs.
Regards,
Thanga -
Help with Copy function in menu bar
Hi,
I'm experimenting adding a cut utility to my app. I've added it to my menubar
final JMenu edit = new JMenu("Edit");
edit.setMnemonic(KeyEvent.VK_E);
Action cutAction = new Editting.Cut.CutAction();
JMenuItem cutMenuItem = new JMenuItem( cutAction );
cutMenuItem.setAccelerator( (KeyStroke)cutAction.getValue(cutAction.ACCELERATOR_KEY) );
edit.add(cutMenuItem);where the CutAtion is
public final class Cut {
public static final class CutAction extends DefaultEditorKit.CutAction {
public CutAction() {
putValue(Action.NAME, "Cut");
putValue(Action.SHORT_DESCRIPTION, getValue(Action.NAME));
putValue(Action.MNEMONIC_KEY, new Integer(KeyEvent.VK_T));
putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_X, InputEvent.CTRL_MASK));
putValue(Action.SMALL_ICON, new ImageIcon("images/cut.gif"));
}The cut function works ok when i use the accelarator (ctrl-x) but when i click the cut item in the menu bar it doesn't work - nothing is added to the clipboard. I've looked at other posts but everyone seems to be using the above code, but dont seem to be having any problems. Any ideas why I am?
Many thanks,
BBBok, this is a total hack around the problem. But can anyone see why implementing a robot in my copy action wouldn't work: -
java.awt.Robot myRobot = new java.awt.Robot();
myRobot.keyPress(KeyEvent.VK_CONTROL);
myRobot.keyPress(KeyEvent.VK_C);
myRobot.keyRelease(KeyEvent.VK_C);
myRobot.keyRelease(KeyEvent.VK_CONTROL);so rather than using the copy action itself, it imitates a ctrl-c key press.
I'm at work at the moment, so can't really try this out. But can anyone see why this 'wouldn't' work for copying JTable data. -
How to initiate copy/paste from menu in projector?
I have a projector that uses a MenuMember to create a
standard menu across the top i.e.:
FILE EDIT HELP
I have several text, (not field), but text members that are
editable where the user inputs text information. Pretty basic and
simple. If they use the keyboard commands for Copy, Paste, Select
All & Cut those commands work fine in the text field and behave
as you would normally expect.
My question is, under my EDIT menu, I want to have the normal
CUT,COPY,PASTE,SELECT ALL selections that you would expect to find.
Right now I have no behaviors attached to them in my menuMember so
they don't do anything if you go to EDIT -> PASTE.
I have been looking for a handler to attach to the menuMember
that would perform those functions. For example my menuMember text
would look like this:
menu: File
Save/S | SaveHandler
Quit | quit
menu: Edit
Copy/C | CopyHandler
Paste/V | PasteHandler
Select All/A | SelectAllHandler
Cut/X | CutHandler
So far I haven't been able to figure out any handler that
would perform those functions upon the text field that has the
focus. Oh sure, the manual keyboard equivalents WILL work, but most
people also expect to see those choices in the edit menu as well
and expect them to behave the same way.
Any ideas on how to accomplish this?
Thanks,
DanHi,
There's a 'publish' settings (or maybe a movie setting)
called "editShortcutsenabled' - if true, command-c (etc) will work.
There might be some tricky way of evoking these functions with
Lingo (not sure if DMX2004 has some new lingo), but you can do it
manually using Valentin's free clipboard xtra (
http://staff.dasdeck.de/valentin/xtras/clipboard/)
. For example, try these functions
on SelectAll()
whichSprite = the keyBoardFocusSprite
if whichSprite > 0 then
whichMember = sprite(whichSprite).member
if voidP(whichMember) then exit
mType = whichMember.type
case (mType) of
#field, #text:
whichMember.selection = [0, whichMember.text.length]
otherwise
put "Dont know how to 'select all' in the case of a"
&& mType
end case
end if
end
on CopySelection ()
whichSprite = the keyBoardFocusSprite
if whichSprite > 0 then
whichMember = sprite(whichSprite).member
if voidP(whichMember) then exit
mType = whichMember.type
case (mType) of
#field, #text:
s = whichMember.selection
txt = whichMember.text.char[s[1]..s[2]]
clipSetData("TEXT", txt)
otherwise
put "Dont know how to copy from a" && mType
end case
end if
end
on CutSelection ()
whichSprite = the keyBoardFocusSprite
if whichSprite > 0 then
whichMember = sprite(whichSprite).member
if voidP(whichMember) then exit
mType = whichMember.type
case (mType) of
#field, #text:
s = whichMember.selection
txt = whichMember.text.char[s[1]..s[2]]
clipSetData("TEXT", txt)
oldtext = whichMember.text
if s[1] > 0 then
newtext = oldtext.char[1..s[1]]
newtext = newtext & oldtext.char[s[2]..oldtext.length]
else
if s[2] = 0 then
newtext = oldtext
else if s[2] = oldtext.length then
newtext = ""
else
newtext = oldtext.char[s[2]..oldtext.length]
end if
end if
whichMember.text = newtext
otherwise
put "Dont know how to copy from a" && mType
end case
end if
end
on PasteClipboard ()
whichSprite = the keyBoardFocusSprite
if whichSprite > 0 then
whichMember = sprite(whichSprite).member
if voidP(whichMember) then exit
mType = whichMember.type
case (mType) of
#field, #text:
txt = clipGetData("TEXT")
InsertText(whichMember, txt)
otherwise
put "Dont know how to paste into a" && mType
end case
else
put "what do I paste into?"
end if
end
on InsertText (inMember, txt)
s = inMember.selection
oldtext = inMember.text
if s[1] > 0 then
newtext = oldtext.char[1..s[1]]
newtext = newtext & txt
newtext = newtext & oldtext.char[s[2]..oldtext.length]
else
if s[2] = 0 then
newtext = txt & oldtext
else if s[2] = oldtext.length then
newtext = txt
else
newtext = txt & oldtext.char[s[2]..oldtext.length]
end if
end if
inMember.text = newtext
end -
Accordian menu, need help...
Heya,
So I am working on a design that I want to use the accordian
style menu. I'd be willing to use the Flash component but I
honestly have never successfully used a component before because I
can't seem to understand how they require any less effort than just
building them yourself.
Example:
http://owasbhat.com/_blog/2004/08/skinning-v2-components.html
I tried using simple rollover rollout functions but I get
unusual problems, can anyone help?Figured it out. I couldn't understand what or how the
actionscript was measuring the height of the collapse, it turns out
that it measures it by the height graphic that I give an instance
name of 'title' to. Which was a png that had about 20px of artboard
that cause that initial gap. Thanks guys!
Maybe you are looking for
-
Select Data from aufm too slow
Hi experts, I have a query in my report but its performance too slow. is there any proper way or any way to improve the performance of below query. SELECT * FROM aufm into table i_aufm " collecting input material document numbers
-
What do I need to purchase to update my IMac with the OS X 10.5.8 operating system?
-
Will I experience any problems connecting a Trusted Solaris 8 X86 systems to a SPARC Trusted 8 system? Will all the trusted features work between the two. Thx
-
Memory leak in fileStream.readMultiByte?
Hi everybody, after a long session bug hunting my ipad application because of a memory leak, i think i found a memory bug in the fileStream class. I am using the fileStream class to load xml and css files in my application for initial data etc. I par
-
It dosen't work to atctivate my iphone,pleas help me!
I had jailbreak instaled in my iphone 4 and now my iphone dosen't woork my english may be bad because I live in Sweden. Now I have restored my iphone and it dosen't work to activate it pleas can some one help me!!!