Visualizzazione dei risultati da 1 a 2 su 2
  1. #1
    Utente di HTML.it
    Registrato dal
    Jun 2002
    Messaggi
    585

    mailto: link in subject e body

    Ciao a Tutti,
    ho il seguente problema:

    ho la mia form con un pulsante "Close",
    quando uno schiaccia il pusante parte un' email di chiusura del Ticket;
    fin qui tutto OK !!
    Vorrei pero' che nel subject o nel body comparisse la scritta con anche l' hyperlink or url relativo al ticket stesso di chiusura:

    E' possibile ?? Come fare ??
    Non son capace di trovare la sintassi per mettere il link al numero di ticket chiuso


    Grazie in anticipo x l' aiuto !!!!

    <head>
    function notify(n) {
    if (n==10) {
    document.FrontPage_Form1.action = "mod_db.asp"
    document.FrontPage_Form1.submit();
    location.href = "mailto:a.b@alice.it?subject=The Ticket Number "+document.getElementById('rec_mod').value+" has been CLOSED !&body=The Ticket Number "+document.getElementById('rec_mod').value+" has been CLOSED !"
    return true; }
    }

    </head>

    <form method="POST" webbot-onSubmit language="JavaScript" name="FrontPage_Form1">
    ...
    <input type="submit" id="final" name="final" value="Close" onClick="notify(10)"></td>
    ...
    </form>

  2. #2
    Utente di HTML.it
    Registrato dal
    Jun 2002
    Messaggi
    585
    Guardando in internet,
    sono riuscito a copiare una soluzione che mi ha permesso di risolvere il problema,
    mettendo il link non nel subject ma nel body di mailto:

    <head>
    function notify(n) {
    if (n==10) {
    url="http://nome_server/index.asp?rec=";
    document.FrontPage_Form1.action = "mod_db.asp"
    document.FrontPage_Form1.submit();
    location.href = "mailto:a.b@alice.it?subject=The Ticket Number "+document.getElementById('rec_mod').value+" has been CLOSED !&body=The Ticket Number "+url+document.getElementById('rec_mod').value + " has been CLOSED !"
    return true; }
    }

    </head>

    <form method="POST" webbot-onSubmit language="JavaScript" name="FrontPage_Form1">
    ...
    <input type="submit" id="final" name="final" value="Close" onClick="notify(10)"></td>
    ...
    </form>



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 © 2024 vBulletin Solutions, Inc. All rights reserved.