Skip to main content
Participating Frequently
December 10, 2008
Question

Newbie to cfmenu

  • December 10, 2008
  • 7 replies
  • 619 views
To the group,

Hoping you can help. I am just trying to implement a basic cfmenu with cfmenuitems, but when I display this in my browser, the menus are not in a drop down format, in fact they appear as if they have been indented in that the bullets images are one level in if I was to do this in a word document format. Can someone help? Below is the link.

http://ora253.dce.harvard.edu:7779/~smartino/ps6/menu/menu.cfm

thanks

Steve
    This topic has been closed for replies.

    7 replies

    Inspiring
    December 11, 2008
    Check with your administrator and make sure that CFIDE/scripts is not blocked, so that you don't have to do these work arounds.

    Inspiring
    December 11, 2008
    Hi Steve,

    You can not put your script location as url's in the scriptSrc and cssSrc attributes, and you can only reference the directory in where you have the AJAX scripts (i.e javascript files).

    Inspiring
    December 10, 2008
    GusAvaAuthor
    Participating Frequently
    December 10, 2008
    unfortunately still does not work.
    Inspiring
    December 10, 2008
    Yeah you can do that like this,

    <cfajaximport scriptsrc="/your_scripts_directory">
    GusAvaAuthor
    Participating Frequently
    December 10, 2008
    Below is the mapping to our scripts directory, does the below make sense, and is my statement correct?

    http://ora253.dce.harvard.edu:7779/CFIDE/scripts

    Where I implemented it:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    " http://www.w3.org/TR/html4/strict.dtd">
    <html xmlns=" http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Sample CFMenu Tag</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <cfajaximport
    cssSrc = " http://ora253.dce.harvard.edu:7779/CFIDE/scripts"
    scriptSrc = " http://ora253.dce.harvard.edu:7779/CFIDE/scripts">
    </head>
    Inspiring
    December 10, 2008
    Hi Steve,

    You don't have to worry about having it in your own directory, as the CFIDE/scripts directory (which you normally include in your coldfusion files) has already got all those stuff (YUI, ExtJS and all)..
    GusAvaAuthor
    Participating Frequently
    December 10, 2008
    Can you give me the include statement that people normally put in the .cfm files to do this?
    Inspiring
    December 10, 2008
    Hi GusAva,

    If you don't have the access, you can check it with your Administrator, may be he can guide you through.

    HTH
    GusAvaAuthor
    Participating Frequently
    December 10, 2008
    thanks....

    I keep reading that the Yahoo scripts (YUI) are necessary for this to work, and just noticed that I have these scripts in my home directory, how do I reference them, do I need to copy them to my public_html directory for this to work, or are these scripts not the reason I am having a problem?

    thanks

    Steve
    Inspiring
    December 10, 2008
    Hi,

    Check whether your CFIDE directory is mapped in the Coldfusion Administrator, if not map it and try again...

    If it is already mapped, check and make sure that your mappings are valid.
    GusAvaAuthor
    Participating Frequently
    December 10, 2008
    I am student using the schools coldfusion and web server, so I do not have access to this. What is the CFIDE directory for?

    sorry for being a newbie to this...

    Hi,

    Check whether your CFIDE directory is mapped in the Coldfusion Administrator, if not map it and try again...

    If it is already mapped, check and make sure that your mappings are valid.