Solved

component variables to GetUrl Post

Posted on 2003-11-20
4
515 Views
Last Modified: 2010-05-18
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=undefined&height=undefined&focusManager=%5Flevel0%2EfocusManager&tabChildren=true&tabEnabled=false&firstname=jill&%5FchildCounter=1&focus%5Fmc=%5Flevel0%2EdepthChild0&lastname=juuu"

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......
0
Comment
Question by:jillyhu
  • 2
4 Comments
 
LVL 27

Expert Comment

by:negatyve
ID: 9792234
How is the button script?
0
 

Accepted Solution

by:
juztyn earned 125 total points
ID: 9795713
You can use the command:

 loadVariables ("url" ,level/"target"[, variables])

except you will omit the variables argument and instead craft the url that is sent yourself. This allows you to specify exactly which variables you want sent, including variables not generally available when you use the default variables argument:

loadVariables("http://yourserver.net/index.cfm?width=" + width + "&date=" + date + "&anotherVariable=" + anotherVariable, _root);

Hope this helps.

0
 

Author Comment

by:jillyhu
ID: 9804276
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=(first.text);
dataSender.formInput2=(last.text);
dataSender.formInput3=(day.text);
dataSender.send("http://www.ourserver.net/index.cfm","_blank","GET");
}
0
 

Expert Comment

by:juztyn
ID: 9822874
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.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Flash Slides/Presnetation 4 71
System Center Configuration Manager 2012R2 7 81
adobe flash plugin has crashed while listening to pandora 2 67
flash in chrome 4 86
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to how to record live broadcast.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now