Show Posts
|
Pages: [1]
|
1
|
General Category / EasyUI for jQuery / ComboGrid select value and Ajax call
|
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 <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 out.println("value "+request.getParameter("val"));%> Why request.getParameter is null when ajax call is made?
|
|
|
3
|
General Category / EasyUI for jQuery / Re: Change default date format in datagrid
|
on: April 05, 2013, 10:00:32 AM
|
<th data-options="field:'fn',formatter:formatDate" width="80">Date</th>
<script> function formatDate(value,row){ var d = new Date(value); return $.fn.datebox.defaults.formatter(d); } </script> I have date field defined as {field:'productDate',title:'Date', width:40, sortable:false, editor:'text'}, so how can use formatter?
|
|
|
7
|
General Category / EasyUI for jQuery / Pass multiple parameters to Controller class while removing records
|
on: April 04, 2013, 05:58:29 AM
|
Hello How can I pass multiple parameters while removing records from datagrid? This is the code I have taken from example $.post('controller?flag=remove',{id:row.id},function(result){ My columns which are defined in html tables are prjId and prjDate which I would like to pass to my controller. How can I do this? P.S. When I looking Firebug console I could see only remove being passed as parameter. Thanks
|
|
|
8
|
General Category / EasyUI for jQuery / Jquery EasyUI combogrid selected value
|
on: April 04, 2013, 04:30:43 AM
|
I have the following Combogrid for autocomplete drop down $('#product').combogrid({ panelWidth:500, url: 'myservice', idField:'prodId', textField:'desc', mode:'remote', fitColumns:true, columns: [[ {field:'prodId',title:'Product No',width:10}, {field:'desc',title:'Desc',width:75} ]] }); When user selects a value from drop down, I would like to set the description of the selected product to another input field. How can I do this?
|
|
|
|