Salve a tutti....piccolo ho problemino:
devo integrare a questo script:
codice:<script language="JavaScript"> <!-- function check(){ var test; test="true"; if (test=="true") { if (document.ricerca.parole.value=="") { alert("Devi specificare almeno una parola da cercare!"); document.ricerca.parole.focus(); test="false"; } } if (test=="true") { if (!(document.ricerca.cliente.checked) && !(document.ricerca.data.checked ) && !(document.ricerca.autore.checked) && !(document.ricerca.opera.checked) && !(document.ricerca.datasecolo.checked)){ alert("Devi specificare almeno un campo dove cercare!"); test="false"; } } if (test=="true") { document.ricerca.action="select_keywords.asp"; document.ricerca.submit(); } } //--> </script> <form name="ricerca" method="post"> <input type="text" name="parole" size="30" value="<%=parole%>"> <input type="checkbox" name="cliente" value="cliente"/> <input type="checkbox" name="data" value="data"/> <input type="checkbox" name="autore" value="autore"/> <input type="checkbox" name="opera" value="opera"/> <input type="checkbox" name="datasecolo" value="datasecolo"/> <input type="checkbox" name="thumbs" id="thumbs" value="thumbs"/> <input type="button" value="Conferma" onclick="javascript: check();"/> <input type="reset" name="reset" value="Annulla"/> </form>
La stringa aggiunta è:
pero' nello script principale sopra vorrei che se l'utentecodice:<input type="checkbox" name="thumbs" id="thumbs" value="thumbs"/>
spunta il check di thumbs mi va ad un'altra pagina ed il resto rimane
invariato...
e' possibile???![]()
![]()

Rispondi quotando