Salve, non so se il forum più appropriato possa essere actionscripting ma ci provo. Ho un problema con un flash form per sottoscrizione ad una newsletter, il form si basa su actionscripting, perl, e xml come tramite, ma il problema lo riscontro solo con Safari, il nuovo browser di Apple. Se comunque chi non avesse Mac volesse dare un occhio, potrebbe notare qualche errore che gli altri browser digeriscono ma che impalla Safari...

IL MIO FORM HA DUE TASTI, IL SUBSCRIBE RACCHIUDE:

on (release) {
xmlTree = new XML();
xmlElement = xmlTree.createElement("PARAM");
xmlElement.attributes.email = email;
xmlElement.attributes.act = "sub";
xmlTree.appendChild(xmlElement);

response = new XML();
response.onLoad = onResponse;
gotoAndPlay(2);

xmlTree.sendAndLoad("http://www.longedesign.com/cgi-bin/response", response, "POST");
}

L'UNSUBSCRIBE:

on (release) {
xmlTree = new XML();
xmlElement = xmlTree.createElement("PARAM");
xmlElement.attributes.email = email;
xmlElement.attributes.act = "unsub";
xmlTree.appendChild(xmlElement);

response = new XML();
response.onLoad = onResponse;
gotoAndPlay(2);

xmlTree.sendAndLoad("http://www.longedesign.com/cgi-bin/response", response, "POST");
}

ALLA RISPOSTA UN'ALTRO ACTIONSCRIPT DA IL RESPONSO:

function onResponse(success) {
if (success)
{
xmlResponse = this.firstChild;
if (xmlResponse.nodeName == "RESPONSE" && xmlResponse.attributes.TYPE == "email_fail")
{
message = "ADDRESS NOT VALID!\nPLEASE CHECK WHAT YOU WROTE.";
}
else if (xmlResponse.nodeName == "RESPONSE" && xmlResponse.attributes.TYPE == "email_exist")
{
message = "YOU ARE ALREADY REGISTERED! REMEMBER...";
}
else if (xmlResponse.nodeName == "RESPONSE" && xmlResponse.attributes.TYPE == "ok")
{
message = "THANK YOU. YOU HAVE BEEN ADDED\nTO THE DATABASE, YOU WILL RECIEVE\nA CONFIRMATION E-MAIL SHORTLY.";
}
else if (xmlResponse.nodeName == "RESPONSE" && xmlResponse.attributes.TYPE == "ok_unsub")
{
message = "OK. YOU HAVE BEEN REMOVED!";
}
else if (xmlResponse.nodeName == "RESPONSE" && xmlResponse.attributes.TYPE == "email_not_exist")
{
message = "YOU ARE NOT IN THE DATABASE!";
}
}
gotoAndPlay("loop");
_root.finestre.email = "";
}

ED IL QUEL "FRAME 2" AL QUALE VA IL MOVIE IN ATTESA DI RISPOSTA C'È UN MC DELLA DURATA DI 40'' ALLA CUI FINE VIENI SPEDITO AD UN FRAME CHE TI COMUNICA DI UN POSSIBILE ERRORE DI NETWORK. SE IL FORM NON RICEVE RISPOSTA ENTRO QUEI 40'' TI APPARE IL MESSAGGIO DI ERRORE, ALTRIMENTI APPENA RICEVUTO APPARIRÀ IL RESPONSO.

NEL CGI C'È UNA SVALANGATA DI SCRIPT(che se scrivo qui occupa tre pagine... ), E SE QUALCUNO È PRATICO POSSO SPEDIRLO VIA EMAIL COME IL FLA DEL RESTO:


Safari da sempre il network error, e prima dei 40''...
Any idea?!

p.s.
Si Nega, sono redivivo