jquery-ui.js:12794 Uncaught TypeError: Cannot read property ‘_focusTabbable’ of
Scrivi le tue richieste di aiuto nella sezione relativa.
Richieste di aiuto generiche o riguardanti script o tutorial creati dalla community jQuery Italia.
- Questo topic ha 0 risposte, 1 partecipante ed รจ stato aggiornato l'ultima volta 8 mesi, 2 settimane fa da
ans66.
Stai visualizzando 1 post (di 1 totali)
- AutorePost
- 4 Gennaio 2019 alle 18:33 #7249
ans66
PartecipanteBuon giorno a tutti,
Questo errore che mi appare quando clicco su un textbox di una tabella dopo aver chiuso una UI DialogBox. Prima di chiedere aiuto ho provato a trovare tutte le possibile soluzioni in rete ma purtroppo senza esito.
Di seguito codice della UI DialogBox (che credo sia incriminata): function QualeDB (url){ var divFordialog='<div><input type="checkbox" name="db" id="db" value="db" checked /> Data Base Anno Corrente <br /><input type="checkbox" name="dbst" id="dbst" value="dbst"/> Data Base Anni Passati <br /></div>'; var mydialog=$(divFordialog) .dialog({ autoOpen: false, modal: true, title: "In quale data base vuoi cercare", closeOnEscape: false, open: function(event, ui) { $(".ui-dialog-titlebar-close").hide(); }, buttons: [ { text: "OK", id: "okbtnid", click: function() { DB_AnnoCorrente_Is_Checked( $('#db').is(":checked"),url ); $( this ).dialog( "destroy" ).remove(); } } ], position: { my: "center", at: "center", of: $("body"), within: $("body") } }); return mydialog; } funzione avviata dal dialog: <pre class="lang:js decode:true " title="funziona che lancia la ricerca records nel database appropriato">function DB_AnnoCorrente_Is_Checked(Ischecked, url) { if (Ischecked==true) {DbStorico=false; GetData("trova", url);} else { DbStorico=true; url +="&db=entusc_stor"; GetData("trova", url)}; } Tabella in php con TextBox: <pre class="lang:php decode:true " title="tabella con textBox"><!DOCTYPE html> <html> <head> <title>Tabella Entrate Uscite</title> <link rel="stylesheet" href="css/styles.css"> <link rel="stylesheet" href="css/jquery-ui.css"> <link rel="stylesheet" href="css/tabGEU_style.css"> <script src="js/jquery.js"></script> <script src="js/jquery-ui.js"></script> <script src="js/tabentusc.js"></script> <script src="js/menu.js"></script> </head> <body> <div class="tabelle" align="center" > <table id="tab" width="55%" height="8%" border="1" > <tr > <td align="left" width="100%" > <font>Tabella Entrate Uscite </font> </td> </tr> </table> <table id="tab" width="55%" height="40%" border="1" > <tr > <td align="left" > <p>Date: <input type="text" id="datepicker" value="<?php if(!empty($array)){ $res=explode('-',$array[$nrRec][0]) ; echo $res[2]."/".$res[1]."/".$res[0]; } ?>" /> <input id="mese" type="text" name="mese" size="6" value="<?php if(!empty($array)) echo MonthName($res[1]); ?>"> <input id="anno" type="text" name="anno" size="2" value="<?php if(!empty($array)) echo $res[0]; ?> "></p> </td> </tr> <tr > <td align="left" > <font>Soggetti: </font><input type="text" id="soggetto" name="soggetto" value="<?php if(!empty($array)) echo $array[$nrRec][1]; ?>"> <select id="soggetti" name="soggetti"> <option value="inserisci">inserisci</option> <?php if(!empty($resultSog)) { $options=""; $max = sizeof($resultSog); for($i = 0; $i < $max;$i++) { if ($resultSog[$i][1]!=trim($array[$nrRec][1])) { $options.= '<option value="' . $resultSog[$i][0] . '">' . $resultSog[$i][1] . '</option> '; } else { $options.= '<option value="' . $resultSog[$i][0] . '" selected>' . $resultSog[$i][1] . '</option> '; } } $options.='<option value="'.strtoupper("nuovo soggetto").'">'.strtoupper("nuovo soggetto").'</option>'; echo $options; } ?> </select> </td> </tr> <tr > <td align="left" > <font>Valore: </font><input type="text" id="valore" name="valore" value="<?php if(!empty($array)){ setlocale(LC_MONETARY, 'it_IT'); $val=$array[$nrRec][2]; echo "€ ".sprintf("%01.2f", $val); } ?>"> </td> </tr> <tr > <td align="left" > <font>Categoria: </font><input type="text" id="categoria" name="categoria" value="<?php if(!empty($array)) echo $array[$nrRec][3]; ?>"> <select id="categorie" name="categorie"> <option value="categorie">inserisci</option> <?php if(!empty($resultCat)) { $max = sizeof($resultCat); for($i = 0; $i < $max;$i++) { if ($resultCat[$i][1]!=trim($array[$nrRec][3])) { $options.= '<option value="' . $resultCat[$i][0] . '">' . $resultCat[$i][1] . '</option> '; } else { $options.= '<option value="' . $resultCat[$i][0] . '" selected>' . $resultCat[$i][1] . '</option> '; } } $options.='<option value="'.strtoupper("nuova categoria").'">'.strtoupper("nuova categoria").'</option>'; echo $options; } ?> </select> </td> </tr> <tr > <td align="left" > <font>Dove Acquistato: </font><input type="text" id="doveacquis" name="doveacquis" value="<?php if(!empty($array)) echo $array[$nrRec][4]; ?>"> <select id="doveacq" name="doveacq"> <option value="doveacquistato">inserisci</option> <?php if(!empty($resultDove)) { $max = sizeof($resultDove); for($i = 0; $i < $max;$i++) { if ($resultDove[$i][1]!=trim($array[$nrRec][4])) { $options.= '<option value="' . $resultDove[$i][0] . '">' . $resultDove[$i][1] . '</option> '; } else { $options.= '<option value="' . $resultDove[$i][0] . '" selected>' . $resultDove[$i][1] . '</option> '; } } $options.='<option value="'.strtoupper("nuovo doveacquistato").'">'.strtoupper("nuovo doveacquistato").'</option>'; echo $options; } ?> </select> </td> </tr> </table> <table id="tab" width="55%" height="8%" border="1" > <tr > <td id="one" align="center" width="3%" > <div class="uno" title="Primo" > </div> </td> <td id="two" align="center" width="3%" > <div class="due" title="Indietro" > </div> </td> <td id="three" align="center" width="3%" > <div class="tre" > <input id="nrrec" name="nrrec" type="text" size="3" value="<?php if(!empty($array)) echo $nrRec+1; else echo "0"; ?>"> </div> </td> <td id="four" align="center" width="6%" > <div class="quattro" > <font id="totrec">di [<?php echo $num_rows; ?> ] </font > <input type="hidden" id="totR" name="totR" value="<?php echo $num_rows; ?>" /> </div> </td> <td id="five" width="3%" > <div class="cinque" title="Avanti" > </div> </td> <td id="six" width="3%" > <div class="sei" title="Ultimo" > </div> </td> <td id="seven" width="3%" > <div class="sette" title="Inserisci" > </div> </td> <td id="eight" width="3%" > <div class="otto" title="Conferma" > </div> </td> <td id="nine" width="3%" > <div class="nove" title="Cancella" > </div> </td> <td id="ten" width="3%" > <div class="dieci" title="Aggiorna" > </div> </td> <td id="eleven" width="3%" > <div class="undici" title="Modifica"> </div> </td> <td id="twelve" width="3%" > <div class="dodici" title="Cerca" > </div> </td> <td id="thirteen" width="3%" > <div class="tredici" title="Vai al Record" > </div> </td> <td id="fourteen" width="3%" > <div class="quattordici" title="Delete" > </div> </td> <td id="fifteen" width="3%" > <div class="quindici" title="Chiudi" > <?php if(!empty($array))$id=$array[$nrRec][5]; else $id=0; echo ' <input type="hidden" id="IdGEU" name="IdGEU" value="'.$id.'" /> <input type="hidden" id="server" name="server" value="'.$server.'" /> <input type="hidden" id="user" name="user" value="'.$user.'" /> <input type="hidden" id="passw" name="passw" value="'.$passw.'" /> <input type="hidden" id="nrRsalvato" name="nrRsalvato" value="" />'; ?> </div> </td> </tr> </table> </div> <div id="indivphp" style="visibility: hidden"> <div id="dialogPHP" title="" value="" > </div> </div> <div id="indivphp2" style="visibility: hidden"> <div id="dialogPHP2" title="" value="" > </div> </div> <div id="indivphp3" style="visibility: hidden"> <div id="dialogPHP3" title="" value="" > </div> </div> <span id="div_hidden" style="visibility: hidden"> <div id="scelta"></div> <div id="scelta2"></div> <div id="input" title="Parola da cercare" value=""></div> <div id="data" title="Data da cercare" value=""></div> <div id="dialog" title="Data da trovare"> <input type="text" id="datepicker2" /><input type="submit" value="|||" id="btnDate"> </div> <input type="submit" id="opener" style="visibility: hidden" > </span> <div id="spin"> </div> </body> </html>
Grazie davvero per l’aiuto che mi potrete dare. Fatemi sapere se necessitate visionare ulteriore codice.
- AutorePost
Stai visualizzando 1 post (di 1 totali)
- Devi essere connesso per rispondere a questo topic.