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.
[AS]//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â);
}[/AS]