ns4 undefined

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Surfergirl
Super Advanced
Super Advanced
Posts: 77
Joined: Fri Jun 27, 2003 5:38 pm
Location: TCI

ns4 undefined

Post by Surfergirl »

: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)
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Code: Select all

<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
Surfergirl
Super Advanced
Super Advanced
Posts: 77
Joined: Fri Jun 27, 2003 5:38 pm
Location: TCI

Post by Surfergirl »

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...
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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.
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

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

Re: ns4 undefined

Post by John »

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.
John
Surfergirl
Super Advanced
Super Advanced
Posts: 77
Joined: Fri Jun 27, 2003 5:38 pm
Location: TCI

Post by Surfergirl »

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

Post by John »

Remember - 1 license = 1 domain...
John
Surfergirl
Super Advanced
Super Advanced
Posts: 77
Joined: Fri Jun 27, 2003 5:38 pm
Location: TCI

Post by Surfergirl »

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.
Surfergirl
Super Advanced
Super Advanced
Posts: 77
Joined: Fri Jun 27, 2003 5:38 pm
Location: TCI

Post by Surfergirl »

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

Post by John »

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.
John
Post Reply