Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

cfmenu and cfide

Guest
Nov 08, 2009 Nov 08, 2009

I'm receiving the following error with only cfmenu on the page.  This exact code works fine on my server, but I get the error below on Godaddy's ColdFusion servers.  I suggested that they make sure there is a virtual directory to CFIDE, but they haven't confirmed that there is a virtual CFIDE directory.  Instead, they suggested I use set cflocale (US) which I have.  When I output their locale and my new locale, they're the same.  English (US)

Any clues?

Security: The requested template has been denied access to D:\ColdFusion\CFIDE\scripts\ajax\messages\cfmessage_en_US_.js.

The following is the internal exception message: access denied (java.io.FilePermission D:\ColdFusion\CFIDE\scripts\ajax\messages\cfmessage_en_US_.js read)

2.8K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 08, 2009 Nov 08, 2009

The easiest way to test if it's configured properly is to browse to the .js file.  It has to be web-browseable for the client browser to load it...

However you might want to circumvent godaddy's "support" and simply specify your own path to the files with <cfajaximport>:

http://livedocs.adobe.com/coldfusion/8/htmldocs/Tags_a-b_2.html#3980738

That way you can set up a dir within your site with the script files and what not, and don't have to rely on godaddy doing their job properly.

--

Adam

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Nov 09, 2009 Nov 09, 2009

Thanks, Adam.  I did just as you suggested.  I copied the CFIDE directory from my working server to Godaddy's server.  I then used <cfajaximport> to point to the CFIDE directory.  It sees it now without the error message, but it isn't finding the CSS even though I have tried mapping it and using the default.  It's putting the menu in a vertical outline rather than the horizontal dynamic format.  This problem is exactly what happened on my server when I didn't have CFIDE mapped.  The odd thing is that I can browse to all of the files in the new CFIDE folder.  I don't see why the cfmenu format is not working.  I wonder if there is a patch to CF8 that they need to install.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 09, 2009 Nov 09, 2009

Can YOU browse to the CSS file(s) it's trying to load?

--

Adam

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Nov 09, 2009 Nov 09, 2009

Yes, I can.  What am I missing?  This works on my server fine.  It's got to

be obvious, and I'm just too tired of this to see it.

Would the version of the hot fix for CF8 make a difference with cfmenu and cfajaximport?

Thank you for your help.

Robin

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 09, 2009 Nov 09, 2009

Possibly use Firebug or something to see if you can spot any CSS errors going on under the hood?  Or perhaps an HTTP sniffer to see if thet write CSS URLs are being requested?

--

Adam

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Nov 09, 2009 Nov 09, 2009

Ok.  I'm embarrassed to say that I haven't used Firebug before, but I'm sure going to now.

Thank you!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Nov 09, 2009 Nov 09, 2009
LATEST

The errors came on the cfmenu tag:

I searched the errors below and found someone else with the same error, they

say, "Yes, that appears to be it. I talked to my server admin about this and

it turned out that there was something wrong with the way that the cfide dir

was mapped to the web site on the server"

ColdFusion is not defined

ColdFusion.Ajax.importTag('CFAJAXPROXY');\n

<script type="text/javascript"> 15 ColdFusion.Ajax.importTag('CFAJAXPROXY'); 16</script>

ColdFusion is not defined

ColdFusion.Ajax.importTag('CFMENU');\n

<script type="text/javascript"> 19 ColdFusion.Ajax.importTag('CFMENU'); 20</script>

ColdFusion is not defined

};ColdFusion.Event.registerOnLoad(_cf_menu_init_1257819895271);\n

<script type="text/javascript">

23 var cfmenu_init_1257819895271=function()

24 {

25 var cfmenubar=new YAHOO.widget.MenuBar("nvpmenu", {

autosubmenudisplay:true, showdelay:250, hidedelay:10, lazyload:true});

26 cfmenubar.render();

27 cfmenubar.show();

28 };ColdFusion.Event.registerOnLoad(_cf_menu_init_1257819895271);

29</script

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources