EasyUI Forum
September 16, 2025, 03:39:25 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: ComboGrid select value and Ajax call  (Read 9928 times)
Jakob
Newbie
*
Posts: 8


View Profile
« on: April 09, 2013, 12:33:24 AM »

I have a drop down field and when I select a value from drop down, an ajax call is made to submit the form

Code:
<script type="text/javascript">  
$(function(){
$('#comb').combogrid({ 
    panelWidth:500,   
    url: 'myservice', 
    idField:'id', 
    textField:'desc' 
    columns: [[ 
                {field:'Id',title:'Id',width:20}, 
                {field:'desc',title:'Desc',width:80}
            ]],
    onSelect: function(index, row) {
   $.ajax({
                url: 'myjsp.jsp',
                method: 'GET',
                data: {
            val: row.dummy
            },
           success: function(response) {

        }
    });
}
});
}); 

</script>

The problem is when I try to receive the value using request.getParameter value is null even though val is correctly passed as I can see header information like

Code:
out.println("value  "+request.getParameter("val"));%>
Why request.getParameter is null when ajax call is made?
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!