I need a nice menu on a web page
I have 5 links on my page. I need the java/class files to make a pretty menu, without images. Can be singles like-bottons java based menu. Say me where can dowonload. I visit javaboutique.com, but only found complex examples. My email: [email protected]
Try http://www.photo.net (or a million other websites)- then look in your browser cache (e.g., Windows / Temporary Internet files for Windows Me - in general, just do a search for newly created files) for junk like menu.js
You might also look at http://www.jspsmart.com/scripts/pub/tpl/ShowTplADV_01.asp?P=330&L=EN
JavaScript (versus Java) is the best way to go; see:
http://www.pageresource.com/jscript/index4.htm
Similar Messages
-
Fireworks CS4 to CS6 - is there a setting that needs to be adjusted so that web pages look right in
Fireworks CS4 to CS6 - is there a setting that needs to be adjusted so that web pages look right in Internet Explorer? I was in the middle of creating pages with Fireworks CS4 and exporting them to Dreamweaver CS4 and publishing them to the website. Those pages looked fine. Then I upgraded to CS6 and the pages look fine in Fireworks, Dreamweaver and when I preview them "live" in Chrome but not Internet Explorer. Anyone know why? Also, with upgrading the software I upgraded to a new computer. Any and all suggestions are welcomed. Thanks!
Most likely caused by a missing document type declaration (DTD). Truth is, the HTML code generated by graphics apps is not web worthy. It's really only intended for quick mock-ups to show a client before you rebuild everything with CSS & HTML code in Dreamweaver.
This 3-part tutorial describes how to take your Design from Fireworks or Photoshop to a CSS Layout in Dreamweaver.
Part 1 - Initial Design
http://www.adobe.com/devnet/dreamweaver/articles/dw_fw_css_pt1.html
Part 2 - Markup preparation
http://www.adobe.com/devnet/dreamweaver/articles/dw_fw_css_pt2.html
Part 3 - Layout and CSS
http://www.adobe.com/devnet/dreamweaver/articles/dw_fw_css_pt3.html
Nancy O. -
Is there any way to edit the standard Firefox context menu for displayed Web pages?
Is there any way to edit the standard Firefox context menu for displayed Web pages? I frequently want to save a picture appearing on a page. Sometimes I "slip" and hit "Send Image" when I want "Save Image As", and have to sit and wait for a default send-mail page to come up, then close it, fiddling with its "are you sure" dialogs. This is a painful way to handle a slip-up. I basically NEVER want to e-mail an element directly from a page. Is there any way I can just delete "Send Image" from the context menu?
You can remove entries in the context menu with code in the userChrome.css file
*http://kb.mozillazine.org/userChrome.css
Some IDs are listed in this MozillaZine Knowledge Base article:
*http://kb.mozillazine.org/Chrome_element_names_and_IDs
To find the ID of others you will have to use the DOM Inspector.
* https://support.mozilla.org/kb/DOM+Inspector
* https://developer.mozilla.org/En/DOM_Inspector
* https://developer.mozilla.org/en/Introduction_to_DOM_Inspector
* DOM Inspector: https://addons.mozilla.org/firefox/addon/dom-inspector-6622/ -
Hi
I am new to flash & have made a 3 level menu but 3rd
level hide behind the table in web page
any suggestion
Thanks :)Well that is exactly what one would expect. Flash can simply
not break out of it's box. So either make your flash area big
enough to accomodate all content, or rearrange your menu to fit in.
sorry for the bad news.
Markus -
Need to grab the data from Web Page and send it to SAP using PI
Hello Experts,
I need to grab the exchanges rates from the below link.
http://www.cbr.ru/scripts/XML_daily.asp?date_req=09-06-2011.
This link returns an XML . I need to get the data from this XML page and post it to SAP ECC using PI.
My requirement is that, process should start from the ECC and grabs the data from the web page which gives you the XML and post this data into ECC using PI. We have a RFC written in ECC side to post the data in ECC.
Please help me to identify the adaptor's needed and what should I need to do to initiate the process from ECC.
Would it be a Async or Sync process ?
I would really appreciate the inputs.
Thanks.
Gaurav.Hi,
Any particular reason that you want to go for a sync process as then you would need to either use a BPM (RFC to BPM where you use sync/async bridge to get the xml file from the specified link and then send the response back to ECC) or go for a synchronous Java proxy on the receiver side which will grab the exchange rates and then map back to the RFC response structure. In this case, you can avoid the BPM.
Else, as mentioned in Michal's blog, you can break it up into 2 seperate scenarios. RFC/Proxy to File and then File to IDoc/RFC/Proxy which will get the exchange rates into ECC.
Another option can be Proxy --> PI --> ECC(IDoc/Proxy/RFC). Here you can grab the exchange rates from the link in your message mapping through a UDF.
Regards -
Why does Verizon find the need to change the look of web pages and divert you to other pages?
Why is it that verizon can't leave well enough alone! It seems everytime I log in I can't, because verizon wants me to go to another page or change my info, I just want my email, I don't want to learn about new products and new offers, If there is a time I feel te need, I will come looking, don't shove it down my throat! Another big problem is when they force you to change something before they will let you accesss your email, reminds me of a trick the Russians pull! (If you know what I mean!) If I wanted my page to look like microsofts page ,I would have their service. If you feel the need to change so often, maybe you are in the wrong business!
It can be annoying, but I think their motivation is good. They are trying to make things better for their customers and I think they have, even though sometimes it is annoying. I think it would be nice if they would advise us when the pages are going to be down for maintenance, In the mean time, you could have another E mail account so you can always get access to your E mail.
-
I Need Idea about parametrizing a Statik web Page
Hello EveryBody;
I wanted to design JSP pages to change our static web site into dynamic one.Dynamic refers only the images and some menu links menus. Actualy there are 3 menus top,sub and left.So what I did, I wrote a class that creates the menuObjects and builds the sturcture (which one is root ,childs of root and sub_childs etc etc).Than I put the root into the session and whener you click a link it sends a parametere and JSP pages refreshing with this new parametre and root itself....
BUT
I realy don't know if the works going on like this.And I have no idea if I am on the right way or not. If you read this thread and have any idea about it Can you share it with me???
Thanks For Your ConsiderationYou should take a look at the MVC design pattern. MVC stands for Model View Controller and it is a design pattern which tells you how to build a web application in a way it is easily scalable.
This way, you should work with JSP's (View) who only show the data, java beans (model) who contain the data and servlets (controller) who controls the flow of the application.
The Java Beans correspond to the concepts the user knows like Client, Product, Order, Invoice.
To get back to your dynamic web application, you could build a database (take a look at MySQL) which contains the menustructure. With DAO's or Data Access Objects you can retrieve the data from your database and put in into Java Beans. The Java Beans would contain your menu structure and show it on your JSP's.
I've made a brief description of the MVC. If you want to know more, let me know. -
The menu on my web page is off center in ff4
At [http://StocksThatMove.com StocksThatMove], the horizontal menu text (aligned with CSS) [Home, Commentary, etc.] used to aligned with the menu image buttons. Not the text is pushed to the right — out of alignment.
They're still OK in Chrome and IE 8Simply go to:
1.View 2.Select tool bars 3. Uncheck any of the toolbars below: a. Babylon toolbar b. Softonic Eng 7 Commuinity tool bar!
4.Finish.... if nothing happened try to unchechk other toolbars. -
Need a way to print a web page once weekly
I have a page with a schedule on it that I'd like to have automatically print once a week. I've toyed around in automator but can't seem to piece together a solution; this seems like it should be simple!
Basically need to grab http://192.168.xxx.xxx (it's in PHP) -> print using a preset (if possible, would like 4/page in b&w fast draft)
Ideas?One good way is to prepare a subVI with the data you want to be printed, no code, and the original waveform data being entered. Put it as a subVI and execute it when you want to print. Be sure you check the Print Panel when Finished option, and so, when you execute it, data will be passed, and automatically printed as you want.
Good luck -
Need help creating multiple albums on web page
I have created a website using the about me template which comes with 3 albums on on the template. It seems that only the first album is hyperlinked to another page but the other two are not. Am I correct or am I doing something wrong. Is there a way to have 3 albums on my about me page that will send the viewer to the album page when they click on it. Any help would be much appreciated.
The problem with the iWeb albums page is that if you put more than about 6 albums with a dozen or so photos in each, it will take forever to download and will have no chance of downloading in IE.
Unless all your viewers use Macs with Safari, forget the Photos and Albums templates and use flash.
A lot of iWeb users seem to be unaware of how dysfunctional an iWeb built site is for PC users. -
Making a web page created with WPC available in an iView
Hi all,
is it possible to display a web page which was created with the WPC in an Iview?
Every guide I found explains how to make it available via Entry Point but I need it in an iView.
Regards,
Bastian JäschkeHi,
1. create a new iView with Portal Component as source
2. choose portal archive: com.sap.nw.wpc.runtime
3. choose default on next screen
4. Afterwards choose the category Web Page Composer in the Property Editor.
5. Insert the Path of the Web Page in the property : RID of Compound Document
(you can copy it by clicking on 'Copy Path' in the context menu of the web page)
example: /wpccontent/Sites/MyWebSite/Web Pages/MyWebPage
I translated it from german documentation. Hope, you understand it.
That's the way i did it too nad it worked for me.
Best Regards,
Marcus -
Help! Urgent!!! tree in web page
I am new in Swing. I need to implement a tree in web page. The tree should appear in the left of a frame and the corresponding content should be displayed in the right of the frame.
Could anyone give me an example? I need this help very urgently. Thank you very much in advance.
my email addr:
[email protected]this is mtmcode.js
i try to send u another part of the code
// Morten's JavaScript Tree Menu
// version 2.3.0, dated 2001-04-30
// http://www.treemenu.com/
// Copyright (c) 2001, Morten Wang & contributors
// All rights reserved.
// This software is released under the BSD License which should accompany
// it in the file "COPYING". If you do not have this file you can access
// the license through the WWW at http://www.treemenu.com/license.txt
* Define the MenuItem object. *
function MTMenuItem(text, url, target, tooltip, icon)
this.text = text;
this.url = url ? url : "";
this.target = target ? target : "";
this.tooltip = tooltip;
this.icon = icon ? icon : "";
this.number = MTMNumber++;
this.submenu = null;
this.expanded = false;
this.MTMakeSubmenu = MTMakeSubmenu;
function MTMakeSubmenu(menu, isExpanded, collapseIcon, expandIcon)
this.submenu = menu;
this.expanded = isExpanded;
this.collapseIcon = collapseIcon ? collapseIcon : "menu_folder_closed.gif";
this.expandIcon = expandIcon ? expandIcon : "menu_folder_open.gif";
* Define the Menu object. *
function MTMenu()
this.items = new Array();
this.MTMAddItem = MTMAddItem;
function MTMAddItem(item)
this.items[this.items.length] = item;
* Define the icon list, addIcon function and MTMIcon item. *
function IconList()
this.items = new Array();
this.addIcon = addIcon;
function addIcon(item)
this.items[this.items.length] = item;
function MTMIcon(iconfile, match, type)
this.file = iconfile;
this.match = match;
this.type = type;
* The MTMBrowser object. A custom "user agent" that'll define the browser *
* seen from the menu's point of view. *
function MTMBrowser()
this.cookieEnabled = false;
this.preHREF = "";
this.MTMable = false;
this.cssEnabled = true;
this.browserType = "other";
if(navigator.appName == "Netscape" && navigator.userAgent.indexOf("WebTV") == -1)
if(parseInt(navigator.appVersion) == 3 && (navigator.userAgent.indexOf("Opera") == -1))
this.MTMable = true;
this.browserType = "NN3";
this.cssEnabled = false;
else if(parseInt(navigator.appVersion) >= 4)
this.MTMable = true;
this.browserType = parseInt(navigator.appVersion) == 4 ? "NN4" : "NN5";
else if(navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) >= 4)
this.MTMable = true;
this.browserType = "IE4";
else if(navigator.appName == "Opera" && parseInt(navigator.appVersion) >= 5)
this.MTMable = true;
this.browserType = "O5";
if(this.browserType != "NN4")
this.preHREF = location.href.substring(0, location.href.lastIndexOf("/") +1);
* Global variables. Not to be altered unless you know what you're doing. *
* User-configurable options are at the end of this document. *
var MTMLoaded = false;
var MTMLevel;
var MTMBar = new Array();
var MTMIndices = new Array();
var MTMUA = new MTMBrowser();
var MTMClickedItem = false;
var MTMExpansion = false;
var MTMNumber = 1;
var MTMTrackedItem = false;
var MTMTrack = false;
var MTMFrameNames;
var MTMFirstRun = true;
var MTMCurrentTime = 0; // for checking timeout.
var MTMUpdating = false;
var MTMWinSize, MTMyval, MTMxval;
var MTMOutputString = "";
var MTMCookieString = "";
var MTMCookieCharNum = 0; // cookieString.charAt()-number
* Code that picks up frame names of frames in the parent frameset. *
function MTMgetFrames()
if(MTMUA.MTMable)
MTMFrameNames = new Array();
for(i = 0; i < parent.frames.length; i++)
MTMFrameNames[i] = parent.frames.name;
* Functions to draw the menu. *
function MTMSubAction(SubItem)
SubItem.expanded = (SubItem.expanded) ? false : true;
if(SubItem.expanded)
MTMExpansion = true;
MTMClickedItem = SubItem.number;
if(MTMTrackedItem && MTMTrackedItem != SubItem.number)
MTMTrackedItem = false;
if(MTMEmulateWE || SubItem.url == "" || !SubItem.expanded)
setTimeout("MTMDisplayMenu()", 10);
return false;
else
return true;
function MTMStartMenu()
MTMLoaded = true;
if(MTMFirstRun)
MTMCurrentTime++;
if(MTMCurrentTime == MTMTimeOut)
{ // call MTMDisplayMenu
setTimeout("MTMDisplayMenu()",10);
else
setTimeout("MTMStartMenu()",100);
function MTMDisplayMenu()
if(MTMUA.MTMable && !MTMUpdating)
MTMUpdating = true;
if(MTMFirstRun)
MTMgetFrames();
if(MTMUseCookies)
MTMFetchCookie();
if(MTMTrack)
MTMTrackedItem = MTMTrackExpand(menu);
if(MTMExpansion && MTMSubsAutoClose)
MTMCloseSubs(menu);
MTMLevel = 0;
MTMDoc = parent.frames[MTMenuFrame].document
MTMDoc.open("text/html", "replace");
MTMOutputString = '<html><head>\n';
if(MTMLinkedSS)
MTMOutputString += '<link rel="stylesheet" type="text/css" href="' + MTMUA.preHREF + MTMSSHREF + '">\n';
else if(MTMUA.cssEnabled)
MTMOutputString += '<style type="text/css">\nbody {\n\tcolor:' + MTMTextColor + ';\n}\n';
MTMOutputString += '#root {\n\tcolor:' + MTMRootColor + ';\n\tbackground:transparent;\n\tfont-family:' + MTMRootFont + ';\n\tfont-size:' + MTMRootCSSize + ';\n}\n';
MTMOutputString += 'a {\n\tfont-family:' + MTMenuFont + ';\n\tfont-size:' + MTMenuCSSize + ';\n\ttext-decoration:none;\n\tcolor:' + MTMLinkColor + ';\n\tbackground:transparent;\n}\n';
MTMOutputString += MTMakeA('pseudo', 'hover', MTMAhoverColor);
MTMOutputString += MTMakeA('class', 'tracked', MTMTrackColor);
MTMOutputString += MTMakeA('class', 'subexpanded', MTMSubExpandColor);
MTMOutputString += MTMakeA('class', 'subclosed', MTMSubClosedColor) + MTMExtraCSS + '\n<\/style>\n';
MTMOutputString += '<\/head>\n<body ';
if(MTMBackground != "")
MTMOutputString += 'background="' + MTMUA.preHREF + MTMenuImageDirectory + MTMBackground + '" ';
MTMOutputString += 'bgcolor="' + MTMBGColor + '" text="' + MTMTextColor + '" link="' + MTMLinkColor + '" vlink="' + MTMLinkColor + '" alink="' + MTMLinkColor + '">\n';
MTMOutputString += MTMHeader + '\n<table border="0" cellpadding="0" cellspacing="0" width="' + MTMTableWidth + '">\n';
MTMOutputString += '<tr valign="top"><td nowrap><img src="' + MTMUA.preHREF + MTMenuImageDirectory + MTMRootIcon + '" align="left" border="0" vspace="0" hspace="0">';
if(MTMUA.cssEnabled)
MTMOutputString += '<span id="root"> ' + MTMenuText + '<\/span>';
else
MTMOutputString += '<font size="' + MTMRootFontSize + '" face="' + MTMRootFont + '" color="' + MTMRootColor + '">' + MTMenuText + '<\/font>';
MTMDoc.writeln(MTMOutputString + '</td></tr>');
MTMListItems(menu);
MTMDoc.writeln('<\/table>\n' + MTMFooter + '\n<\/body>\n<\/html>');
MTMDoc.close();
if(MTMUA.browserType == "NN5")
parent.frames[MTMenuFrame].scrollTo(0, 0);
if((MTMClickedItem || MTMTrackedItem) && MTMUA.browserType != "NN3" && !MTMFirstRun)
MTMItemName = "sub" + (MTMClickedItem ? MTMClickedItem : MTMTrackedItem);
if(document.layers && parent.frames[MTMenuFrame].scrollbars)
MTMyval = parent.frames[MTMenuFrame].document.anchors[MTMItemName].y;
MTMWinSize = parent.frames[MTMenuFrame].innerHeight;
else if(MTMUA.browserType != "O5")
if(MTMUA.browserType == "NN5")
parent.frames[MTMenuFrame].document.all = parent.frames[MTMenuFrame].document.getElementsByTagName("*");
MTMyval = MTMGetYPos(parent.frames[MTMenuFrame].document.all[MTMItemName]);
MTMWinSize = MTMUA.browserType == "NN5" ? parent.frames[MTMenuFrame].innerHeight : parent.frames[MTMenuFrame].document.body.offsetHeight;
if(MTMyval > (MTMWinSize - 60))
parent.frames[MTMenuFrame].scrollBy(0, parseInt(MTMyval - (MTMWinSize * 1/3)));
if(!MTMFirstRun && MTMUA.cookieEnabled)
if(MTMCookieString != "")
setCookie(MTMCookieName, MTMCookieString.substring(0,4000), MTMCookieDays);
else
setCookie(MTMCookieName, "", -1);
MTMFirstRun = false;
MTMClickedItem = false;
MTMExpansion = false;
MTMTrack = false;
MTMCookieString = "";
MTMUpdating = false;
function MTMListItems(menu)
var i, isLast;
for (i = 0; i < menu.items.length; i++)
MTMIndices[MTMLevel] = i;
isLast = (i == menu.items.length -1);
MTMDisplayItem(menu.items[i], isLast);
if(menu.items[i].submenu && menu.items[i].expanded)
MTMBar[MTMLevel] = (isLast) ? false : true;
MTMLevel++;
MTMListItems(menu.items[i].submenu);
MTMLevel--;
else
MTMBar[MTMLevel] = false;
function MTMDisplayItem(item, last)
var i, img;
var MTMfrm = "parent.frames['code']";
var MTMref = '.menu.items[' + MTMIndices[0] + ']';
if(MTMLevel > 0)
for(i = 1; i <= MTMLevel; i++)
MTMref += ".submenu.items[" + MTMIndices[i] + "]";
if(MTMUA.cookieEnabled)
if(MTMFirstRun && MTMCookieString != "")
item.expanded = (MTMCookieString.charAt(MTMCookieCharNum++) == "1") ? true : false;
else
MTMCookieString += (item.expanded) ? "1" : "0";
if(item.submenu)
var usePlusMinus = false;
if(MTMSubsGetPlus.toLowerCase() == "always" || MTMEmulateWE)
usePlusMinus = true;
else if(MTMSubsGetPlus.toLowerCase() == "submenu")
for (i = 0; i < item.submenu.items.length; i++)
if (item.submenu.items[i].submenu)
usePlusMinus = true; break;
var MTMClickCmd = "return " + MTMfrm + ".MTMSubAction(" + MTMfrm + MTMref + ");";
var MTMouseOverCmd = "parent.status='" + (item.expanded ? "Collapse " : "Expand ") + (item.text.indexOf("'") != -1 ? MTMEscapeQuotes(item.text) : item.text) + "';return true;";
var MTMouseOutCmd = "parent.status=parent.defaultStatus;return true;";
MTMOutputString = '<tr valign="top"><td nowrap>';
if(MTMLevel > 0)
for (i = 0; i < MTMLevel; i++)
MTMOutputString += (MTMBar[i]) ? MTMakeImage("menu_bar.gif") : MTMakeImage("menu_pixel.gif");
if(item.submenu && usePlusMinus)
if(item.url == "")
MTMOutputString += MTMakeLink(item, true, true, true, MTMClickCmd, MTMouseOverCmd, MTMouseOutCmd);
else
if(MTMEmulateWE)
MTMOutputString += MTMakeLink(item, true, true, false, MTMClickCmd, MTMouseOverCmd, MTMouseOutCmd);
else
if(!item.expanded)
MTMOutputString += MTMakeLink(item, false, true, true, MTMClickCmd, MTMouseOverCmd, MTMouseOutCmd);
else
MTMOutputString += MTMakeLink(item, true, true, false, MTMClickCmd, MTMouseOverCmd, MTMouseOutCmd);
if(item.expanded)
img = (last) ? "menu_corner_minus.gif" : "menu_tee_minus.gif";
else
img = (last) ? "menu_corner_plus.gif" : "menu_tee_plus.gif";
else
img = (last) ? "menu_corner.gif" : "menu_tee.gif";
MTMOutputString += MTMakeImage(img);
if(item.submenu)
if(MTMEmulateWE && item.url != "")
MTMOutputString += '</a>' + MTMakeLink(item, false, false, true);
else if(!usePlusMinus)
if(item.url == "")
MTMOutputString += MTMakeLink(item, true, true, true, MTMClickCmd, MTMouseOverCmd, MTMouseOutCmd);
else if(!item.expanded)
MTMOutputString += MTMakeLink(item, false, true, true, MTMClickCmd);
else
MTMOutputString += MTMakeLink(item, true, true, false, MTMClickCmd, MTMouseOverCmd, MTMouseOutCmd);
img = (item.expanded) ? item.expandIcon : item.collapseIcon;
else
MTMOutputString += MTMakeLink(item, false, true, true);
img = (item.icon != "") ? item.icon : MTMFetchIcon(item.url);
MTMOutputString += MTMakeImage(img);
if(item.submenu && item.url != "" && item.expanded && !MTMEmulateWE)
MTMOutputString += '</a>' + MTMakeLink(item, false, false, true);
if(MTMUA.browserType == "NN3" && !MTMLinkedSS)
var stringColor;
if(item.submenu && (item.url == "") && (item.number == MTMClickedItem))
stringColor = (item.expanded) ? MTMSubExpandColor : MTMSubClosedColor;
else if(MTMTrackedItem && MTMTrackedItem == item.number)
stringColor = MTMTrackColor;
else
stringColor = MTMLinkColor;
MTMOutputString += '<font color="' + stringColor + '" size="' + MTMenuFontSize + '" face="' + MTMenuFont + '">';
MTMOutputString += ' ' + item.text + ((MTMUA.browserType == "NN3" && !MTMLinkedSS) ? '</font>' : '') + '</a>' ;
MTMDoc.writeln(MTMOutputString + '</td></tr>');
function MTMEscapeQuotes(myString)
var newString = "";
var cur_pos = myString.indexOf("'");
var prev_pos = 0;
while (cur_pos != -1)
if(cur_pos == 0)
newString += "\\";
else if(myString.charAt(cur_pos-1) != "\\")
newString += myString.substring(prev_pos, cur_pos) + "\\";
else if(myString.charAt(cur_pos-1) == "\\")
newString += myString.substring(prev_pos, cur_pos);
prev_pos = cur_pos++;
cur_pos = myString.indexOf("'", cur_pos);
return(newString + myString.substring(prev_pos, myString.length));
function MTMTrackExpand(thisMenu)
var i, targetPath, targetLocation;
var foundNumber = false;
for(i = 0; i < thisMenu.items.length; i++)
if(thisMenu.items[i].url != "" && MTMTrackTarget(thisMenu.items[i].target))
targetLocation = parent.frames[thisMenu.items[i].target].location;
targetPath = targetLocation.pathname + targetLocation.search;
if(MTMUA.browserType == "IE4" && targetLocation.protocol == "file:")
var regExp = /\\/g;
targetPath = targetPath.replace(regExp, "\/");
if(targetPath.lastIndexOf(thisMenu.items[i].url) != -1 && (targetPath.lastIndexOf(thisMenu.items[i].url) + thisMenu.items[i].url.length) == targetPath.length)
return(thisMenu.items[i].number);
if(thisMenu.items[i].submenu)
foundNumber = MTMTrackExpand(thisMenu.items[i].submenu);
if(foundNumber)
if(!thisMenu.items[i].expanded)
thisMenu.items[i].expanded = true;
if(!MTMClickedItem)
MTMClickedItem = thisMenu.items[i].number;
MTMExpansion = true;
return(foundNumber);
return(foundNumber);
function MTMCloseSubs(thisMenu)
var i, j;
var foundMatch = false;
for(i = 0; i < thisMenu.items.length; i++)
if(thisMenu.items[i].submenu && thisMenu.items[i].expanded)
if(thisMenu.items[i].number == MTMClickedItem)
foundMatch = true;
for(j = 0; j < thisMenu.items[i].submenu.items.length; j++)
if(thisMenu.items[i].submenu.items[j].expanded)
thisMenu.items[i].submenu.items[j].expanded = false;
else
if(foundMatch)
thisMenu.items[i].expanded = false;
else
foundMatch = MTMCloseSubs(thisMenu.items[i].submenu);
if(!foundMatch)
thisMenu.items[i].expanded = false;
return(foundMatch);
function MTMFetchIcon(testString)
var i;
for(i = 0; i < MTMIconList.items.length; i++)
if((MTMIconList.items[i].type == 'any') && (testString.indexOf(MTMIconList.items[i].match) != -1))
return(MTMIconList.items[i].file);
else if((MTMIconList.items[i].type == 'pre') && (testString.indexOf(MTMIconList.items[i].match) == 0))
return(MTMIconList.items[i].file);
else if((MTMIconList.items[i].type == 'post') && (testString.indexOf(MTMIconList.items[i].match) != -1))
if((testString.lastIndexOf(MTMIconList.items[i].match) + MTMIconList.items[i].match.length) == testString.length)
return(MTMIconList.items[i].file);
return("menu_link_default.gif");
function MTMGetYPos(myObj)
return(myObj.offsetTop + ((myObj.offsetParent) ? MTMGetYPos(myObj.offsetParent) : 0));
function MTMCheckURL(myURL)
var tempString = "";
if((myURL.indexOf("http://") == 0) || (myURL.indexOf("https://") == 0) || (myURL.indexOf("mailto:") == 0) || (myURL.indexOf("ftp://") == 0) || (myURL.indexOf("telnet:") == 0) || (myURL.indexOf("news:") == 0) || (myURL.indexOf("gopher:") == 0) || (myURL.indexOf("nntp:") == 0) || (myURL.indexOf("javascript:") == 0))
tempString += myURL;
else
tempString += MTMUA.preHREF + myURL;
return(tempString);
function MTMakeLink(thisItem, voidURL, addName, addTitle, clickEvent, mouseOverEvent, mouseOutEvent)
var tempString = '<a href="' + (voidURL ? 'javascript:;' : MTMCheckURL(thisItem.url)) + ' ';
if(MTMUseToolTips && addTitle && thisItem.tooltip)
tempString += 'title="' + thisItem.tooltip + '" ';
if(addName)
tempString += 'name="sub' + thisItem.number + '" ';
if(clickEvent)
tempString += 'onclick="' + clickEvent + '" ';
if(mouseOverEvent && mouseOverEvent != "")
tempString += 'onmouseover="' + mouseOverEvent + '" ';
if(mouseOutEvent && mouseOutEvent != "")
tempString += 'onmouseout="' + mouseOutEvent + '" ';
if(thisItem.submenu && MTMClickedItem && thisItem.number == MTMClickedItem)
tempString += 'class="' + (thisItem.expanded ? "subexpanded" : "subclosed") + '" ';
else if(MTMTrackedItem && thisItem.number == MTMTrackedItem)
tempString += 'class="tracked"';
if(thisItem.target != "")
tempString += 'target="' + thisItem.target + '" ';
return(tempString + '>');
function MTMakeImage(thisImage)
return('<img src="' + MTMUA.preHREF + MTMenuImageDirectory + thisImage + '" align="left" border="0" vspace="0" hspace="0" width="18" height="18">');
function MTMakeBackImage(thisImage)
var tempString = 'transparent url("' + ((MTMUA.preHREF == "") ? "" : MTMUA.preHREF);
tempString += MTMenuImageDirectory + thisImage + '")'
return(tempString);
function MTMakeA(thisType, thisText, thisColor)
var tempString = "";
tempString += 'a' + ((thisType == "pseudo") ? ':' : '.');
return(tempString + thisText + ' {\n\tcolor:' + thisColor + ';\n\tbackground:transparent;\n}\n');
function MTMTrackTarget(thisTarget)
if(thisTarget.charAt(0) == "_")
return false;
else
for(i = 0; i < MTMFrameNames.length; i++)
if(thisTarget == MTMFrameNames[i])
return true;
return false;
function MTMFetchCookie()
var cookieString = getCookie(MTMCookieName);
if(cookieString == null)
{ // cookie wasn't found
setCookie(MTMCookieName, "Say-No-If-You-Use-Confirm-Cookies");
cookieString = getCookie(MTMCookieName);
MTMUA.cookieEnabled = (cookieString == null) ? false : true;
return;
MTMCookieString = cookieString;
MTMUA.cookieEnabled = true;
// These are from Netscape's Client-Side JavaScript Guide.
// setCookie() is altered to make it easier to set expiry.
function getCookie(Name)
var search = Name + "="
if (document.cookie.length > 0)
{ // if there are any cookies
offset = document.cookie.indexOf(search)
if (offset != -1)
{ // if cookie exists
offset += search.length
// set index of beginning of value
end = document.cookie.indexOf(";", offset)
// set index of end of cookie value
if (end == -1)
end = document.cookie.length
return unescape(document.cookie.substring(offset, end))
function setCookie(name, value, daysExpire)
if(daysExpire)
var expires = new Date();
expires.setTime(expires.getTime() + 1000*60*60*24*daysExpire);
document.cookie = name + "=" + escape(value) + (daysExpire == null ? "" : (";expires=" + expires.toGMTString())) + ";path=/"; -
Web page composer for creating static pages
Hi there,
I have a scenario where I need to develop static pages in Web page composer. That is I dont want to build a complete site but only static pages. And then I want to enable the Approval workflow from KM for these static pages. Can someone throw some light on this how I can acheive?
Regards,
Ponraj MPonraj -
Procedure
1. In the Web Page Composer, navigate to the Web page that you want to integrate into the portal navigation.
2. To copy the path to the Web page to the clipboard, choose Copy Path from the context menu for the Web page.
3. Choose Content Administration → Portal Content.
4. Choose New → iView from the context menu of a folder.
5. Choose Portal Component as the source type.
6. Choose the com.sap.nw.wpc.runtime portal archive. On the next screen to appear, choose default.
7. Once you have created the iView, choose the Web Page Composer category in the property editor.
8. In the RID of Compound Document property, enter the path to the KM folder representing the Web page.
Example: /wpccontent/Sites/MyWebSite/Web Pages/MyWebPage
You can paste this path from the clipboard.
9. Open the workset or role that you created when you carried out the initial configuration.
10. To add the iView to the workset or role, choose Add iView to Workset/Role → Deltalink from the context menu of the iView. -
Managing a query result through several web pages
Hi,
I wonder what's the best way to manage a query result through several web
pages in the following context.
The query result is large and needs to be available through several web
pages. The user can scroll forward and backward through the pages.
One can :
- rerun the query at each web request and use random access
- run the query once for the first request, keep the pm and the query
somewhere (in a singleton class for example with a key in the HTTP
session) and use random access for handling the other requests (the
problems I see are to keep a connection for each user in this use case and
to decide when to close the previously mentioned objects)
- rerun the query at each web request, including in the filter a test on a
field and an ordering to start the results from the last one displayed
(being able to specify the maximum number of rows desired would be nice).
Thanks for any advice or suggestion.
Regards.I think Frank's suggestion is probably the best tradeoff between memory
consumption (which would be high if you were to store the enire query
result in the session) and performance (which might be hurt if you
re-issue the query every time).
Note that Kodo 3.0 will provide a getObjectsById(Object[] ids) method
that should help in quickly instantiating a page of query results.
Query result limiting is currently under discussion for inclusion in the
JDO specification. We may have something for this in an upcoming Kodo
release (although not for 3.0).
In article <[email protected]>, Frank Riley wrote:
[email protected] (Patrice) wrote in
news:[email protected]:
Hi,
I wonder what's the best way to manage a query result through several
web pages in the following context.
The query result is large and needs to be available through several
web pages. The user can scroll forward and backward through the pages.
One can :
- rerun the query at each web request and use random access
- run the query once for the first request, keep the pm and the query
somewhere (in a singleton class for example with a key in the HTTP
session) and use random access for handling the other requests (the
problems I see are to keep a connection for each user in this use case
and to decide when to close the previously mentioned objects)
- rerun the query at each web request, including in the filter a test
on a field and an ordering to start the results from the last one
displayed (being able to specify the maximum number of rows desired
would be nice).For our paging code, we convert the query result to a list of object ids
(using pm.getObjectId()). We store this list on the session and only
instantiate the objects we need for a particular page (using
pm.getObjectById()). When a user does something that could possibly
change the query result, we rerun the query and replace the list on the
sesssion.--
Marc Prud'hommeaux [email protected]
SolarMetric Inc. http://www.solarmetric.com -
Firefox 3.6.8, Windows XP Pro
Frequently when I try to do a print of a web page, I end up printing only whatever fits on the first printed page. Instead of continuing to later pages as needed, the rest of the displayed web page is simply ignored.See Tools > Options > General > Startup: "When Firefox Starts": "Show my home page"
Maybe you are looking for
-
Preciso de dicas para Análise de Ordem.
Possuo um arquivo em formato waveform, com dois canais analógicos, sendo o primeiro com pulsos que correspondem a 1/rev do eixo e o outro com aceleração vertical no mancal. Como posso transformat este primeiro em sinal de rotãção para análise de orde
-
How do i get my music back after restoring my ipad accidentaly
I restored my ipod by mistake and now I have no music on my ipod. I still have it on my computer so how do I get back on my ipod?
-
Need PL/SQL - Oracle Regular Expressions help
Hi all, I have to create script some schema in oracle database to update our SVN. And after create DDL scrip need to do some modification (Ex: add columns). Example as follows, After create table DDL original scripts as follows, --table format 1 CREA
-
Do I have to download each of my songs from the cloud individually on my iPad?
Do I have to download each of my songs from the cloud individually onto my iPad?
-
Window 8 does not see my iPhone?
Can any body help. My iPhone is shown as connected on my laptop but iTunes dies not see it. Window 8 system.