Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:58
Menu text with ® or other html equivalent characters
Poster: mmlbrenda
Dated: Friday August 4 2006 - 16:09:54 BST
I have a Menu where I might have HTML characters other than . I cannot remove these items from the menu such as ® Is there a way that I can get around this?
URL: http://surlatable.marketlive.com
Search for Anolon. Then choose a link where the product name has Anolon®
Add to cart.
We are on Version 5.732 of the menu.
<!-- milonic menu start -->
<script type="text/javascript" src="/nav/menu/milonic_src.js"></script>
<script type="text/javascript">
<!--
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=/nav/menu/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=/nav/menu/mmenudom.js><\/scr"+"ipt>");
-->
</script>
<script type="text/javascript">
/*
Milonic DHTML Menu - JavaScript Website Navigation System.
Copyright 2004 (c) Milonic Solutions Limited. All Rights Reserved.
Version 5+ Data File structure is the property of Milonic Solutions Ltd and must only be used in Milonic DHTML Products
This is a commercial software product, please visit http://www.milonic.com/ for more information.
See http://www.milonic.com/license.php for Commercial License Agreement
All Copyright statements must always remain in place in all files at all times
******* PLEASE NOTE: THIS IS NOT FREE SOFTWARE, IT MUST BE LICENSED FOR ALL USE *******
*/
with(menuStyleTopCart=new mm_style()){
itemwidth="173";
onclass="cartmenuOn";
offclass="cartmenuOff";
onbgcolor="#FFFFFF";
offbgcolor="#FFFFFF";
}
with(menuStyleCart=new mm_style()){
itemwidth="173";
onclass="cartmenuItemOn";
offclass="cartmenuItemOff";
onbgcolor="#FFFFFF";
offbgcolor="#FFFFFF";
}
with(milonic=new menuname('MenuCart')){
style=menuStyleCart;
ignorecollision=true;
//alert(myContent);
//aI("text='<table><tr><td>TESTING 1 </td></tr><tr><td>TESTING 2 </td></tr><tr><td>TESTING 3 </td></tr></table>';url='/basket.do'");
aI("text=<table cellspacing=0 cellpadding=0 align=center><tr><td colspan=2 class=rule><img src='/images/en_US/global/globalgraphics/spacer01.gif' width='1' height='1' border='0'></td></tr><tr><td class=cartmenuhdr>item name</td><td class=cartmenuhdr align=center>qty</td></tr><tr><td class=cartmenuitem><a href=/product/bakeware/bakesheets%2C+jellyroll+pans+%26+silicone+mats/%27bistro%27+ivory+candle.do>'Bistro' Ivory Candle</a></td><td class=cartmenuitem align=center>1</td></tr><tr><td class=cartmenuitem><a href=/product/bakeware/bakesheets%2C+jellyroll+pans+%26+silicone+mats/anolon%26%23174-+nonstick+cookie+pans.do>Anolon® Nonstick ...</a></td><td class=cartmenuitem align=center>1</td></tr><tr><td class=cartmenuitem><a href=/product/bakeware/bakesheets%2C+jellyroll+pans+%26+silicone+mats/chrome+cooling+racks.do>Chrome Cooling Racks</a></td><td class=cartmenuitem align=center>1</td></tr><tr><td colspan=2 class=rule><img src='/images/en_US/global/globalgraphics/spacer01.gif' width='1' height='1' border='0'></td></tr><tr><td colspan=2><img src='/images/en_US/global/globalgraphics/spacer01.gif' width='1' height='7' border='0'></td></tr><tr><td colspan=2 align=center><a href=/basket.do?nav=%2Fproduct%2Fid%2F100381%2F100392%2F120906&from=detail><img src='/images/en_US/local/localbuttons/viewcart_btn.gif' border=0 alt='View Cart'></a></td></tr></table>");
}
function changeStyle (divid, stylesheetclass){
document.getElementById(divid).className=stylesheetclass;
}
</script>
<table border=0 cellpadding=0 cellspacing=0>
<tr valign=top>
<td align=center><SCRIPT TYPE="text/javascript">
with(milonic=new menuname("MenuCartTop")){
style=menuStyleTopCart;
alwaysvisible=1;
orientation="horizontal";
position="relative";
aI("showmenu=MenuCart;text=<div align=center><img src='/images/en_US/global/globalnav/shopbasket_off.gif' border=0 alt='Shopping Cart' name='top_shopbasket'></div><div align=center>[ 3 items ]</div>;url=/basket.do?nav=%2Fproduct%2Fid%2F100381%2F100392%2F120906&from=detail");
}
drawMenus();
</script>
</td>
</tr>
</table>
Poster: Ruth
Dated: Monday August 7 2006 - 9:06:37 BST
Hi,
I'm not sure what the problem is. You can use the
Code:
®
or you can use Code:
®
both will put a ® in the menu. Both of the following give you Anolon® Advanced 10-Piece SetCode:
aI("text=Anolon® Advanced 10-Piece Set;");
Code:
aI("text=Anolon® Advanced 10-Piece Set;");
Hope this helps.
Ruth
menu text still is having display issues with "
Poster: mmlbrenda
Dated: Wednesday August 23 2006 - 0:47:12 BST
After 9am PST on 8/23/06 you will be able to see this behavior on a server.
The Shopping Cart submenu is still "breaking" when menu text element has ®
I have upgraded the menu to Version 5.756
To reproduce issue:
http://surlatable.marketlive.com/product/id/124660.do
Add this item to cart. In top nav mouse over the Shopping Cart. You will see a summary of your cart with a column for product name and a column for qty.
Next go to:
http://surlatable.marketlive.com/produc ... ie+pans.do
Add this item to cart Note the output ends for the menu item immediately after the registered trademark symbol.
Is there something that I was missing? Or something that I need to change?
Poster: Andy
Dated: Wednesday August 23 2006 - 12:03:34 BST
Hi,
If you are adding HTML to your menu item, it's always best to enclose it inside back quotes, this means that the menu will not get confused if you add = and ; characters.
Something like this:
aI("text=`<table cellspacing=0 cellpadding=0 align=center><tr><td colspan=2 class=rule><img src='/images/en_US/global/globalgraphics/spacer01.gif' width='1' height='1' border='0'></td></tr><tr><td class=cartmenuhdr>item name</td><td class=cartmenuhdr align=center>qty</td></tr><tr><td class=cartmenuitem><a href=/product/bakeware/bakesheets%2C+jellyroll+pans+%26+silicone+mats/%27bistro%27+ivory+candle.do>'Bistro' Ivory Candle</a></td><td class=cartmenuitem align=center>1</td></tr><tr><td class=cartmenuitem><a href=/product/bakeware/bakesheets%2C+jellyroll+pans+%26+silicone+mats/anolon%26%23174-+nonstick+cookie+pans.do>AnolonĀ® Nonstick ...</a></td><td class=cartmenuitem align=center>1</td></tr><tr><td class=cartmenuitem><a href=/product/bakeware/bakesheets%2C+jellyroll+pans+%26+silicone+mats/chrome+cooling+racks.do>Chrome Cooling Racks</a></td><td class=cartmenuitem align=center>1</td></tr><tr><td colspan=2 class=rule><img src='/images/en_US/global/globalgraphics/spacer01.gif' width='1' height='1' border='0'></td></tr><tr><td colspan=2><img src='/images/en_US/global/globalgraphics/spacer01.gif' width='1' height='7' border='0'></td></tr><tr><td colspan=2 align=center><a href=/basket.do?nav=%2Fproduct%2Fid%2F100381%2F100392%2F120906&from=detail><img src='/images/en_US/local/localbuttons/viewcart_btn.gif' border=0 alt='View Cart'></a></td></tr></table>`");
Hope this helps,
Andy