Note that there are some explanatory texts on larger screens.

plurals
  1. POAdding row in a table with javascript = strange result in Chrome and safari
    primarykey
    data
    text
    <p>I've got to add a new row with it's content populated from an ajax query when I click on any row present. Everything is working well in ie8, ff3.6, opera11, but in chrome10 and safari5 the row are always shown as the first row even if the HTML code is well ordered.</p> <p>the javascript use is here:</p> <pre><code>jQuery('.tx_tacticinfocours_pi1_cour_line').click(function (){ if(running==false){ running=true; jQuery('.cour_detail_temp_inner').slideUp(500, function () { jQuery(this).parents('.cour_detail_temp').remove(); }); var td=jQuery(this).after('&lt;tr class="cour_detail_temp"&gt;&lt;td colspan="8" style="padding: 0pt;"&gt;&lt;div class="cour_detail_temp_inner" style="display: none;"&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;'); td=td.next().find('.cour_detail_temp_inner'); var url=jQuery(this).find('.tx_tacticinfocours_pi1_detail_link a').attr('href'); td.load(url,function(){ jQuery(this).slideDown(500,function(){running=false;}); }); } }); </code></pre> <p>and here is the HTML (it's typo3 template):</p> <pre><code>&lt;table class="tx_tacticinfocours_pi1_liste" border="0" cellspacing="0" cellpadding="0"&gt; &lt;tr&gt; &lt;th&gt;###TITRE_WEB###&lt;/th&gt; &lt;th&gt;###TITRE_PDF###&lt;/th&gt; &lt;th&gt;###TITRE_DETAILS###&lt;/th&gt; &lt;th&gt;###TITRE_SIGLE###&lt;/th&gt; &lt;th&gt;###TITRE_TITRE###&lt;/th&gt; &lt;th&gt;###TITRE_ENLIGNE###&lt;/th&gt; &lt;th&gt;###TITRE_ENSEIGNANT###&lt;/th&gt; &lt;th&gt;###TITRE_RESPONSABLE###&lt;/th&gt; &lt;/tr&gt; &lt;!-- ###COURS### begin --&gt; &lt;tr class="tx_tacticinfocours_pi1_cour_line"&gt; &lt;td class="tx_tacticinfocours_pi1_link"&gt;&lt;!-- ###COURS_LINK### begin --&gt;###COURS_WEB_IMAGE###&lt;!-- ###COURS_LINK### end --&gt;&lt;/td&gt; &lt;td class="tx_tacticinfocours_pi1_link"&gt;&lt;!-- ###PDF_LINK### begin --&gt;###PDF_IMAGE###&lt;!-- ###PDF_LINK### end --&gt;&lt;/td&gt; &lt;td class="tx_tacticinfocours_pi1_link tx_tacticinfocours_pi1_detail_link"&gt;&lt;!-- ###DETAILS_LINK### begin --&gt;###DETAILS_IMAGE###&lt;!-- ###DETAILS_LINK### end --&gt;&lt;/td&gt; &lt;td class="tx_tacticinfocours_pi1_sigle" nowrap&gt;###COURS_SIGLE###&lt;/td&gt; &lt;td class="tx_tacticinfocours_pi1_titre"&gt;###COURS_TITRE###&lt;/td&gt; &lt;td class="tx_tacticinfocours_pi1_enligne"&gt;###COURS_ENLIGNE###&lt;/td&gt; &lt;td class="tx_tacticinfocours_pi1_enseignant" nowrap&gt;###COURS_ENSEIGNANT###&lt;/td&gt; &lt;td class="tx_tacticinfocours_pi1_responsable" nowrap&gt;###COURS_RESPONSABLE###&lt;/td&gt; &lt;/tr&gt; &lt;!-- ###COURS### end --&gt; </code></pre> <p></p> <p>have you got any idea why it's doing so or any work around?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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