EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: karogel on October 27, 2016, 11:58:35 PM



Title: Is it possible to load multiple url or json to form
Post by: karogel on October 27, 2016, 11:58:35 PM
is it possible to load multiple url or json to form like:

$('#form1).form('load',
   url1,
        url2,
       {
          name:'name2',
          email:'mymail@gmail.com',
          subject:'subject2',
          message:'message2',
          language:5
        }
);   


Title: Re: Is it possible to load multiple url or json to form
Post by: stworthy on November 07, 2016, 02:19:59 AM
No, but you can retrieve data by yourself and then load them into the form.
Code:
$.get(url1, function(data1){
  $.get(url2, function(data2){
    $('#form1').form('load', $.extend({},data1,data2));
  });
});