Menu text with ® or other html equivalent characters

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
mmlbrenda
Beginner
Beginner
Posts: 5
Joined: Fri Aug 04, 2006 3:52 pm

Menu text with ® or other html equivalent characters

Post by mmlbrenda »

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://milonic.com/ for more information.
See http://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>
Brenda
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

I'm not sure what the problem is. You can use the

Code: Select all

&reg; 
or you can use

Code: Select all

® 
both will put a ® in the menu. Both of the following give you Anolon® Advanced 10-Piece Set

Code: Select all

aI("text=Anolon® Advanced 10-Piece Set;");

Code: Select all

aI("text=Anolon&reg; Advanced 10-Piece Set;");
Hope this helps.

Ruth
mmlbrenda
Beginner
Beginner
Posts: 5
Joined: Fri Aug 04, 2006 3:52 pm

menu text still is having display issues with "&#17

Post by mmlbrenda »

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?
Brenda
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

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
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Also, you are way down level. For full support here on the forum you need to be running the current version, which is 5.756. Many fixes and improvements.
John
Post Reply