Search found 10 matches

by etornick
Tue Apr 13, 2004 6:03 pm
Forum: Help & Support for DHTML Menu Version 5+
Topic: Simplifying script include line
Replies: 11
Views: 6382

Just to summarize: I have tried putting these lines in a file called myfile.js:

document.write('<script language="JavaScript" src="milonic_src.js" type="text/javascript"></script> '
+ '<script language="JavaScript"> '
+ 'if(ns4)_d.write("<scr"+"ipt language=JavaScript src=mmenuns4.js><\/scr ...
by etornick
Tue Apr 13, 2004 5:06 pm
Forum: Help & Support for DHTML Menu Version 5+
Topic: Simplifying script include line
Replies: 11
Views: 6382

Yes, I am sure that I have the right URL because if I paste the code in directly it will work.

There is only a problem in putting the lines in a file and "including" that file.
by etornick
Tue Apr 13, 2004 4:18 pm
Forum: Help & Support for DHTML Menu Version 5+
Topic: Simplifying script include line
Replies: 11
Views: 6382

The servlet returning the lines made no difference. I think this is a general javascript issue.

The problem seems to be...

<script language="JavaScript" src="milonic_src.js" type="text/javascript"></script>
<script language="JavaScript">
if(ns4)_d.write("<scr"+"ipt language=JavaScript src ...
by etornick
Tue Apr 13, 2004 3:37 pm
Forum: Help & Support for DHTML Menu Version 5+
Topic: Simplifying script include line
Replies: 11
Views: 6382

Hi:

Thanks for your info... but I don't think that will work for me.

What you showed me was a server side include..

My setup is this....

I have a client who provides a service to many clients. Each one of those clients has their own already built web sites.

What these clients will be doing is ...
by etornick
Tue Apr 13, 2004 2:58 pm
Forum: Help & Support for DHTML Menu Version 5+
Topic: Simplifying script include line
Replies: 11
Views: 6382

All I basically need to do is have the include be for a single file and not the 3 lines of script.

If I just put the lines

<SCRIPT language=JavaScript src="milonic_src.js" type=text/javascript></SCRIPT>
<script language=JavaScript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=mmenuns4.js ...
by etornick
Tue Apr 13, 2004 3:52 am
Forum: Help & Support for DHTML Menu Version 5+
Topic: Simplifying script include line
Replies: 11
Views: 6382

On furthur testing it looks like you cant have both libraries included at once. It definitely gets messed up.
by etornick
Tue Apr 13, 2004 3:49 am
Forum: Help & Support for DHTML Menu Version 5+
Topic: Simplifying script include line
Replies: 11
Views: 6382

This is one solution... But are there namespace clashes between the two menu libraries? I am also loading an extra library when I don't need it.


I put these 3 lines in one file called somename.js .
somename.js

document.write("<script language='JavaScript' src='milonic_src.js' type='text ...
by etornick
Mon Apr 12, 2004 11:08 pm
Forum: Help & Support for DHTML Menu Version 5+
Topic: Simplifying script include line
Replies: 11
Views: 6382

Simplifying script include line

Currently, it is required to paste the following lines in the file:

<SCRIPT language=JavaScript src="milonic_src.js" type=text/javascript></SCRIPT>
<script language=JavaScript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language ...
by etornick
Mon Apr 12, 2004 7:47 pm
Forum: Help & Support for DHTML Menu Version 5+
Topic: Very basic question- runtime error 'ns4' undefined
Replies: 1
Views: 1843

Never mind... I think I found it.....
by etornick
Mon Apr 12, 2004 6:54 pm
Forum: Help & Support for DHTML Menu Version 5+
Topic: Very basic question- runtime error 'ns4' undefined
Replies: 1
Views: 1843

Very basic question- runtime error 'ns4' undefined

I am trying the menu for the first time. When the request the page I get a warning message (script debugging is turned on)...

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

I happens where the include files for the library are.

I'm sure this is very very basic but I ...