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

V 5.0 and Coldfusion..issues


Poster: xaoscontrol
Dated: Friday December 5 2003 - 18:15:14 GMT

I'm currently in the design stage of our new site scheme. We're testing everything and hope to get something rolling in the next couple of months.

The problem is that my menu isn't showing up. Let me summarize how everything is set up so you'll better understand. We're using cold fusion with our site.

First, we have a header.cfm and a footer.cfm. Using the <CFINCLUDE> tags, we're creating our pages with content only and including the header.cfm at the first line of code. (we're not using the footer yet as it's not important). The header.cfm has in it a bg image, a table with an image in it, some hyperlinks, a stylesheet and another <CFINCLUDE> pointing to a sidebar menu (ala Milonic) called sidebar.cfm.

This is the page w/includes running the v3 menu. This is how it SHOULD look.
http://www.nopi.com/comp/demo.cfm

The code for that sidebar menu was from the v3 menu.

The problem was that, while it works great on IE for Windows, and Safari for Mac, it wouldn't work in Navigator on either nor would it work in Opera. I'm not as concerned about tha garuntee that it will work in the latter browsers, but it's nice to try to make sure it can.

In any case, I converted the menu code form 3 to 5. Copied the resulting code into the right file, added the javascript code to an html page to test it and v 5 ran fine on my machine. Then, I replaced the v 3 javascript code in my sidebar.cfm file with the new javascript.

Through IE locally on my machine, I tested the sidebar file, and it ran fine. So then I pointed the include to that file from my header file and tested it. THe first problem I noticed is that the sub-menus would populate OVER the main menu...whereas, in v3, the menu would populate to the right. The other problem I noticed, after testing the page that has the header.cfm include in it, was that the menu never showed up at all. Everything else worked fine as it was when I was using the v 3 menu, but for some reason the v 5 menu isn't playing nicely.

Can anyone help me with this?


Poster: John
Dated: Friday December 5 2003 - 19:49:32 GMT

Please post the cfm for the page here. Include the header and call to the menu files and the include file that has the JS calls at a minimum. We'll see what we can find. Use the [code][/code] items when you post these files.


Poster: xaoscontrol
Dated: Friday December 5 2003 - 20:58:06 GMT

I'll break it down. Thanks in advance.

Header code

Code:

<!-- start header -->
<title>NOPI dot com - For Demo Purposes Only</title><body leftmargin="0" topmargin="0" rightmargin="0" background="includes/images/bg_lines.gif">
<table width="701" border="0" cellpadding="0">
  <tr>
    <td width="117">&nbsp;</td>
    <td width="500"><img name="header_image_comp" src="includes/images/header_image_comp.gif" width="500" height="153" border="0" alt=""></td>
    <td width="76">&nbsp;</td>
  </tr>
  <tr>
    <td height="27" colspan="3">
<table width="575" border="0" align="right" cellpadding="0">
        <tr>
          <td height="23">
<table id="headnav" width="500" border="0" cellpadding="0"> <!--  for menu navigation-->
              <tr>
                <td width="100"><a href="http://www.nopi.com">Nopi</a></td>
                <td width="100"><a href="http://www.nopi.com/ndra/asm_ndra.cfm">NDRA</a></td>
                <td width="100"><a href="http://www.nopinationals.com">Nopi Nationals</a></td>
                <td width="100"><a href="http://www.nopionline.com">NOPI ECat</a></td>
                <td width="100"><a href="http://www.nopichic.com">NOPI CHIC</a></td>
              </tr>
            </table></td>
        </tr>
      </table>
      <CFOUTPUT>#DateFormat(Now(),"m/d/yy")#</CFOUTPUT><br>
    </td>
  </tr>     
 
   <link href="includes/asm_style_2.css" rel="stylesheet" type="text/css">
   
<cfinclude template="dsp_sidebar_demo_3.cfm">
</table>
<table width="700" border="0" cellpadding="0">
  <tr>
    <td>
