Ho aggiunto questo codice ma non so perchè non funziona aggiungendo $.ajax:Originariamente inviato da Vindav
L'unica soluzione è ajax, che problemi riscontri?
Nella pagine script.php ho questo:codice:<body> <div id="single"> <input type="text" value="test test"/> </div> </p> <!--<input type="text" /> </p> <input type="password" /> </p>--> <div id="fo">focusout fire</div> <div id="b">blur fire</div> <script> var fo = 0, b = 0; $("#single").focusout(function(e) { fo++; $("#fo") .text("focusout fired: " + fo + "x"); var value = (e.target.value ); alert( value ); $.ajax({ type: "POST", url: "script.php", data: { id: value } }) }) </script> </body>
Ecco l'errore che riscontro: Notice: Undefined index: id. Forse sbaglio ad usare ajaxcodice:<?php //echo $_POST['id_prezzo']; ?> <html> <body> <input type="hidden" name="txtbox1" id="txtbox1" /> <?php echo $_POST['id']; ?> </body> </html>![]()
Vorrei sottolineare che NON ho incluso la lib jquery nella pagina script.php

Rispondi quotando
