jillyhu
asked on
component variables to GetUrl Post
I have created a form using input text fields, named each one in the variable box on the properties panel. I added a button GetUrl using the Post or Get this works fine and I can access the data in CF.
I want to add a Date Field component to the stage and pass the selected date along with the other text field info. At present when I click the button the following text is outputted:-
"/index.cfm?width=undefine d&height=u ndefined&f ocusManage r=%5Flevel 0%2EfocusM anager&tab Children=t rue&tabEna bled=false &firstname =jill&%5Fc hildCounte r=1&focus% 5Fmc=%5Fle vel0%2Edep thChild0&l astname=ju uu"
Can anyone help me in posting the date field component information (also help passing the info for check boxes, radio buttons etc as i have the same problem with them). I am sure there is a simple explanation, but at the moment I cannot find it myself.
I would obviously offer more points, but at present do not have a credit card and am in the UK and my card type is not accepted and so cannot purchase any additional points. Thanks......
I want to add a Date Field component to the stage and pass the selected date along with the other text field info. At present when I click the button the following text is outputted:-
"/index.cfm?width=undefine
Can anyone help me in posting the date field component information (also help passing the info for check boxes, radio buttons etc as i have the same problem with them). I am sure there is a simple explanation, but at the moment I cannot find it myself.
I would obviously offer more points, but at present do not have a credit card and am in the UK and my card type is not accepted and so cannot purchase any additional points. Thanks......
How is the button script?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks Juztyn this gave us the trail to the answer and have managed to fix what we needed. For your information, the code that worked is below. Have accepted your answer as you put us on the right track. Again many thanks.
dataSender=new LoadVars();
function SubmitForm(){
dataSender.formInput1=(fir st.text);
dataSender.formInput2=(las t.text);
dataSender.formInput3=(day .text);
dataSender.send("http://www.ourserver.net/index.cfm","_blank ","GET");
}
dataSender=new LoadVars();
function SubmitForm(){
dataSender.formInput1=(fir
dataSender.formInput2=(las
dataSender.formInput3=(day
dataSender.send("http://www.ourserver.net/index.cfm","_blank
}
Ah thankyou as well jillyhu - your solution is definitely the correct approach. Sometimes you have to revisit the basics to brush up on the better/newer way of doing things! I'll be doing this from now on.