</td>
  </tr>
</table>


<!-- end header -->



Sidebar

Code:

<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=JavaScript src=mmenudom.js><\/scr"+"ipt>");
   </script>

<SCRIPT language=JavaScript src="menu_data.js" type=text/javascript></SCRIPT>


Complete page

Code:
<cfinclude template="includes/header.cfm">

<!-- start content -->
<!--  <link href="includes/asm_style_2.css" rel="stylesheet" type="text/css"> ///  commented out during design and testing   -->


<table width="800" border="0" cellpadding="0">
  <tr>
    <td rowspan="5" class="lefty">&nbsp;</td>
    <td class="nzhead">This
      is the
      News</td>
    <td rowspan="5" class="tspace1">&nbsp;</td>
    <td  class="info1head">What's
      New
    </td>
    <td rowspan="5" class="tspace1">&nbsp;</td>
    <td class="info2head">NOPI
      Events
    </td>
    <td rowspan="5" class="tspace1">&nbsp;</td>
    <td rowspan="5" valign="top" class="righty">
<table width="100%" border="0" cellpadding="0">
        <tr>
          <td class="add"><img src="images/adds/add1.gif" width="100" height="77"></td>
        </tr>
        <tr>
          <td class="add"><img src="images/adds/add2.gif" width="100" height="77"></td>
        </tr>
        <tr>
          <td class="add"><img src="images/adds/add3.gif" width="100" height="77"></td>
        </tr>
      </table></td>
  </tr>
  <tr>
    <td class="nztable">Building flexibility through spreading knowledge and self-organization,
      measure the process, not the people.Maximization of shareholder wealth
        through separation of ownership from management the strategic vision
      - if indeedthere be one - is required to identify combined with optimal use of human
        resources. he components and priorities for the change program quantitative analysis of all the key ratios
        has a vital role to play in this through the adoption of a proactive
        stance, the astute manager can adopt a position at the vanguard. Exploiting the productive
        lifecycle the strategic vision - if indeed there be one- is required
        to identify from binary cause and effect to complex patterns.</p>
</td>
    <td class="info1"><p><br>
        -
        Cool
        Stuff<br>
        <br>
        -
        Cool
        Stuff<br>
        <br>
        -
        Cool
        Stuff<br>
        <br>
        -
        Cool
        Stuff
      </p></td>
    <td class="info2">-
      Cool
      Stuff<br>
      <br>
      - Cool
      Stuff<br>
      <br>
      - Cool
      Stuff<br>
      <br>
      - Cool
      Stuff
    </td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td class="tspace1">&nbsp;</td>
  </tr>
  <tr>
    <td class="nzhead">Tidbits</td>
    <td class="info1head">&nbsp;
    </td>
    <td class="info2head">NOPI
      Specials
    </td>
  </tr>
  <tr>
    <td class="nztable"><p>Excepteur sint occaecat consectetur adipisicing elit, eu fugiat nulla pariatur.  Cupidatat non proident, ut
        labore et dolore magna aliqua.   Quis ostrud  exercitation ut
        enim ad minim veniam, in reprehenderit in voluptate.</p></td>
    <td class="info1">- Cool Stuff<br>
      <br>
       - Cool Stuff<br>
      <br>
       - Cool Stuff<br>
      <br>
       - Cool Stuff</td>
    <td class="info1">- Cool Stuff<br>
      <br>
      - Cool Stuff<br>
      <br>
      - Cool Stuff<br>
      <br>
      - Cool Stuff
    </td>
  </tr>
  <tr>
    <td class="lefty">&nbsp;</td>
    <td class="nztable">&nbsp;</td>
    <td class="tspace1">&nbsp;</td>
    <td class="info1">&nbsp;</td>
    <td class="tspace1">&nbsp;</td>
    <td class="info1">&nbsp;</td>
    <td class="tspace1">&nbsp;</td>
    <td valign="top" class="righty">&nbsp;</td>
  </tr>
