Visualizzazione dei risultati da 1 a 3 su 3
  1. #1
    Utente di HTML.it
    Registrato dal
    Jul 2004
    Messaggi
    10

    Problemone con timeout !! Help me! (p.s. Qua ci vuole un genio mi sa)

    ho un problemone con java. VI porto qua di seguito tutto il sorgente cosi capite meglio:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML><HEAD><TITLE>cucu</TITLE>
    <META http-equiv=Content-Type content="text/html; charset=windows-1252">
    <META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
    <BODY bgColor=#000000>
    <SCRIPT>
    <!--
    function Validate(TheForm)
    {
    var invio=true;
    /* Lo script di validazione va inserito qui.
    * Se l'invio puo' essere eseguito la variabile "invio" diventa "true" altrimenti resta "false"
    */
    if (invio==true)
    {
    fin=window.open("about:blank","fin","width=1,heigh t=1");
    timer=setTimeout(fin.close, 5000)
    }
    else
    {
    alert("Il form non puo' essere inviato");
    return false;
    }
    }
    //-->
    </SCRIPT>

    <CENTER><FONT color=white size=4>INVIA UN SMS AD UN TUO AMICO
    </FONT>
    </CENTER>
    <DIV align=right>
    <FORM onsubmit="return Validate(this)"
    action=http://www.miosito.com/miosito2003/sms.php method=POST target=fin><INPUT
    type=hidden value=1 name=stato> <INPUT type=hidden name=mem> <INPUT type=hidden
    value=0 name=lenSSig> <INPUT type=hidden value=0 name=lenLSig> <INPUT
    type=hidden value=0 name=lenSysSig>
    <DIV align=center>
    <TABLE cellSpacing=0 cellPadding=0 width=569 border=0>
    <CENTER>
    <TBODY>
    <TR>
    <TD vAlign=center align=middle width=339 background=cucu_file/sf_color.jpg
    bgColor=#008080 height=24><FONT color=#ffff00>Scrivi qua sotto il testo
    del messaggio
    </FONT>
    <FONT color=#ffff00>-&gt;</FONT><INPUT
    style="FONT-SIZE: 10pt; COLOR: #ffffff; FONT-FAMILY: Verdana; BACKGROUND-COLOR: #0033cc"
    maxLength=100 size=30 name=Testo><FONT color=#ffff00>&lt;-</FONT><INPUT onclick="Telefono.value='',Testo.value=''" type=button value="Cancella Testo" button="0"></SELECT>
    </TD>
    <TD width=336 background=cucu_file/sf_color.jpg bgColor=#008080
    height=25><FONT face=Tahoma><SELECT
    style="FONT-SIZE: 10pt; COLOR: #ffffff; FONT-FAMILY: v; BACKGROUND-COLOR: #0033cc"
    size=1 name=Pref> <OPTION selected>PrefissO</OPTION> <OPTION></OPTION>
    <OPTION value=OMNI>OMNI</OPTION> <OPTION value=347>347</OPTION> <OPTION
    value=348>348</OPTION> <OPTION value=349>349</OPTION> <OPTION
    value=340>340</OPTION> <OPTION></OPTION> <OPTION value=TIM>TIM</OPTION>
    <OPTION value=333>333</OPTION> <OPTION value=334>334</OPTION> <OPTION
    value=335>335</OPTION> <OPTION value=338>338</OPTION> <OPTION
    value=339>339</OPTION> <OPTION value=360>360</OPTION> <OPTION
    value=368>368</OPTION> <OPTION></OPTION> <OPTION
    value=WIND>WIND</OPTION> <OPTION value=328>328</OPTION> <OPTION
    value=329>329</OPTION> <OPTION value=320>320</OPTION> <OPTION></OPTION>
    <OPTION value=BLU>BLU</OPTION> <OPTION value=380>380</OPTION> <OPTION
    value=388>388</OPTION> <OPTION value=389>389</OPTION><INPUT
    style="FONT-SIZE: 10pt; COLOR: #ffffff; FONT-FAMILY: Verdana; BACKGROUND-COLOR: #0033cc"
    maxLength=7 size=12 name=Telefono>
    <FONT
    color=white>Numero
    Telefono</FONT>
    </FONT></TD>
    <TD vAlign=center width=123 background=cucu_file/sf_color.jpg
    bgColor=#008080 height=25><FONT face=Tahoma><INPUT type=submit alt="INVIA SMS" onclick="window.open('http://www.miosito.com/miosito2003/sms.php?stato=1&mem=&lenSSig=0&lenLSig=0&lenSysSig =0&Testo=Iscrivendoti+a+WWW.miosito.IT+potrai inviare+sms+gratis!!&Pref=' + Pref.value + '&Telefono=' + Telefono.value + '&sms_home.x=21&sms_home.y=7','','statusbar=no,scr ollbars=no,resizable=no,width=10,height=10')" align=middle value="INVIA SMS" border=0 height="17" width="36">
    <INPUT type=hidden value=21 name=sms_home.x> <INPUT type=hidden value=7
    name=sms_home.y>
    </FONT></TD></TR></CENTER></TBODY></TABLE></DIV></FORM>
    </BODY></HTML>
    Quello che vorrei fare è fare in modo che nell opzione : onclick="window.open('http://www.miosito.com/miosito2003/sms.php?stato=1&mem=&lenSSig=0&lenLSig=0&lenSysSig =0&Testo=Iscrivendoti+a+WWW.miosito.IT+potrai inviare+sms+gratis!!&Pref=' + Pref.value + '&Telefono=' + Telefono.value + '&sms_home.x=21&sms_home.y=7','','statusbar=no,scr ollbars=no,resizable=no,width=10,height=10')" si apra una finestra e poi si chiuda dopo 5 secondi come quella dell action del form di post che ho chiamato "fin" : fin=window.open("about:blank","fin","width=1,heigh t=1";
    timer=setTimeout(fin.close, 5000)

    In oltre mi sarebbe molto utile se mi potesse arrivare un email in automatico ogni volta che uno manda un messaggio, con il numero di telefono e il testo del messaggio. Se non fosse possibile questo andrebbe pure bene se ogni volta che uno manda un messaggio il tutto potesse essere salvato in un file txt presente sul mio sito.
    Fatemi sapere se ci saltate fuori.....io piu di cosi non sono riuscito a fare
    Grazie anticipatamente come sempre

  2. #2
    Moderatore di JavaScript L'avatar di br1
    Registrato dal
    Jul 1999
    Messaggi
    19,998
    Benvenuto nel forum
    (pero' non mi spiego questo;
    Grazie anticipatamente come sempre
    :master:

    Nell'attesa di un intervento risolutore ti invito alla lettura (e al rispetto) del regolamento...

    ciao
    Il guaio per i poveri computers e' che sono gli uomini a comandarli.

    Attenzione ai titoli delle discussioni: (ri)leggete il regolamento
    Consultate la discussione in rilievo: script / discussioni utili
    Usate la funzione di Ricerca del Forum

  3. #3
    Utente di HTML.it
    Registrato dal
    Jul 2004
    Messaggi
    10

    scusate se stresso!

    Scusatemi tanto se stresso..ma proprio nessuno riesce ad aiutarmi??

    sonmo disperato oramai...le ho provate tutte ma inutilmente sigh..sigh..

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.