URL Path question

2010-06-17 Thread fun and learning
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;

Re: URL Path question

2010-06-17 Thread Michael Grant
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 funandlrnn...@gmail.comwrote: Hi All - I have a dropdown which calls a javascript function on

Re: URL Path question

2010-06-17 Thread Robert Landsmeer
Hi there, My guess would be that the first line in your function should become document.forms[0].action = /Include/index.cfm?var1= + arg1; (note the starting slash) This is ebcause of how urls work. In short if you don't start with a slash it will open it in the current directory while if you