jquery easyui datagrid 动态改变url地址中的参数值
2011-07-25 14:10
381 查看
方法一:(改变后加载当前页面内容)
//第一次设定
$('#telGrid').datagrid({
url:'p_n_list.php?act=getAjax_list&s_key=400电话
&website=http://www.my400800.cn
',
nowrap: false,
striped: true,
collapsible:true,
pagination:true,
rownumbers:true,
pagination:true,
toolbar:[{
text:'新增',
iconCls:'icon-add',
handler:function(){
//$('#btnsave').linkbutton('enable');
//alert('add')
addRow();
}
},'-',{
text:'修改'
,
handler:function(){
updateRow();
}
},'-',{
text:'删除',
iconCls:'icon-remove',
handler:function(){
getSelections();
}
},'-',{
text:'查询',
iconCls:'icon-search'
,
handler:function(){
$('#searchW').window({
title: '设定查询条件',
width: 300,
modal: true,
shadow: false,
closed: false,
height: 200,
close:function(){
alert('data');
}
});
}
}]
});
$('#telGrid').datagrid('reload', {
s_key
:800电话
});
方法2:
//第一次设定
$('#telGrid').datagrid({
url:'p_n_list.php?act=getAjax_list&s_key=400电话
&website=http://www.my400800.cn
',
nowrap: false,
striped: true,
collapsible:true,
pagination:true,
rownumbers:true,
pagination:true,
toolbar:[{
text:'新增',
iconCls:'icon-add',
handler:function(){
//$('#btnsave').linkbutton('enable');
//alert('add')
addRow();
}
},'-',{
text:'修改'
,
handler:function(){
updateRow();
}
},'-',{
text:'删除',
iconCls:'icon-remove',
handler:function(){
getSelections();
}
},'-',{
text:'查询',
iconCls:'icon-search'
,
handler:function(){
$('#searchW').window({
title: '设定查询条件',
width: 300,
modal: true,
shadow: false,
closed: false,
height: 200,
close:function(){
alert('data');
}
});
}
}]
});
$('#telGrid').datagrid('reload', {
s_key
:800电话
});
方法2:
$ ('#telGrid').datagrid({url:'http://www.my400800.cn', queryParams:{s_key:'400', website:'http://www.my400800.cn/LianXiWoMen.html' } }) ;
相关文章推荐
- ExtJS 动态改变 Ext.data.store 的url 地址
- easyUI_动态改变datagrid的url值
- ExtJS动态改变grid的store的url地址,重新加载grid的数据
- c#动态改变webservice的url访问地址
- DataGrid 动态绑定URL地址,在WebConfig中配置
- jquery easyUI 中动态 改变 Datagrid中数据的方法
- jQuery easyui dataGrid 动态改变排序字段名,一般情况下,在使用的时候,我们会点击相应字段进行排序,这里以JAVA为例,后端的实体类字段有可能和数据库的字段不一致; 如:实体类中的
- c#动态改变webservice的url访问地址
- easyUI_动态改变datagrid的url值
- datagrid改变url参数值
- jquery easyui-datagrid动态改变标题
- jquery easyUI 中动态 改变 Datagrid中数据的方法
- 利用jQuery动态修改URL地址参数和参数值
- EasyUI datagrid 改变url属性 实现动态加载数据
- 怎么在绑定后动态改变DataGrid中的内容
- Flex中如何通过rowCount属性,动态改变DataGrid显示行数
- HTML5,让 Ajax 动态改变 URL 且支持后退
- asp循环获取URL地址中的所有变量参数值
- 转载 -- jquery easyui datagrid 动态表头 + 嵌套对象属性展示
- 扩展jquery easyui datagrid 之动态绑定列和数据