Note that there are some explanatory texts on larger screens.

plurals
  1. POmake a javascript work properly with internet explorer
    primarykey
    data
    text
    <p>I am trying to make this script work with internet explorer!! When i use it with chrome it work perfectly.</p> <p>I am using it trying to drag select table cells.</p> <p>My problem is when there more than 500 td in a table the internet explorer crashes using any IE 7,8,9.</p> <p>But when am using chrome explorer works fast and loads fast </p> <pre><code>$(function() { $(".selectable").selectable({ filter: "td.cs", stop: function() { var result = $("#select-result").empty(); var result2 = $("#result2"); $('.ui-selecting:gt(31)').removeClass("ui-selecting"); var $ui_selected = $('.ui-selected'); var selectedIds = $.map($ui_selected ,function(a){ return $(a).attr('id');}).join(','); confirmation(); //$ui_selected.length + " box selected. It will cost "+($ui_selected.length*150 + " Euros") function confirmation() { var answer = confirm($ui_selected.length + " box selected. It will cost "+($ui_selected.length*150 + " Euros")); if (answer){ window.open ("form.php?id="+ selectedIds,"mywindow","menubar=no,resizable=no,scrollbar=no,width=650,height=700"); } else{ } } $('#divmsg').html($ui_selected.length + " box selected") $('#divmsg2').html($ui_selected.length*150+ " €") if ($ui_selected.length &gt; 90) { alert("Selection of only 90 boxes allowed"); $ui_selected.each(function(i, e) { if (i &gt; 3) { $(this).removeClass("ui-selected"); } }); return; } $(".ui-selected", this).each(function() { var cabbage = this.id + ', '; result.append(cabbage); }); var newInputResult = $('#select-result').text(); newInputResult = newInputResult.substring(0, newInputResult.length - 1); result2.val(newInputResult); } }); }); </code></pre> <p>this is the demo: <a href="http://megatrixads.com/cbm" rel="nofollow">http://megatrixads.com/cbm</a></p> <p>Fiddle Demo: <a href="http://jsfiddle.net/dw6Hf/65/" rel="nofollow">http://jsfiddle.net/dw6Hf/65/</a></p> <p>Any idea why it wont work?</p> <p>Thanks</p>
    singulars
    1. This table or related slice is empty.
    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.
    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