Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

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:41

HTML characters in the JS code from ASP and MS SQL


Poster: Mindjogger
Dated: Friday February 16 2007 - 15:33:05 GMT

Hello,

I am trying to get the dhtlm menue to get running on our server and have some trouble with the DB generated Javascript code.

I have downloaded:
Milonic DHTML Menu - JavaScript Website Navigation System.
Version 5.770 - Built: Thursday February 1 2007 - 11:28

In our DB we have Japanes characters which are HTML-encoded and looking like:
製品の特徴と

USing this inside of the JS code I am agry to run into trouble because of the ; appearing int the strings for the name/label:
aI("fontsize=18px;fontstyle=italic;showmenu=My Milonic;text=会社概要");
or
aI("text=consulting &  services;url=../text.asp?PageId=678;tooltip=here you get it;");


Does anyone have a expirience with something like this?
Any recommendation if it is needed to mask the html or what to do?
Thank you

Bernhard


Poster: Andy
Dated: Thursday March 1 2007 - 10:37:52 GMT

Hi,

Back Quotes may be your friend in this instance.

If you need to include multiple ; and = characters, this tend to break the structure of aI strings.

To combat this enclose anything that will break the structure inside back quotes, like this:

aI("text`I can include ;;;and === and style="font-color:red;background:blue;" because of back quotes`;url=link.html;");

HTH,
Andy