Note that there are some explanatory texts on larger screens.

plurals
  1. POError "validator is undefined" occured when edit drop down list using jEditable
    primarykey
    data
    text
    <p>I am using jeditable to do inline edit for my table. In my table i can edit text, datepicker and also dropdown.</p> <p>However, when i edit the dropdown, i will get error in firebug:</p> <pre><code>validator is undefined [Break On This Error] validator.settings[eventType] &amp;&amp; v...ype].call(validator, this[0], event); </code></pre> <p>Error is occured at either jquery.validate.js or jquery.js</p> <p>However, I did not call any validate method when I edit my drop down list.</p> <p>Following is the code to declare jeditable for dropdown:</p> <pre><code> // Drop down $('.dropdown').editable('@(Url.Action("Edit", "Stock"))', { data: getFoodTypesList(), type: 'select', indicator: 'saving...', event: 'dblclick', //tooltip: 'Double click to edit...', style: 'inherit', width: '240px', submit: '&lt;img src="@Url.Content("~/Content/Add_in_Images/ok.png")" alt="ok"/&gt;', cancel: '&lt;img src="@Url.Content("~/Content/Add_in_Images/cancel.png")" alt="cancel"/&gt;', // Use callback function to assign display text for the field after edit callback: function (value, settings) { var temp = getFoodTypeName(value); $(this).text(temp); $.ajax({ async: false, url: '@(Url.Action("GetStockTable", "Stock"))', type: 'GET', success: function (result) { $('#tableplaceholder').html(result); unitDropDown(); } }); } }); </code></pre> <p>Error occur everytime i click on the dropdown to select an option. Any idea what is the cause? Or is there anyway I can "by pass" the somehow auto validation for the dropdown?</p> <p>Please help... thank you very much...</p> <p>EDIT:</p> <p>Error shown in IE Developer Tool is different:</p> <pre><code> 'settings' is null or not an object </code></pre> <p>And it points to this line:</p> <pre><code> // Datepicker $('.storagedatepicker').editable('/Stock/Edit', { type: 'datepicker', indicator: 'saving...', </code></pre> <p>which is the jeditable for datepicker field... I cant see why is it related...</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.
 

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