I am using jeditable and i am loading a select dropdown from my server (it takes a few seconds to load via ajax) and i want to display a loading image or text while the ajax call is running so people know that the dropdown list is being loaded from the server.
I see there is the "indicator" property to show a loading image or text when saving the value to the server (which works perfect) but for some reason there is no working option to set a loading message when you are loading items for the select dropdown.
When i look into the plugin, i see a "loadtext" property that seems like it should be doing this but when i click on my text i don't see this "Loading . ." text displayed when it kicks off the ajax query to get the list of dropdown.
Here is my code:
$('#person').editable('/Project/UpdatePerson', {
loadurl: '/Project/GetPeople',
type: 'select',
loadtext: '<b>Loading Dropdown...<img src="/Content/Images/ajax-loader.gif" /></b>',
indicator: '<b>Saving...<img src="/Content/Images/ajax-loader.gif" /></b>',
submit: 'OK',
callback : function(value, settings) {
var json = $.parseJSON(value);
$(this).text(json.Value);
}
});
Any suggestions?