Do your links from the root and you'll be fine. Say your roots are: siteRoot/content/folder2/index2.cfm and siteRoot/content/folder1/includes/index.cfm
You can use your JS like this: document.forms[0].action = "/content/folder2/index2.cfm". and document.forms[0].action = "/content/folder1/includes/index.cfm". On Wed, Aug 18, 2010 at 10:53 AM, fun and learning <funandlrnn...@gmail.com>wrote: > > Hi All - > > I have a directory structure as follows: > > folder1 > - Includes > - index.cfm > > folder2 > - index2.cfm > > I have some links on index.cfm which on clicking goes to index2.cfm in > folder2. I am using javascript, and the action attribute is: > document.forms[0].action = "../folder2/index2.cfm". > > The index2.cfm has a button which on clicking goes back to index.cfm. The > javascript action is: > document.forms[0].action = "../folder1/includes/index.cfm". > > Until this it is working fine. > > Once the user is back on index.cfm and clicks the link to go again to > index2.cfm, i get the error that folder1/folder2/index2.cfm does not exist. > What could be the cause of this? > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336355 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm