The AJAX request and form's Submit method set the request in the same way as it did, using method: ' POST ' settings
Form submission
Winform.getform (). Submit ({
waittitle: ' Hint ',//title
waitmsg: ' Submitting data Please later ...
AJAX
AJAX=
asynchronous JavaScript and XML. Asynchronous JavaScript and XML. Ajax is the technique of exchanging data and updating portions of a Web page without having to reload the entire page. Traditional Web pages must reload
Three steps to achieve this function:
1, the mother page:
"
===================================
2, the background action method:
=====================================
Public Actionforward Showexam (actionmapping mapping, Actionform
Tao elder brother Strength, is a horse, unfortunately the parallel to the boss.
Failure occurs after a complete abandonment. I was very disappointed with my boss.
The company has recently completed a project, the project has come to an end, has not
A few days ago in the work, and mobile end of the interface to do when found that the front-end in the transfer of parameters when there are + or &, the server to get a string of + or & has become a space, the background Java program in parsing when
issue: to ensure that the background program is not a problem, through the postman can successfully submit the form, but from the front page with Ajax submitted but always execute the error callback function, debug, found that postman sent the
A simple question, find for a good while, leave a lesson in the time
In the beginning I used $ ("#textareaContents"). Text (); The text content, then remembered to textarea belong to form form, although His writing is a closed (just like ) label,
The following jquery code is expected to work.
$ (". Derek"). each (the function () {
$ (this). Click (function () {
var params = $ (this). Parent (). Serialize ();
var obj=$ (this). Parent (). Siblings ("Div#caskcontent");
var form=
The project used AJAX for page data list refresh, call need to use a lot of query conditions, the previous practice is to use @requestparam to get the incoming parameters, but more parameters, the number of @RequestParam will be more and more, You
JScript files
function creatxmlhttp ()//Create XMLHttpRequest Object{if (ActiveXObject){XMLHTTP = new ActiveXObject ("Microsoft.XMLHTTP")}else if (XMLHttpRequest){XMLHTTP = new XMLHttpRequest ();}return XMLHTTP;}
function CreateQuery ()//Create
Formpanel Submission Method
Ext.MessageBox.wait (' The data is being submitted, please wait a moment ... ', ' hint ');
Xxxxformpanel.getform (). Submit ({
timeout:60,
success:function (form, action) {
//Business
The Hocate Ajax framework, drawing on the design of many frameworks, draws on the advantages of each framework, discarding some of the inconvenience of manipulation and coding, and is designed to provide an AJAX framework that is easy and fast to
1. Description of the problem
The following issues were discovered recently when debugging code with the foreground:
Org.springframework.http.converter.HttpMessageNotReadableException:Could not read json:unexpected character (' C ' ( Code): expected
Ajax is not omnipotent, in the appropriate situation to use AJAX, in order to give full play to its strengths, improve system performance and user experience, can not be abused for technology. Ajax is characterized by asynchronous interaction,
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