EasyUI Forum
April 18, 2024, 11:04:41 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Form load from URL, Is possible to load with queryParams?  (Read 3348 times)
Aod47
Jr. Member
**
Posts: 81


View Profile
« 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.
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 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;
  }
});
Logged
Aod47
Jr. Member
**
Posts: 81


View Profile
« Reply #2 on: February 29, 2020, 02:18:07 AM »

Thank you, work great.  Cheesy
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!