Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy Ajax request with jQuery can't be processed?
    text
    copied!<p>here is the fact, i have this 2 files:</p> <p>page with an empty div #responsecontainer with at the end, in this script:</p> <pre><code>&lt;script type="text/javascript"&gt; jQuery(document).ready(function ($) { $('#tabs').tab(); $("#datatableindirizzi").click(function() { $.ajax({ type: "GET", url: "display.php", dataType:"html", success: function(response){ $("#responsecontainer").html(response); error : function(textStatus) { alert(textStatus); } } }) }) }); </code></pre> <p>(the div container is under a bootstrap tab, but i don't think this is a problem)</p> <p>and the display.php file:</p> <pre><code>&lt;?php //include presentation file $con = mysql_connect("*********" , "*******" , "********" ); if(!$con) { die('could not connect'. mysql_error()); } mysql_select_db("minigest_dev" , $con); $query = " SELECT * FROM anag_c_indirizzi"; $result = mysql_query($query, $con); $row = mysql_fetch_row($result); echo " &lt;div class='controls controls-row'&gt; &lt;div class='span2'&gt; &lt;label&gt;c/o&lt;/label&gt; &lt;input type='text' class='input-small' placeholder='DA METTERE' value=''&gt; &lt;/div&gt; &lt;div class='span3'&gt; &lt;label&gt;Indirizzo&lt;/label&gt; &lt;input type='text' class='input-large' placeholder='Digita indirizzo..' value='$row[6]'&gt; &lt;/div&gt; &lt;div class='span2'&gt; &lt;label&gt;n°&lt;/label&gt; &lt;input type='text' class='input-small' placeholder='num' value='$row[7]'&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class='controls controls-row'&gt; &lt;div class='span3'&gt; &lt;label&gt; Località &lt;/label&gt; &lt;select&gt; &lt;option&gt;1 da mettere&lt;/option&gt; &lt;option&gt;2&lt;/option&gt; &lt;option&gt;3&lt;/option&gt; &lt;option&gt;4&lt;/option&gt; &lt;/select&gt; &lt;/div&gt; &lt;div class='span2'&gt; &lt;label&gt;C.A.P&lt;/label&gt; &lt;input type='text' class='input-small' placeholder='cap' value='$row[8]'&gt; &lt;/div&gt; &lt;div class='span2'&gt; &lt;label&gt;Prov&lt;/label&gt; &lt;input type='text' class='input-mini' placeholder='cap' value='$row[11]'&gt; &lt;/div&gt; &lt;div class='span3'&gt; &lt;label&gt;Nazione&lt;/label&gt; &lt;input type='text' placeholder='Inserisci nazione..' value='$row[12]'&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class='controls controls-row'&gt; &lt;div class='span3'&gt; &lt;label&gt;Telefono&lt;/label&gt; &lt;input type='text' placeholder='numero di telefono' value='$row[13]'&gt; &lt;/div&gt; &lt;div class='span3'&gt; &lt;label&gt;Fax&lt;/label&gt; &lt;input type='text' placeholder='numero fax' value='$row[14]'&gt; &lt;/div&gt; &lt;div class='span3'&gt; &lt;label&gt;Mail&lt;/label&gt; &lt;input type='text' placeholder='indirizzo mail' value='$row[15]'&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class='controls controls-row'&gt; &lt;div class='span3'&gt; &lt;label&gt;Web&lt;/label&gt; &lt;input type='text' placeholder='sito web' value='$row[16]'&gt; &lt;/div&gt; &lt;/div&gt;"; </code></pre> <p>?></p> <p>why when i click on the table that should fire the ajax script nothing happens??? the database call are all correct. what am i missing?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload