tranism
July 11th, 2003, 07:43 PM
Basically I would like to display what my server side script sends back after I submit my form. The results need to be displayed in my scroller box. I started to write it out but I am stuck. Any help would REALLY be appreciated. :)
//variables being sent to server
//txtZip (input text) and cboDist (comboBox Component) are the variables
formData = new LoadVars();
formData.txtZip = "";
formData.cboDist = cboDist.getValue();
//object for replyData
//Hopefully after this form is submitted, the server sends it's repsonse to 'replyData'
//If successfully loaded, the output in displayed in my scroller boxed aptly names 'scroller
replyData.onLoad = function() {
if (success) {
trace("done loading");
scroller.html = true;
scroller.htmlText = this.textfield;
} else {
trace("not loaded");
}
}
//function for submit button
onSubmit = function() {
formData.sendAndLoad("http://www.bcbg.com/zipcodesearchF.php", replyData, "POST");
}
//variables being sent to server
//txtZip (input text) and cboDist (comboBox Component) are the variables
formData = new LoadVars();
formData.txtZip = "";
formData.cboDist = cboDist.getValue();
//object for replyData
//Hopefully after this form is submitted, the server sends it's repsonse to 'replyData'
//If successfully loaded, the output in displayed in my scroller boxed aptly names 'scroller
replyData.onLoad = function() {
if (success) {
trace("done loading");
scroller.html = true;
scroller.htmlText = this.textfield;
} else {
trace("not loaded");
}
}
//function for submit button
onSubmit = function() {
formData.sendAndLoad("http://www.bcbg.com/zipcodesearchF.php", replyData, "POST");
}