Codice PHP:
public void invia(String s, String s1)
{
int i = Integer.parseInt(lava.getParameter("basepix"));
int j = Integer.parseInt(lava.getParameter("altpix"));
if(!enable)
{
lava.info.setText("Selezionare taglio !");
return;
}
String s2 = "?edizione=" + s + "&pagina=" + s1 + "&foto=" + taglio;
s2 = s2 + "&nomefoto=" + lava.getParameter("foto");
s2 = s2 + "&nomeutente=" + lava.getParameter("nomeutente");
s2 = s2 + "&x1=" + (xpos * i) / IMAGEX + "&y1=" + (ypos * j) / IMAGEY + "&x2=" + ((xpos + largh + 1) * i) / IMAGEX + "&y2=" + ((ypos + alt + 1) * j) / IMAGEY + "&basepix=" + i + "&altpix=" + j + "&basemmt=" + taglioX + "&altmmt=" + taglioY + "&hmirror=" + hmirror + "&vmirror=" + vmirror + "&rotaz=" + rotaz + "&colori=" + (!scalagrigio);
s2 = s2.replace(' ', '+');
System.out.println("\n\rSTRINGA:" + s2);
try
{
URL url = new URL("http://" + lava.getCodeBase().getHost() + lava.getParameter("cgi") + s2);
lava.getAppletContext().showDocument(url);
System.out.println("Ci sta provando e sembra ci riesca" + url);
lava.showStatus("Registazione in corso. Attendere conferma.");
}
catch(Exception exception)
{
lava.showStatus("ERRORE WEB:" + exception);
System.out.println("Non sembra ci riesca...:" + exception);
}
}
Ho questa parte di codice, che sembra non funzionare sempre... o meglio, con certi browser e certi sistemi operativi sì, con altri no.
L'istruzione che effettivamente sembra non funzionare è:
lava.getAppletContext().showDocument(url);
Sul mio Win sia su IE che FF, funge tutto, mentre su FF sopra un Mac, questa riga non dà effetti.
Secondo voi da cosa dipende?!?!?!?