jQWidgets Forums

This topic contains 2 replies, has 2 voices, and was last updated by  tompasto 10 years, 9 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • My input stop working #58486

    tompasto
    Participant

    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&Eacute; MODIFICATION IMPOSSIBLE </SPAN>');
    	                    	
    	                    	ShowGrid();
    	                    	$("#ResultGrid").jqxGrid({editable: false});
                        		}
    	         				else{
    	         						$("#Archive").html('');
    		         					$('#SetArchive').val('0');
    		         					ShowGrid();
    		         				}
    		        }}) 
    		                  
    	         }
    	     }
    	 }); 
    
    

    TX FOR YOU HELP !

    My input stop working #58496

    Dimitar
    Participant

    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,
    Dimitar

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

    My input stop working #58517

    tompasto
    Participant

    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.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.