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

<a href=http://www.milonic.com/>DHTML... prob


Poster: Paul666
Dated: Monday April 10 2006 - 12:07:02 BST

Hi,

I have this line:

if (popup!='nopopup') document.write('<TD><P class="DHTML"><A name="DHTML" style="color:yellow" HREF="http://www.milonic.com/" target="_blank">DHTML JavaScript Menu By Milonic.com</A></P></TD>');

and I get an error

line 17 (which it is not but its always this line # no matter how many lines I add/remove!)

Char 188
Error ; expected
code 0;

However if I use:

if (popup!='nopopup') document.write('<TD><P class="DHTML"><A name="DHTML" style="color:yellow" HREF="http://www.milonic.com/" target="_blank"></A></P></TD>');

ie I have removed:

DHTML JavaScript Menu By Milonic.com

I don't get the err, but of course I do get the Milonic menu

I've even tried

if (popup!='nopopup') document.write('<TD><P class="DHTML"><a href=http://www.milonic.com/>DHTML JavaScript Menu Courtesy of Milonic.com</a> </P></TD>');

straight from the milonic site but it still errs.

Any ideas what is causing this and how to fix it.

It occurs on all pages - http://www.adslproject.net

Many thanx
Paul


Poster: Paul666
Dated: Tuesday April 11 2006 - 10:22:56 BST

Am using the layest version btw


Poster: Paul666
Dated: Wednesday April 12 2006 - 9:54:07 BST

OK, sorry not the latest version as you released a new one Monday, but it is still a problem with the latest version.

Thanx


Poster: Andy
Dated: Wednesday April 12 2006 - 9:59:41 BST

Does the object named 'popup' actually exist?

If not that's why the error is stating that something is expected.

try this instead:

if (window.popup!='nopopup') document.write('<TD><P class="DHTML"><A name="DHTML" style="color:yellow" HREF="http://www.milonic.com/" target="_blank">DHTML JavaScript Menu By Milonic.com</A></P></TD>');


Poster: Paul666
Dated: Thursday April 13 2006 - 11:35:30 BST

Hi,

No it does not but your code did not make a difference.
So made it exist, no go so took the if right out:

Code:
   /*if (popup!='nopopup')*/ document.write('<TD><P class="DHTML"><A name="DHTML" style="color:yellow" HREF="http://www.milonic.com/" target="_blank">DHTML JavaScript Menu By Milonic.com</A></P></TD>');


U will see a strange thing also above in that I can trunkcate the DHTML Java.. to as far as By and I don't get the eval menu but an err, but if I truncate it one more so By becomes B, I get the eval menu and no err.

This was not a prob with v5.718a and looks to be no prob up to 5.742.

With 5.743 I seem to get the eval menu even if I have the full Milonic text.
With 5.744 and I assume upwards I am in my current situation with this err and able to truncate as far as By.

BTW I don't want to truncate, its just for testing purposes.

Any ideas as to what could be going on or changed around 5.743~5.744

Thanx


Poster: John
Dated: Thursday April 13 2006 - 15:11:45 BST

Note that 5.746 is current, which is where you need to be for support.


Poster: Paul666
Dated: Thursday April 13 2006 - 16:25:20 BST

Yipp am using 5.746, its when I upgraded to it from 5.718a (which had no probs) to play with tooltips that the err started occuring, so back tracked to see in which version of the problem started.

Thanx


Poster: Paul666
Dated: Friday April 21 2006 - 10:08:34 BST

Also this occurs with the latest version of IE, on the latest versions of XP, W2KPro and W2K server

Thanx


Poster: Paul666
Dated: Tuesday April 25 2006 - 11:47:40 BST

Hi,

upgraded to 5.747 - pre-release and it still buggy.

Do I need to down grade to 5.746 support?

Thanx


Poster: John
Dated: Tuesday April 25 2006 - 14:47:21 BST

No, pre-releases are supported. However, you made a big jump coming up from 5.718. Make sure you're running the latest tooltips file as well.