jQWidgets Forums
jQuery UI Widgets › Forums › Plugins › Data Adapter › input id – sql – output city
This topic contains 3 replies, has 2 voices, and was last updated by szoron 11 years, 3 months ago.
-
Author
-
Hello!
szeretnék,
beírok egy azonosítót,
megnyomok egy gombot
és mysql-ből kiolvassa az azonosító tartozó várostbutton works as condescending, but does not return a value. the php query works because the combo box into returns
pls help. thx
Hi szoron,
Unfortunately, we do not understand your question. If you would like to provide a sample which demonstrates your application scenario, please prepare it in http://jsfiddle.net/ and share it so we can see what you mean.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/sorry this is task
I want to, I provide an ID, press a button and mysql out of town reads for the identification of
ready
var ordersSource = { datatype: "json", datafields: [ { name: 'ml_num'}, { name: 'address'}, { name: 'city'}, { name: 'tch'} ], url: 'cascadingcombobox_data.php', cache: false, async: false }; var dataAdapter = new $.jqx.dataAdapter(ordersSource, { loadComplete: function () { // get data records. var records = dataAdapter.records; var record = records[0]; $("#addr").val(record.address); $("#tch").val(record.tch); } }); var ordersAdapter = new $.jqx.dataAdapter(ordersSource); // create jqxInput $("#input").jqxInput({ placeHolder: "Munkalapszám...", height: 23, width: 250, minLength: 1 }); $("#addr").jqxInput({ placeHolder: "cím...", height: 23, width: 250, displayMember: 'address', minLength: 1 }); $("#tch").jqxInput({ placeHolder: "technikus...", height: 23, width: 250, displayMember: 'tch', minLength: 1 }); $("#search").bind('click', function (event) { var value = $("#input").val(); ordersSource.data = {ml_num : value}; dataAdapter.dataBind();
-
AuthorPosts
You must be logged in to reply to this topic.