PDA

View Full Version : form submission/redirect not working in Mac?


boeing747fp
05-08-2010, 12:09 AM
I got a custom flash uploader built by a flash developer and it works amazing on Windows (any browser) but it refuses to do its last step on Mac computers (any browser)... the 2nd-to-last step is to submit the form data to a php file for beginning the processing of the video file, the very last step after that is to redirect the user to another page... it refuses to work on Macs and the flash developer has no idea why....

boeing747fp
05-08-2010, 10:50 AM
this is the function that fails in Mac but works in Windows
function fnSendVariables() {
var frmVars:URLVariables = new URLVariables();

for (var i=0; i<_numFormElements; i++) {
var frmElement:XML=formXML.element[i];
var tRef=frmContainer.getChildByName(frmElement.@id);
if (frmElement.@type=="checkboxgroup") {
var selectedCBox=[];
var cmbRef=tRef.getChildByName("cbMContainer");
var numCheckBox=frmElement.cbitem.length();
for (var k=0; k<numCheckBox; k++) {
if (cmbRef.getChildByName("cb"+k).selected==true) {
selectedCBox.push(frmElement.cbitem[k].@label);
}
}
frmVars[frmElement.@id]=selectedCBox.toString();
} else if (frmElement.@type=="textfield") {
frmVars[frmElement.@id]=tRef.itext.text;
} else if (frmElement.@type=="textarea") {
frmVars[frmElement.@id]=tRef.itext.text;
} else if (frmElement.@type=="fileuploader") {
frmVars[frmElement.@id]=tRef.itext.text;
}


}


var request2:URLRequest=new URLRequest(formXML.@uploadurl);
request2.method=URLRequestMethod.POST;
request2.data=frmVars;
var loader:URLLoader=new URLLoader();

//loader.addEventListener(Event.COMPLETE, onDataSend);
//loader.dataFormat=URLLoaderDataFormat.VARIABLES;
navigateToURL(request2,"_self");
//loader.load(request2);
}

boeing747fp
05-08-2010, 11:06 AM
im wondering if it has something to do with these settings in htaccess

SecFilterEngine Off
SecFilterScanPOST Off


but i had to add those for it to work at all even with Windows

boeing747fp
05-12-2010, 09:30 AM
that reply has nothing to do with my Mac flash problem....nor any problems that i mentioned...