Change this: document.forms[0].action = "Include/index.cfm?var1=" + arg1;
To this: document.forms[0].action = "/Include/index.cfm?var1=" + arg1; On Thu, Jun 17, 2010 at 10:40 AM, fun and learning <[email protected]>wrote: > > Hi All - > > I have a dropdown which calls a javascript function on "onchange event". > The onchange function is as follows: > > function on_change(arg1) { > document.forms[0].action = "Include/index.cfm?var1=" + arg1; > document.forms[0].method = "post"; > document.forms[0].target = "_self"; > document.forms[0].submit(); > } > > The problem is it works fine sometimes and sometimes coldfusion throws an > error like > "File not found: /Include/Include/index.cfm" not found...what could be the > problem here? > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:334617 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

