ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old May 7th, 2008, 11:17 PM
bvaz bvaz is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2007
Posts: 8 bvaz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 52 m 26 sec
Reputation Power: 0
Phantom Directory

I have created an index page which is constructed of a start module and a stop module (both cfmodule). The start is a menu which is made using html ul and li statements which have an href in each of the li's....to go to another page..the interesting thing happening is when the top level (ul) of the menu is selected, it displays the <li's> associated with the ul...these too have hrefs....when the second href is selected, either html or cf is inserting a redundant directory level...
ie....first ul has 10 uls permitting a selection of another menu level http://www.site/index2008.cfm the selected page is http://www.site/bca/indexbca8.cfm which displays the li's one of which is http://site/bca/directorsbca8.cfm when this is selected either the browser or cf is generating the following:
http://www.site/bca/bca/directorsbca8.cfm and i get the 404 error....any one have an idea what i am doing wrong? thanks is advance. bob

Reply With Quote
  #2  
Old May 8th, 2008, 06:25 AM
Ebot's Avatar
Ebot Ebot is offline
Meatball Surgeon
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2004
Location: Elbow deep in code
Posts: 1,040 Ebot User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Ebot User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Ebot User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Ebot User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Ebot User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Ebot User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Ebot User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Ebot User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Ebot User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Ebot User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Ebot User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)  Folding Points: 10015 Folding Title: Novice Folder
Time spent in forums: 1 Week 3 Days 3 h 37 m 17 sec
Reputation Power: 462
since we can't go to your site, can you post some code?
__________________
The liver is evil and must be punished!

Reply With Quote
  #3  
Old May 8th, 2008, 08:55 AM
kiteless kiteless is offline
Moderator
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,475 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 17 h 7 m 51 sec
Reputation Power: 42
Yeah I'm not understanding the question from your description. But CF doesn't "insert" anything into your generated HTML so the problem is definitely in your code somewhere. Without seeing code (and please, only post the relevant code don't post 100+ lines of code or I simply won't have the time to go through it) it's impossible to offer any advice.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian.
How to Post a Question in the Forums

Reply With Quote
  #4  
Old May 8th, 2008, 12:55 PM
bvaz bvaz is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2007
Posts: 8 bvaz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 52 m 26 sec
Reputation Power: 0
abslolutely ... hope this brief sample provides what you need:
directory invokes index2008 which does a couple database gets. and loads start and stop modules as follows:
<cfmodule template="templates/headStart8.cfm">

<cfmodule template="templates/headStop8.cfm" menuid="1">
headstart8 simply loads a banner and logo...
headstop8 loads the menu a portion of follows:

<div id="row4">
<cfif isDefined("attributes.menuID")>
<cfset menuID = #attributes.menuID#>
<cfelse>
<cfset menuID = 0>
</cfif>
<div id="row4Left">
<cfif #menuID# EQ 1>
<div id="row4menuItemActive">
<cfelse>
<div id="row4menuItem">
</cfif>
<a href="index2008.cfm">Home Page / News Bulletins</a>
</div>
<cfif #menuID# EQ 2>
<div id="row4menuItemActive">
<cfelse>
<div id="row4menuItem">
</cfif>
<a href="news/indexn8.cfm">Newsletters</a>
<cfif #menuID# EQ 2>
<ul>
<li><a href="news/indexn8.cfm">2008 Newsletters</a></li>
<li><a href="news/news2007n8.cfm">2007 Newsletters</a></li>
<li><a href="news/newsarchn8.cfm">Archived Newsletters</a></li>
</ul>
</cfif>
</div>
<cfif #menuID# EQ 3>
<div id="row4menuItemActive">
<cfelse>
<div id="row4menuItem">
</cfif>
<a href="contacts/indexc8.cfm">Contacts / Questions</a>
<cfif #menuID# EQ 3>
<ul>
<li><a href="contacts/indexc8.cfm">How to Contact the GCA</a></li>
<li><a href="contacts/communityc8.cfm">Community Contacts & Links</a></li>
<li><a href="contacts/faqc8.cfm">Frequently Asked Questions</a></li>
</ul>
</cfif>
</div>
if I click on the newsletters entry, the menu is expanded to display the <li> entries - then when i click on the <li>, example:
<li><a href="news/news2007n8.cfm">2007 Newsletters</a></li>
browser tries to locate news/news/news2007n8.cfm....symptom is same for other menus....hope this helps...if not, would be more than willing to send you via email the actual site to look at it....thanks bob

Reply With Quote
  #5  
Old May 8th, 2008, 01:26 PM
kiteless kiteless is offline
Moderator
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,475 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 17 h 7 m 51 sec
Reputation Power: 42
You must be calling it from inside the /news directory, which is why the browser is starting there and appending "news/foo.cfm" from that starting point. This is a pathing issue. You'll either need to remove the "news/" from your links, or use the full path from the site root to the target file, i.e. "/news/foo.cfm" instead of "news/foo.cfm".

Reply With Quote
  #6  
Old May 12th, 2008, 08:37 PM
bvaz bvaz is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2007
Posts: 8 bvaz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 52 m 26 sec
Reputation Power: 0
Thank you....it was the problem....

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > Phantom Directory


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway