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.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • input id – sql – output city #52174

    szoron
    Participant

    Hello!

    szeretnék,
    beírok egy azonosítót,
    megnyomok egy gombot
    és mysql-ből kiolvassa az azonosító tartozó várost

    button works as condescending, but does not return a value. the php query works because the combo box into returns

    pls help. thx

    point

    input id – sql – output city #52181

    Peter Stoev
    Keymaster

    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 Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    input id – sql – output city #52187

    szoron
    Participant

    sorry this is task

    I want to, I provide an ID, press a button and mysql out of town reads for the identification of

    input id – sql – output city #52191

    szoron
    Participant

    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(); 
Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.