Home > front end >  AJAX cross-domain implementation success or error, complete execution.
AJAX cross-domain implementation success or error, complete execution.

Time:09-25

But after ten minutes can execute, and why!
The function the Submit () {
//use jQuery asynchronous submission form
Var name=document. GetElementById (' login__uid ');
If (name, value='https://bbs.csdn.net/topics/={
Alert (" sorry, student id or job number can't be empty!" );
return false;
}
Var j=$(' # myForm) serialize ();
$. Ajax ({
Type: 'get',
Url: http://172.16.1.92:8080/gvsuntms/openApi/tcoursesite/test/saveTAssignmentItemMapping? AssignmentId=20169 ',
DataType: 'the json,
/* data: $(' # myForm). Serialize (), */
Data: j,
ContentType: "application/json,"
Json: 'callback',
JsonpCallback: 'success_Callback',
Success: the function (data) {

Alert (" your score is "+ data. TotalScore. TotalScore +" points! Please continue to refuel oh ~ (click ok to return to the home page) ");

}
/* complete: function () {
Alert ("????? ");
}, */
/* error: function () {
Alert (" fail ");
} */
})

}

CodePudding user response:

Pray god to solve==! Thank you ~ ~ ~

CodePudding user response:

~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~

CodePudding user response:

Ten minutes later did not implement the==,, is sometimes performed, sometimes not

CodePudding user response:

http://172.16.1.92:8080/gvsuntms/openApi/tcoursesite/test/saveTAssignmentItemMapping? AssignmentId=20169
This root access,
This is because the site is not stable, caused by js you write again good also useless,

CodePudding user response:

reference 4 floor yenange response:
http://172.16.1.92:8080/gvsuntms/openApi/tcoursesite/test/saveTAssignmentItemMapping? AssignmentId=20169
This root access,
This is because the site is not stable, caused by js you write again good also useless,


Ah, because I am running locally,

CodePudding user response:

refer to 6th floor qq_33071033 response:
Quote: refer to 4th floor yenange response:

http://172.16.1.92:8080/gvsuntms/openApi/tcoursesite/test/saveTAssignmentItemMapping? AssignmentId=20169
This root access,
This is because the site is not stable, caused by js you write again good also useless,


Ah, because I am running locally,

To ensure that this website is normal

CodePudding user response:

refer to 7th floor yenange response:
Quote: refer to the sixth floor qq_33071033 response:

Quote: refer to 4th floor yenange response:

http://172.16.1.92:8080/gvsuntms/openApi/tcoursesite/test/saveTAssignmentItemMapping? AssignmentId=20169
This root access,
This is because the site is not stable, caused by js you write again good also useless,


Ah, because I am running locally,

Let's give it to ensure that this website normal


This is completely no problem in my local,,,,

CodePudding user response:

Which controls the trigger the Submit event, if it is in the form Submit button or the button button will Submit the form, and instead of ordinary button

recommend learning materials
Web development network
Web front-end development

CodePudding user response:

references 9 f showbo response:
which controls trigger the Submit event, if it is in the form Submit button or the button button will Submit the form, and instead of ordinary button

recommend learning materials
Web development network
Web front-end development

The moderator also starts the advertisement? The same url need not two links?

CodePudding user response:

references to the tenth floor yenange response:
Quote: references 9 f showbo response:

Which controls the trigger the Submit event, if it is in the form Submit button or the button button will Submit the form, and instead of ordinary button

recommend learning materials
Web development network
Web front-end development

The moderator also starts the advertisement? The same url need not two links?

Hurricane wool baidu recently developed algorithms, commandeered for no reason, and can only look to get outside the chain can back from the dead, but pain, and refer to the original articles are reprinted ya before, say to delete, don't even give the content of the transfer point others, too his mama of, nor did not indicate the source, and some original sources of web site can't open, removed when trying to find all can not find, also don't know baidu will restore after deleting rankings, (# ‵ '), and too lazy to delete, baidu to return not equal to Google, 360 more, delete,,

CodePudding user response:

references 9 f showbo response:
which controls trigger the Submit event, if it is in the form Submit button or the button button will Submit the form, and instead of ordinary button

recommend learning materials
Web development network
Web front-end development



Thank you moderator ~!

CodePudding user response:

Say what no matter failure or network request is rejected I have to accept the end of the service feedback
  • Related