jQWidgets Forums
jQuery UI Widgets › Forums › Editors › Input, Password Input, TextArea, ColorPicker, Rating, TagCloud, Loader › My input stop working
This topic contains 2 replies, has 2 voices, and was last updated by tompasto 10 years, 9 months ago.
-
AuthorMy input stop working Posts
-
Hello i did a web interface few weeks ago and everything was working fine.
But now one of my jqx.input stop working (i test on Chrome and firefox on different machine).
here my code:
var WLcode = { datatype: "json", datafields: [ { name: 'CODE'}, { name: 'WLdescr'}, ], url: '/myUrl/query.php?query=showWLcodes', async: false }; var dataAdapter = new $.jqx.dataAdapter(WLcode); $("#Hospitalno").jqxInput({source: function (queries, response) { var dataAdapter3 = new $.jqx.dataAdapter (Patient, { autoBind: true, formatData: function (data) { data.queries = queries; return data; }, loadComplete: function (data) { if (data.length > 0) { response($.map(data, function (item) { return item.Patient; <strong>Console.log return correctly item.Patient So Sql is Ok</strong> })); } } } ); }, placeHolder: "Entrer un nom ou num de dossier",displayMember:'Patient', valueMember:'HOSPITAL_NO', height: 25, width: 250, minLength: 1, items: 15, renderer: function (itemValue, inputValue) { var value = itemValue.split("-"); return value[0]; <strong>Console.log give me nothing anymore on value or itemValue</strong> } }); $("#Hospitalno").on('select', function (event) { if (event.args) { var item = event.args.item; if (item) { var value = item.label.split("-"); $('#Nom').html('<B><SPAN style="font-familly:Arial; font-size:15px; color:#F13338;">'+value[1]+'</SPAN></B>'); $('#SetHospitalNo').val(value[0]); var data='query=FilterArchive&Hospital_NO='+value[0] ; $.ajax({ dataType: 'json', url: '/SaludWeb/data/query.php', data: data, success: function (data, status, xhr) { if (data!=null){ $('#SetArchive').val('1'); $("#Archive").html('<B><SPAN style="font-familly:Arial; font-size:15px; color:#F13338;"> DOSSIER ARCHIVÉ MODIFICATION IMPOSSIBLE </SPAN>'); ShowGrid(); $("#ResultGrid").jqxGrid({editable: false}); } else{ $("#Archive").html(''); $('#SetArchive').val('0'); ShowGrid(); } }}) } } });
TX FOR YOU HELP !
Hello tompasto,
What functionality has stopped working? If you mean the input no longer retrieves data from an external web service, this most probably relates to the service itself, not jqxInput. As you can see from the demo Auto-Complete, the widget retrieves external data successfully.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/Hello Dimitar,
I solve the problem by re-install jqxwidget files.
It’s not the first time some features stop working and are solve by re-install files.I don’t know if it come from our server apache version.
TX.
-
AuthorPosts
You must be logged in to reply to this topic.