Note that there are some explanatory texts on larger screens.

plurals
  1. POKendo ui and jQuery UI conflict
    primarykey
    data
    text
    <p>I used Kendo UI for my date picker and i want to use jQuery UI on my autocomplete. </p> <p>After I insert my jquery auto complete on my code this error is given:</p> <blockquote> <p>Uncaught TypeError: Cannot read property 'element' of undefined</p> </blockquote> <p>Is this a compatibility issue?</p> <p>here is my combination of javascript code</p> <pre><code>$(document).ready(function(){ $(".auto_c").autocomplete({ source: "purchaseorder_controller/get_data", minLength: 3, }); }) &lt;script type="text/javascript"&gt; //automatic computation in rows $('[id^=qty],[id^=price],#tin_number').on('change',function() { var index = this.id.match(/\d+/)[0]; var qty = parseInt($('#qty'+index).val()); var price = parseFloat($('#price'+index).val()); var disc = $("#discount").val(); var lessitem = $("#less").val(); var total = 0; $('#total'+index).val((qty * price ? qty * price : 0).toFixed(2)); var total = 0; $('[id^=total]').each(function(index){ total+=parseFloat($(this).val()?$(this).val():0); }); var totalAll = $('#sum_of_total').val(total.toFixed(2)); var vatable = 0; var vatable_amt = 0; var totalVat = 0; var computeDisc = 0; var computeLess =0; if($("#tin_number").val().length != 0){ vatable = total / 1.12; vatable_amt = vatable * 0.12; totalVat = vatable + vatable_amt; }else{ totalVat = total; } $('#vatable').val(vatable.toFixed(2)); $("#vatable_amount").val(vatable_amt.toFixed(2)); // var gtotal = $("#gtotal").val(totalVat.toFixed(2)); var gtotal = +$("#gtotal").val(totalVat.toFixed(2)).val(); $("#total_amt_due").val(gtotal.toFixed(2)); }); $("#discount").on('change',function(){ var totalSales = $("#gtotal").val(); var discountedAmt = $("#discount").val(); var returnAmt = $("#less").val(); var computeTotalDisc = (totalSales - discountedAmt) - returnAmt; $("#total_amt_due").val(computeTotalDisc.toFixed(2)); }); $("#less").on('change',function(){ var totalSalesx = ($("#gtotal").val() - $("#less").val() - $("#discount").val()); $("#total_amt_due").val(totalSalesx.toFixed(2)); }); //AUTO ASSIGN TO SUPPLIER INFO $('#supplier_list').bind('change', function(){ var var_add_category ='&lt;?php echo site_url("purchaseorder_controller/supplier_details"); ?&gt;'; $.ajax({ type:'POST', url: var_add_category, data:{ id: $(this).val() }, dataType:'json', success:function(d){ var bankname = d['bankname']; var bankbranch = d['bankbranch']; $("[name=spaddress]").val(d['spaddr']); $("[name=tin]").val(d['sptinno']); $("[name=contactperson]").val(d['pricontactname']); $("[name=contactnumber]").val(d['sptelno']); $("[name=bank]").val(bankname + ' - ' + bankbranch); $("[name=account_name]").val(d['bankacctname']); $("[name=account_no]").val(d['bankacctno']); } }); }); $("[id^=code]").on('change',function(){ var index = this.id.match(/\d+/)[0]; var validate = $('#code'+index).val(); if(validate != ''){ $("#qty"+index).removeAttr('readonly'); $("#price"+index).removeAttr('readonly'); } }); $("[id^=code]").on('change',function(){ var index = this.id.match(/\d+/)[0]; var validate = $('#code'+index).val(); if(validate == ''){ $("#qty"+index).prop('readonly', true); $("#price"+index).prop('readonly', true); } }); //prevent character entering in numeric textbox $('[id^=qty],[id^=price],[id=discount]').keydown(function(e){ var key = e.which; // backspace, tab, left arrow, up arrow, right arrow, down arrow, delete, numpad decimal pt, period, enter if (key != 8 &amp;&amp; key != 9 &amp;&amp; key != 37 &amp;&amp; key != 38 &amp;&amp; key != 39 &amp;&amp; key != 40 &amp;&amp; key != 46 &amp;&amp; key != 110 &amp;&amp; key != 190 &amp;&amp; key != 13){ if (key &lt; 48){ e.preventDefault(); } else if (key &gt; 57 &amp;&amp; key &lt; 96){ e.preventDefault(); } else if (key &gt; 105) { e.preventDefault(); } } }); $('[id^=qty],[id^=price],[id=less]').keydown(function(e){ var key = e.which; // backspace, tab, left arrow, up arrow, right arrow, down arrow, delete, numpad decimal pt, period, enter if (key != 8 &amp;&amp; key != 9 &amp;&amp; key != 37 &amp;&amp; key != 38 &amp;&amp; key != 39 &amp;&amp; key != 40 &amp;&amp; key != 46 &amp;&amp; key != 110 &amp;&amp; key != 190 &amp;&amp; key != 13){ if (key &lt; 48){ e.preventDefault(); } else if (key &gt; 57 &amp;&amp; key &lt; 96){ e.preventDefault(); } else if (key &gt; 105) { e.preventDefault(); } } }); &lt;/script&gt; </code></pre> <p>Here is the list of my JS</p> <pre><code> &lt;!--AUTO COMPLETE--&gt; &lt;link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css"&gt; &lt;script src="http://code.jquery.com/jquery-1.9.1.js"&gt;&lt;/script&gt; &lt;script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"&gt;&lt;/script&gt; &lt;!--JQUERY UI --&gt; &lt;link rel="stylesheet" type="text/css" href="&lt;?php echo base_url(); ?&gt;./resources/jquery/themes/base/jquery.ui.all.css" /&gt; &lt;script type="text/javascript" src="&lt;?php echo base_url(); ?&gt;./resources/jquery/jquery-1.9.1.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="&lt;?php echo base_url(); ?&gt;./resources/jquery/ui/jquery.ui.position.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" language="javascript" src="&lt;?php echo base_url(); ?&gt;/resources/datatables/media/js/jquery.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" language="javascript" src="&lt;?php echo base_url('resources/jquery/ui/minified/jquery-ui.min.js'); ?&gt;"&gt;&lt;/script&gt; &lt;script type="text/javascript" language="javascript" src="&lt;?php echo base_url(); ?&gt;/resources/datatables/media/js/jquery.dataTables.js"&gt;&lt;/script&gt; &lt;!-- EASY UI --&gt; &lt;link rel="stylesheet" type="text/css" href="&lt;?php echo base_url(); ?&gt;./resources/easyui/themes/metro-blue/easyui.css" /&gt; &lt;link rel="stylesheet" type="text/css" href="&lt;?php echo base_url(); ?&gt;./resources/easyui/themes/icon.css" /&gt; &lt;script type="text/javascript" src="&lt;?php echo base_url(); ?&gt;./resources/easyui/jquery.easyui.min.js"&gt;&lt;/script&gt; &lt;!-- AJAX FORM VALIDATION --&gt; &lt;script type="text/javascript" language="javascript" src="&lt;?php echo base_url(); ?&gt;/resources/jquery.validate.min.js"&gt;&lt;/script&gt; &lt;!-- KENDO UI --&gt; &lt;link href="&lt;?php echo base_url(); ?&gt;resources/kendo/styles/kendo.common.min.css" rel="stylesheet" /&gt; &lt;link href="&lt;?php echo base_url(); ?&gt;resources/kendo/styles/kendo.silver.min.css" rel="stylesheet" /&gt; &lt;script src="&lt;?php echo base_url(); ?&gt;resources/kendo/js/kendo.all.min.js"&gt;&lt;/script&gt; </code></pre>
    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.
 

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