</table>


Poster: Maz
Dated: Saturday December 6 2003 - 1:06:55 GMT

Are you sure you have the correct paths?

Code:

<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=JavaScript src=mmenudom.js><\/scr"+"ipt>");
   </script>

<SCRIPT language="JavaScript" src="menu_data.js" type="text/javascript"></SCRIPT>



I put in a few quotes, just to be correct.

Do you need a path to: "/folder/milonic_src.js" ...on all of them.

I can't help with includes but if that's normal for your includes then we need to see menu_data.js If something is wrong on menu-data it won't show.

Regards,
maz


Poster: John
Dated: Saturday December 6 2003 - 3:56:43 GMT

I'm with Maz on this. I am unable to locate any of the menu files on your system. What is the exact path to these files?


Poster: xaoscontrol
Dated: Monday December 8 2003 - 16:19:25 GMT

I have everything on my local machine right now. For demo purposes, I have the version with the v 3 menu so my employers can see it.

I'll sum it up how we have things set:

http://localhost/comp/demo.cfm

demo.cfm is the page with the includes.

demo.cfm has header.cfm Will also have a footer.cfm.

header.cfm contains a stylesheet and the include for the sidebar nav. I'll call that sidenav.cfm

sidenav.cfm has the following script in it:

<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=JavaScript src=mmenudom.js><\/scr"+"ipt>");
</script>

<SCRIPT language="JavaScript" src="menu_data.js" type="text/javascript"></SCRIPT>


Now, the includes (bolded) and the .js files all sit in a folder called INCLUDES...the demo.cfm page is located one directory up (COMP)

Hope that clarifies some.


Poster: John
Dated: Monday December 8 2003 - 16:45:25 GMT

OK - I think ("...therefore I am - confused!"), you need to add server-relative addressing to your JS menu code calls; i.e., milonic_src.js, etc. If I followed your explanation right, that would be /includes/milonic_src.js, etc. (although I still could not find the files at that location).

Your menu files are not located in the same directory as your main page. When the included call is pulled in, the path you have set now says 'look for the menu files in the current (/comp/) directory' (since you have no pathing on them). It won't find them there, because they are in another directory (/includes/).

That make any "cents"...?


Poster: xaoscontrol
Dated: Monday December 8 2003 - 17:42:55 GMT

I thought that..but it didn't work...then again, it may be opperator error. Question is, do I need to add the "/includes/" to call all 4 of the .js files or just the menu_data.js file?


Poster: John
Dated: Monday December 8 2003 - 18:23:42 GMT

All 4! They're all in the "other" directory, correct?


Poster: xaoscontrol
Dated: Monday December 8 2003 - 18:47:28 GMT

they sit in the 'includes' directory like so:

http://localhost/comp/includes/menu_data.js (etc.)


////edit////

I added the '/includes/' to the path on each of the src= references and it didn't seem to work....

//////edit-remix////

I got it. I had to pull of the first backslash....the first backslash needs to go bye bye

src=includes/menu_data.js


Poster: xaoscontrol
Dated: Monday December 8 2003 - 19:52:03 GMT

Okay....I take it back.....everything works locally, but testing it on the server has a different result.

here's the link

http://www.nopi.com/comp/demo.cfm

Parts are commented out so you can see where things start and end

//// edit ////

It's working...looks fine on a mac as well as the pc.

Thanks guys. :D


Poster: John
Dated: Tuesday December 9 2003 - 17:49:03 GMT

xaoscontrol wrote:
they sit in the 'includes' directory like so:

http://localhost/comp/includes/menu_data.js (etc.)


////edit////

I added the '/includes/' to the path on each of the src= references and it didn't seem to work....

//////edit-remix////

I got it. I had to pull of the first backslash....the first backslash needs to go bye bye

src=includes/menu_data.js

That's because I messed up on understaning exactly where the files are located (must be the fever!).

/comp/includes/... would do it.

Glad you got it going.


Poster: patwoods
Dated: Thursday December 18 2003 - 20:59:42 GMT

I have had a similar problem, except mine works fine on the server if I call the include file (just the milonic menu code) in my browser, but as soon as I add it to a page via an INCLUDE statement, the browser breaks and doesn't display the menu.

By 'breaks' I mean I get a javascript error: Line 17, char 1771, Object expected...

Any ideas? Sorry I can't post a working link, it is an internal server :(


Poster: John
Dated: Thursday December 18 2003 - 21:06:51 GMT

Maybe not, but at least you could post some code. As it is now, there's nothing at all to work with.


Poster: patwoods
Dated: Thursday December 18 2003 - 21:18:50 GMT

OK, here goes...

Page is comprised of several <CFINCLUDES>... there is a main body one, then a top navbar (static, not DHTML or anything), then I include the left navbar here. Note I haven't even begun to mess with content, it is still your demo navbar code with just some color change stuff within.


So here is how the page structure works:

<HTML><BODY>
blah blah blah>
<CFINCLUDE template="/includes/top_header.cfm">
<CFINCLUDE template="/includes/dynamic_menu.cfm"> THIS IS THE CODE BELOW...

Code:

<SCRIPT language=JavaScript src="../includes/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=JavaScript src=mmenudom.js><\/scr"+"ipt>");
</script>

<SCRIPT language=JavaScript>




_menuCloseDelay=500           // The time delay for menus to remain visible on mouse out
_menuOpenDelay=150            // The time delay before menus open on mouse over
_followSpeed=5                // Follow scrolling speed
_followRate=50                // Follow scrolling Rate
_subOffsetTop=10              // Sub menu top offset
_subOffsetLeft=-10            // Sub menu left offset
_scrollAmount=3               // Only needed for Netscape 4.x
_scrollDelay=20               // Only needed for Netcsape 4.x



with(menuStyle=new mm_style()){
itemwidth="165";
onbgcolor="#<CFOUTPUT>#giant_green#</CFOUTPUT>";
oncolor="#ffffff";
offbgcolor="#<CFOUTPUT>#giant_tan#</CFOUTPUT>";
offcolor="#515151";
bordercolor="#296488";
borderstyle="solid";
borderwidth=0;
separatorcolor="#2D729D";
separatorsize="1";
padding=3;
fontsize="10px";
fontstyle="bold";
fontfamily="Verdana, Tahoma, Arial";
pagecolor="black";
pagebgcolor="#82B6D7";
headercolor="#000000";
headerbgcolor="#ffffff";
subimage="arrow.gif";
subimagepadding="2";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)";
outfilter="randomdissolve(duration=0.3)";
}


with(milonic=new menuname("Main Menu")){
style=menuStyle;
//top=180;
//left=0;
position="relative";
alwaysvisible=1;
overflow="scroll";
aI("text=Home;url=http://www.milonic.com/;status=Back To Home Page;");
aI("text=Menu Samples;showmenu=Samples;");
aI("text=Milonic;showmenu=Milonic;");
aI("text=Partners;showmenu=Partners;");
aI("text=Links;showmenu=Links;");
aI("text=My Milonic;showmenu=My Milonic;");
}

with(milonic=new menuname("Samples")){
style=menuStyle;
overflow="scroll";
aI("text=Horizontal Navigational Menu;url=menusample.php?sampleid=1");
aI("text=Vertical Navigational Menu;url=menusample.php?sampleid=2;");
aI("text=All Horizontal Menus;url=menusample.php?sampleid=25;");
aI("text=Using the popup function Fixed Position;url=menusample.php?sampleid=3;");
aI("text=Using the popup Positioned by Images;url=menusample.php?sampleid=24;");
aI("text=Image Map Sample;url=menusample.php?sampleid=4;");
aI("text=Multiple Styles;url=menusample.php?sampleid=5;");
aI("text=Menus and Tool Tips;url=menusample.php?sampleid=6;");
aI("text=Multiple Colored Menus;url=menusample.php?sampleid=7;");
aI("text=Menu Items as Headers;url=menusample.php?sampleid=8;");
aI("text=Windows XP Style Menus;url=menusample.php?sampleid=12;");
aI("text=Windows 98 Style Menus;url=menusample.php?sampleid=13;");
aI("text=Relative Positioning (Table Bound);url=menusample.php?sampleid=9;");
aI("text=Follow Scrolling;url=menusample.php?sampleid=10;");
aI("text=Opening Windows & Frames;url=menusample.php?sampleid=11;");
aI("text=Hiding DIVs when displaying menus;url=menusample.php?sampleid=14;");
aI("text=Activating MouseOver & MouseOut Functions;url=menusample.php?sampleid=15;");
aI("text=Dynamic Dragable Menus;url=menusample.php?sampleid=22;");
aI("text=Positioning with screenposition & offsets;url=menusample.php?sampleid=23;");
aI("text=100% Width Span Menu;url=menusample.php?sampleid=26;");
aI("text=Context Right Click Menu;url=menusample.php?sampleid=27;");
aI("text=Static Images Sample;url=menusample.php?sampleid=16;");
aI("text=Rollover/swap Images;url=menusample.php?sampleid=17;");
aI("text=Menus built from images;url=menusample.php?sampleid=18;");
aI("text=Images as Menu Backgrounds;url=menusample.php?sampleid=19;");
aI("text=Background Menu Item Images;url=menusample.php?sampleid=20;");
}

with(milonic=new menuname("Milonic")){
style=menuStyle;
aI("text=Product Purchasing Page;url=http://www.milonic.com/cbuy.php;");
aI("text=Contact Us;url=http://www.milonic.com/contactus.php;");
aI("text=Newsletter Subscription;url=http://www.milonic.com/newsletter.php;");
aI("text=FAQ;url=http://www.milonic.com/menufaq.php;");
aI("text=Discussion Forum;url=http://www.milonic.com/forum/;");
aI("text=Software License Agreement;url=http://www.milonic.com/license.php;");
aI("text=Privacy Policy;url=http://www.milonic.com/privacy.php;");
}

with(milonic=new menuname("Partners")){
style=menuStyle;
aI("text=(aq) Web Hosting;url=http://www.a-q.co.uk/;status=(aq) Web Server Hosting & Services;");
aI("text=SMS 2 Email;url=http://www.sms2email.com/;");
aI("text=WebSmith;url=websmith;");
}

with(milonic=new menuname("Links")){
style=menuStyle;
aI("text=Apache Web Server;url=http://www.apache.org/;status=Apache Web Server, the basis of Milonic's Web Site;");
aI("text=MySQL Database Server;url=http://ww.mysql.com/;status=MySQL, Milonic's Prefered Choice of Database Server;");
aI("text=PHP - Development;url=http://www.php.net/;status=PHP - Web Server Scripting as used by Milonic;");
aI("text=phpBB Web Forum System;url=http://www.phpbb.net/;status=PHP Based Web Forum, Milonic's Recommended Forum Software;");
aI("text=Anti Spam Tools;showmenu=Anti Spam;status=Anti Spam Solutions, as used by Milonic;");
}

with(milonic=new menuname("Anti Spam")){
style=menuStyle;
aI("text=Spam Cop;url=http://www.spamcop.net/;");
aI("text=Mime Defang;url=http://www.mimedefang.org/;");
aI("text=Spam Assassin;url=http://www.spamassassin.org/;");
}

with(milonic=new menuname("My Milonic")){
style=menuStyle;
aI("text=Login;url=http://www.milonic.com/login.php;");
aI("text=Licenses;url=http://www.milonic.com/mylicenses.php;");
aI("text=Invoices;url=http:/www.milonic.com/myinvoices.php;");
aI("text=Make Support Request;url=http://www.milonic.com/reqsupport.php;");
aI("text=View Support Requests;url=http://www.milonic.com/mysupport.php;");
aI("text=Your Details;url=http://www.milonic.com/mydetails.php;");
}


drawMenus();

</SCRIPT>   


<CFINCLUDE template="/includes/bottom_header.cfm">


Poster: patwoods
Dated: Thursday December 18 2003 - 21:24:50 GMT

OK, here goes...

Page is comprised of several <CFINCLUDES>... there is a main body one, then a top navbar (static, not DHTML or anything), then I include the left navbar here. Note I haven't even begun to mess with content, it is still your demo navbar code with just some color change stuff within.


So here is how the page structure works:

<HTML><BODY>
blah blah blah, static HTML code...

<CFINCLUDE template="/includes/top_header.cfm">
<CFINCLUDE template="/includes/dynamic_menu.cfm"> CODE BELOW...

Code:

<SCRIPT language=JavaScript src="/includes/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=JavaScript src=mmenudom.js><\/scr"+"ipt>");
</script>

<SCRIPT language=JavaScript>




_menuCloseDelay=500           // The time delay for menus to remain visible on mouse out
_menuOpenDelay=150            // The time delay before menus open on mouse over
_followSpeed=5                // Follow scrolling speed
_followRate=50                // Follow scrolling Rate
_subOffsetTop=10              // Sub menu top offset
_subOffsetLeft=-10            // Sub menu left offset
_scrollAmount=3               // Only needed for Netscape 4.x
_scrollDelay=20               // Only needed for Netcsape 4.x



with(menuStyle=new mm_style()){
itemwidth="165";
onbgcolor="#<CFOUTPUT>#giant_green#</CFOUTPUT>";
oncolor="#ffffff";
offbgcolor="#<CFOUTPUT>#giant_tan#</CFOUTPUT>";
offcolor="#515151";
bordercolor="#296488";
borderstyle="solid";
borderwidth=0;
separatorcolor="#2D729D";
separatorsize="1";
padding=3;
fontsize="10px";
fontstyle="bold";
fontfamily="Verdana, Tahoma, Arial";
pagecolor="black";
pagebgcolor="#82B6D7";
headercolor="#000000";
headerbgcolor="#ffffff";
subimage="arrow.gif";
subimagepadding="2";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)";
outfilter="randomdissolve(duration=0.3)";
}


with(milonic=new menuname("Main Menu")){
style=menuStyle;
//top=180;
//left=0;
position="relative";
alwaysvisible=1;
overflow="scroll";
aI("text=Home;url=http://www.milonic.com/;status=Back To Home Page;");
aI("text=Menu Samples;showmenu=Samples;");
aI("text=Milonic;showmenu=Milonic;");
aI("text=Partners;showmenu=Partners;");
aI("text=Links;showmenu=Links;");
aI("text=My Milonic;showmenu=My Milonic;");
}

with(milonic=new menuname("Samples")){
style=menuStyle;
overflow="scroll";
aI("text=Horizontal Navigational Menu;url=menusample.php?sampleid=1");
aI("text=Vertical Navigational Menu;url=menusample.php?sampleid=2;");
aI("text=All Horizontal Menus;url=menusample.php?sampleid=25;");
aI("text=Using the popup function Fixed Position;url=menusample.php?sampleid=3;");
aI("text=Using the popup Positioned by Images;url=menusample.php?sampleid=24;");
aI("text=Image Map Sample;url=menusample.php?sampleid=4;");
aI("text=Multiple Styles;url=menusample.php?sampleid=5;");
aI("text=Menus and Tool Tips;url=menusample.php?sampleid=6;");
aI("text=Multiple Colored Menus;url=menusample.php?sampleid=7;");
aI("text=Menu Items as Headers;url=menusample.php?sampleid=8;");
aI("text=Windows XP Style Menus;url=menusample.php?sampleid=12;");
aI("text=Windows 98 Style Menus;url=menusample.php?sampleid=13;");
aI("text=Relative Positioning (Table Bound);url=menusample.php?sampleid=9;");
aI("text=Follow Scrolling;url=menusample.php?sampleid=10;");
aI("text=Opening Windows & Frames;url=menusample.php?sampleid=11;");
aI("text=Hiding DIVs when displaying menus;url=menusample.php?sampleid=14;");
aI("text=Activating MouseOver & MouseOut Functions;url=menusample.php?sampleid=15;");
aI("text=Dynamic Dragable Menus;url=menusample.php?sampleid=22;");
aI("text=Positioning with screenposition & offsets;url=menusample.php?sampleid=23;");
aI("text=100% Width Span Menu;url=menusample.php?sampleid=26;");
aI("text=Context Right Click Menu;url=menusample.php?sampleid=27;");
aI("text=Static Images Sample;url=menusample.php?sampleid=16;");
aI("text=Rollover/swap Images;url=menusample.php?sampleid=17;");
aI("text=Menus built from images;url=menusample.php?sampleid=18;");
aI("text=Images as Menu Backgrounds;url=menusample.php?sampleid=19;");
aI("text=Background Menu Item Images;url=menusample.php?sampleid=20;");
}

with(milonic=new menuname("Milonic")){
style=menuStyle;
aI("text=Product Purchasing Page;url=http://www.milonic.com/cbuy.php;");
aI("text=Contact Us;url=http://www.milonic.com/contactus.php;");
aI("text=Newsletter Subscription;url=http://www.milonic.com/newsletter.php;");
aI("text=FAQ;url=http://www.milonic.com/menufaq.php;");
aI("text=Discussion Forum;url=http://www.milonic.com/forum/;");
aI("text=Software License Agreement;url=http://www.milonic.com/license.php;");
aI("text=Privacy Policy;url=http://www.milonic.com/privacy.php;");
}

with(milonic=new menuname("Partners")){
style=menuStyle;
aI("text=(aq) Web Hosting;url=http://www.a-q.co.uk/;status=(aq) Web Server Hosting & Services;");
aI("text=SMS 2 Email;url=http://www.sms2email.com/;");
aI("text=WebSmith;url=websmith;");
}

with(milonic=new menuname("Links")){
style=menuStyle;
aI("text=Apache Web Server;url=http://www.apache.org/;status=Apache Web Server, the basis of Milonic's Web Site;");
aI("text=MySQL Database Server;url=http://ww.mysql.com/;status=MySQL, Milonic's Prefered Choice of Database Server;");
aI("text=PHP - Development;url=http://www.php.net/;status=PHP - Web Server Scripting as used by Milonic;");
aI("text=phpBB Web Forum System;url=http://www.phpbb.net/;status=PHP Based Web Forum, Milonic's Recommended Forum Software;");
aI("text=Anti Spam Tools;showmenu=Anti Spam;status=Anti Spam Solutions, as used by Milonic;");
}

with(milonic=new menuname("Anti Spam")){
style=menuStyle;
aI("text=Spam Cop;url=http://www.spamcop.net/;");
aI("text=Mime Defang;url=http://www.mimedefang.org/;");
aI("text=Spam Assassin;url=http://www.spamassassin.org/;");
}

with(milonic=new menuname("My Milonic")){
style=menuStyle;
aI("text=Login;url=http://www.milonic.com/login.php;");
aI("text=Licenses;url=http://www.milonic.com/mylicenses.php;");
aI("text=Invoices;url=http:/www.milonic.com/myinvoices.php;");
aI("text=Make Support Request;url=http://www.milonic.com/reqsupport.php;");
aI("text=View Support Requests;url=http://www.milonic.com/mysupport.php;");
aI("text=Your Details;url=http://www.milonic.com/mydetails.php;");
}


drawMenus();

</SCRIPT>   


then more static HTML.... then

<CFINCLUDE template="/includes/bottom_header.cfm">

then </BODY></HTML>

The thing is that it works fine if I call /includes/dynamic_menu.cfm from the browser by itself. Not only that, but it works fine with the slash or without the slash in the "/includes/milonic_src.js"


Poster: John
Dated: Thursday December 18 2003 - 21:24:52 GMT

It would appear you have all your menu files in the same /includes/ directory, so why "../includes/milonic_src.js" instead of just "milonic_src.js" as you have for the other menu code calls?


Poster: patwoods
Dated: Thursday December 18 2003 - 21:27:13 GMT

jgillett wrote:
It would appear you have all your menu files in the same /includes/ directory, so why "../includes/milonic_src.js" instead of just "milonic_src.js" as you have for the other menu code calls?


Yeah, it works on its own, no matter what. I tried all variations of the /, ../, and leaving the slash off. It works fine in all cases if I pull the include file up on its own, but never as part of a larger page. Weird.


Poster: John
Dated: Thursday December 18 2003 - 21:38:15 GMT

Trying to get my brain going here (it's been fried with the flu this week). My calls are slightly different and working fine.

<cfinclude template="/rms/templates/menucall.htm"> calls...
Code:
<script language="Javascript" src="/rms/templates/menu5/milonic_src.js" type="text/javascript"></script>   
<script language="Javascript" type="text/javascript">
if(ns4)_d.write("<scr"+"ipt language=Javascript src=/rms/templates/menu5/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=Javascript src=/rms/templates/menu5/mmenudom.js><\/scr"+"ipt>");
</script>

...and then, where needed...
Code:
<script language="Javascript" src="/rms/templates/menu_data.js" type="text/javascript"></script>

...gets the data and all is well.


Poster: patwoods
Dated: Friday December 19 2003 - 13:06:07 GMT

hm. my brain must be fried also, was this for me or the other fella asking questions?

BTW great forum here - makes me really comfortable to know I spent my (company's) dollars well on this product. :)


Poster: John
Dated: Friday December 19 2003 - 16:40:13 GMT

For you, Pat.

Thank you for the kind words. Most appreciated.

While not required in a license situation such as yours, a link back to http://milonic.com/ would also be most appreciated.


Poster: patwoods
Dated: Friday December 19 2003 - 16:44:33 GMT

jgillett wrote:
Trying to get my brain going here (it's been fried with the flu this week). My calls are slightly different and working fine.

<cfinclude template="/rms/templates/menucall.htm"> calls...
Code:
<script language="Javascript" src="/rms/templates/menu5/milonic_src.js" type="text/javascript"></script>   
<script language="Javascript" type="text/javascript">
if(ns4)_d.write("<scr"+"ipt language=Javascript src=/rms/templates/menu5/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=Javascript src=/rms/templates/menu5/mmenudom.js><\/scr"+"ipt>");
</script>

...and then, where needed...
Code:
<script language="Javascript" src="/rms/templates/menu_data.js" type="text/javascript"></script>

...gets the data and all is well.


Hmm. Yeah, tried this and still no menu display. I have no doubt Cold Fusion is to blame with the path names, and I will eventually get it rolling...


Poster: John
Dated: Friday December 19 2003 - 16:47:55 GMT

This may be obvious, but keep in mind those path examples are for my structure. Adjust as needed for yours. The idea was simply to show the different way I'm calling the files, which, for me, works.


Poster: patwoods
Dated: Friday December 19 2003 - 17:00:13 GMT

jgillett wrote:
This may be obvious, but keep in mind those path examples are for my structure. Adjust as needed for yours. The idea was simply to show the different way I'm calling the files, which, for me, works.


Fixed. Somehow all the fiddling with the pathnames, I got a combination to work finally. Thanks!


Poster: John
Dated: Monday December 22 2003 - 2:58:29 GMT

Glad to hear it!

Ain't CF fun... :?: