EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
September 14, 2025, 12:06:25 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
[SOLVED] Load form data from URL, but data not show immediatly by using alert()
Pages: [
1
]
« previous
next »
Print
Author
Topic: [SOLVED] Load form data from URL, but data not show immediatly by using alert() (Read 8538 times)
patana
Jr. Member
Posts: 50
[SOLVED] Load form data from URL, but data not show immediatly by using alert()
«
on:
August 01, 2016, 09:22:41 PM »
I have a dialog to show Form with a field of textbox.
Function Viewdata(){
$('#frm').form('load',URL); // data load from URL: {"comments":"Others"}
alert(JSON.stringify($('#frm').serializeArray())); // [{"name":"comments","value":""}]
}
any solution?
«
Last Edit: August 03, 2016, 01:38:56 AM by patana
»
Logged
jarry
Administrator
Hero Member
Posts: 2298
Re: Load form data from URL, but data not show immediatly by using alert()
«
Reply #1 on:
August 02, 2016, 08:07:14 AM »
The form loads remote data asynchronously. You should wait the data to be loaded before processing it.
Code:
$('#frm').form({
onLoadSuccess: function(data){
//...
}
});
$('#frm').form('load', URL);
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...