EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Aod47 on February 23, 2020, 12:11:03 AM



Title: Form load from URL, Is possible to load with queryParams?
Post by: Aod47 on February 23, 2020, 12:11:03 AM
Dear Sir,

Code:
$('#ff').form('load','get_data.aspx?item=12345'); // load from URL with queryString


Is possible to load from URL and send parameters via queryParams.
Could your please show the example.

Thank you.


Title: Re: Form load from URL, Is possible to load with queryParams?
Post by: jarry on February 24, 2020, 11:37:24 PM
Please listen to the 'onBeforeLoad' event and set the parameters.
Code:
$('#ff').form({
  onBeforeLoad: function(param){
    param.item = 12345;
  }
});


Title: Re: Form load from URL, Is possible to load with queryParams?
Post by: Aod47 on February 29, 2020, 02:18:07 AM
Thank you, work great.  :D