Jquery easyui datagrid dynamically changes the parameter values in the url address

Source: Internet
Author: User
  1. Method 1: (load the content of the current page after modification)

 

// Set for the first time

$ ('# TelGrid'). datagrid ({
Url :'P_n_list.php? Act = getAjax_list & s_key = 400 phone
& Website = http://www.my400800.cn

',
Nowrap: false,
Striped: true,
Collapsible: true,
Pagination: true,
Rownumbers: true,
Pagination: true,
Toolbar :[{
Text: 'add ',
IconCls: 'icon-add ',
Handler: function (){
// $ ('# Btnsave'). linkbutton ('enable ');
// Alert ('add ')
AddRow ();
}
},'-',{
Text: 'modify'
,
Handler: function (){
UpdateRow ();

}
},'-',{
Text: 'delete ',
IconCls: 'icon-delete ',
Handler: function (){

GetSelections ();
}
},'-',{
Text: 'query ',
IconCls: 'icon-search'
,
Handler: function (){
$ ('# Searchw'). window ({
Title: 'set query condition ',
Width: 300,
Modal: true,
Shadow: false,
Closed: false,
Height: 200,
Close: function (){
Alert ('data ');
}
});
}
}]
});

 

$ ('# TelGrid'). datagrid ('reload ',{
S_key
: Phone number 800

});

Method 2:

$('#telGrid').datagrid({url:'http://www.my400800.cn',    queryParams:{s_key:'400',  website:'http://www.my400800.cn/LianXiWoMen.html' }});

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.