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

ns4 undefined


Poster: Surfergirl
Dated: Friday May 14 2004 - 16:06:08 BST

:oops: A Runtime error has occured. Error 'ns4' is undefined. Do you wish to debug

I have a web page that has 2 domains. Enews.tc points to a specific folder within the site, http://www.tcimall.tc/enews 2 ways of acccessing the files... (follow me?)

The milionic files are in http://www.tcimall.tc/milonic/

In the header I have included the absolute address for tcimall.tc but still get runtime error for url - http://www.enews.tc - (everything ok on tcimall.tc/enews/

Here is what my files say....

<script language=JavaScript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=http://www.tcimall.tc/milonic/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=http://www.tcimall.tc/milonic/mmenudom.js><\/scr"+"ipt>");
</script>

What am I doing wrong here?? please help me 8) 8)


Poster: Ruth
Dated: Friday May 14 2004 - 18:41:36 BST

Code:
<script language=JavaScript src="/milonic/milonic_src.js" type=text/javascript></script>
is the wrong url for the file. When you load the http://www.enew.tc the browser looks for the milonic_src.js based on that url. Also, you did get licensed for both domains, didn't you?

Ruth


Poster: Surfergirl
Dated: Friday May 14 2004 - 19:12:31 BST

Hi Ruth

They are the same web site - its just so big that I give an alias domain to the locals for that folder on the server to get to the enews faster. The milonic menu that is supposed to show on http://www.enews.tc is the menu for http://www.tcimall.tc - confusing....- there is only one set of files, 2 domains.

So on the template, which is in http://www.tcimall.tc for the Enews, (dreamweaver) - I have in the milonic source - http://www.tcimall.tc/milonic/menu.....etc.js..... but its not working because I typed something in wrong and I can't seem to figure it out...


Poster: Ruth
Dated: Friday May 14 2004 - 21:00:48 BST

Surfergirl wrote:
So on the template, which is in http://www.tcimall.tc for the Enews, (dreamweaver) - I have in the milonic source - http://www.tcimall.tc/milonic/menu.....etc.js..... but its not working because I typed something in wrong and I can't seem to figure it out...


The milonic_src.js file is NOT downloading. I hand cleared my temporary internet files to make sure it was empty, then went to the enews.tc site. No milonic_src file downloaded. As I mentioned previously the url is incorrect when you are ON that http://www.enews.tc. since you are on enews.tc then the call for the milonic_src.js file is listed as src="/milonic/milonic_src.js" I would think then that the browser is looking for http://www.enews.js/milonic/milonic_src.js but you don't have that, the file is actually in http://www.tcimall.tc/milonic/ Use the full path and that will probably resolve the issue.


Poster: kevin3442
Dated: Saturday May 15 2004 - 1:09:09 BST

Ruth's explanation sound like it's right on the money. And that would explain the error message (ns4 undefined), because ns4 is defined in milonic_src.js, which isn't loading.

Kevin

Re: ns4 undefined


Poster: John
Dated: Saturday May 15 2004 - 1:56:01 BST

Surfergirl wrote:
What am I doing wrong here?? please help me 8) 8)

You're staying away too long, that's what :!: :D

Ruth has nailed it, I'm sure. Also, you're quite a bit down-level - technically out of support range! Upgrade to the current 5.18.


Poster: Surfergirl
Dated: Wednesday May 19 2004 - 16:28:49 BST

I know, I'm way behind.

I still have a problem but I think I see what it is now. On the webserver the enews.tc is pointing to, yes another alias, turksandcaicos.tc - not tcimall.tc - which are the same site but different IPs...something you don't even want to know.

I love the menu and you all are great help. I will attempt to upgrade the version and get myself in gear.


Poster: John
Dated: Wednesday May 19 2004 - 16:35:11 BST

Remember - 1 license = 1 domain...


Poster: Surfergirl
Dated: Wednesday May 19 2004 - 16:50:44 BST

Its still pulling an error if you type http://www.enews.tc but....good news, click on any link and the page reverts back into the tcimall.tc URL (or turksandcaicos.tc address) and everything works. Someday I'll figure it out.

Re the upgrade to the latest version:
I just have to upload the 3 new files to the server
milonic_src.js
mmenudom.js
mmenuns4.js -----right? or is there something else to update?

ps - I love the feature that personalizes your license number on the download - very nice.


Poster: Surfergirl
Dated: Wednesday May 19 2004 - 16:52:06 BST

re 1 license per 1 domain

I'd be happy to buy 3 licenses but all the files are the same. How do you manage that? the alias situation?


Poster: John
Dated: Wednesday May 19 2004 - 16:55:01 BST

I have forgotten what version you were running, but basically yes, just those 3 files. Check the install.txt doc in the download to make sure your calls are correct.