// Upload files
uploadModel: function() { if(Ext.getCmp('exup').getForm().isValid()) { var ssn = this.upPanel.getCmpByName('ssn').getValue();
var ssy = this.upPanel.getCmpByName('ssy').getValue();
var pzid = this.upPanel.getCmpByName('pzid').getValue(); // Determine whether the imported data is duplicate
Ext.Ajax.request({ url : __ctxPath + '/gzt/sameDataGztDrLog.do',
params : {
ssn : ssn,
ssy : ssy,
pzid : pzid
},
async:false,
method : 'POST',
scope:this,
success : function(response, options) {
var json = Ext.util.JSON.decode(response.responseText);
// alert(response.responseText);
if(json.success){
var msg = json.message;
if(msg == 'same'){
Ext.Msg.confirm(' Tips ', ' Duplicate records found , Continuing the import will override the old data , Are you sure to continue importing ?', function(btn) {
if (btn == 'yes') {
this.zxdr1();
}
},this);
}else{
this.zxdr1(); }
}else{
Ext.ux.Toast.msg(' Operation information ', json.message);
}
},
failure : function(response, options) {
Ext.ux.Toast.msg(' Operation information ', ' Operation error , Please contact the Administrator !');
} }); } }
extjs3 ajax There is no synchronization method in itself , Need to introduce ext-basex.js
confirm(String title,
String msg,
Function fn,
Object scope
) : Ext.MessageBox Prompt box , And alert Different , For asynchronous methods , The method executed after the button is confirmed needs to be written in its callback function ,
If you want to call another method , Note the scope parameter scope Use , yes confirm Parameters of , Instead of the callback function
extjs ajax Sync And confirm More articles about confirming the prompt box question
- js Implementation of delete confirmation prompt box
js Implementation of delete confirmation prompt box One . Example description Prevent users from clicking carefully “ Delete ” Button , In the user click “ Delete ” After button , Give a hint , Let the user confirm whether the operation is correct . Two . effect 3、 ... and . Code <!DOCTYPE html> ...
- Selenium Handle alert/confirm/prompt Prompt box
About Back to the top Reunderstanding alert First , Not all alert Can be called alert box .JavaScript in , There are three ways to do this ( Although it's all with alert almost ): alert(message) Fang ...
- modify js confirm alert Simple example of prompt box text
modify js confirm alert Simple example of prompt box text : <!DOCTYPE html> <html> <head lang="en"> & ...
- [UWP] The confirmation prompt box will pop up when the application exits
1. demand When the app exits ( Click the close button in the upper right corner ) Pop up a confirmation button can be said to be the most common operation , For example, Notepad " Do you keep ": But this function is in UWP It's a little complicated . This article will explain how to achieve ...
- 15 JavaScript Popup ( Warning box alert、 Confirmation box confirm、 Prompt box Promt)
Warning box :window.alert(). It's usually used to confirm that the user can get some information <body> <script type="text/javascript" charset ...
- modify js confirm alert Prompt box text
<!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8&quo ...
- js Three message boxes summarize - Warning box 、 Confirmation box 、 Prompt box
js Message box category : Warning box . Confirmation box . Prompt box Warning box :alert(" Text "); Confirmation box :confirm(" Text "); Prompt box :prompt(" Text " ...
- JavaScript Three message boxes are created in : Warning box 、 Confirmation box 、 Prompt box .
website :http://www.w3school.com.cn/js/js_popup.asp Warning box Warning boxes are often used to ensure that users can get some information . When the warning box appears , The user needs to click OK to continue . language ...
- Prompt box plug-in SweetAlert
SweetAlert Can replace Javascript Native alert and confirm And so on , It beautifies the prompt box , And allows you to customize , Support setting prompt box title . Type of tip . Content shows pictures . To confirm the cancellation, press ...
Random recommendation
- 2-ser2003 System packaging experiment report
Ser2003 You need to mount the system image thus ,ser2003 The production of the master is completed !!! From knowing notes (Wiz) Attachment list
- Reasonable use in web page layout inline formating context(IFC)
Introduction : Let's give you a little question , How to use css To achieve the following in the specified area , Content adaptive vertical center .
- SQL Server Stored procedure and sql The advantages and disadvantages of the statement
advantage : 1. Allow modular programming .2. High maintainability , Just create the stored procedure once and store it in the database , You can call this procedure any time later in the program . Stored procedures can be modified independently of program source code , And there's no need to change . Testing and redeploying assemblies ...
- 【Demo】HTML5 Photo upload
This article mainly explains Mobile phone browser How to take pictures Why is there such a need Recently, to do a project, we need to take photos and upload photos , But Web photos are usually taken with Flash It's done , And we are mainly H5 page , If you have permission in wechat, you can go through JSSDK Tune up ...
- C# Asynchronous invocation of delegate 【 turn 】
This article will mainly through “ A synchronous invocation ”.“ Asynchronous call ”.“ Asynchronous callback ” Three examples are given to illustrate how to execute the same “ Add class ” The differences and pros and cons of the time . First , Define a delegate and the methods to be called in the following three examples through the code : ); // This method is simulated ...
- [google interview CTCI] 1-6. Image rotation problem
[ Strings and arrays ] Q:Given an image represented by an NxN matrix, where each pixel in the image is 4 bytes, wr ...
- Study erlang Books - turn
Here are a few resources:Programming Erlang, by Joe Armstrong. A good book, really teaching you more ...
- Spring Security OAuth2 Single sign on
1. summary In this tutorial , We will discuss how to use Spring Security OAuth and Spring Boot Realization SSO( Single sign on ). This example uses three separate applications An authorization server ( Central authentication mechanism ) ...
- weird DataTime.Now.ToString()
This kind of problem appeared on the server when calling the program last night DataTime.Now.ToString("yyyy-MM-dd HH:mm:ss") There was 2014-8-14 8:nn:14: ...
- Talking about JavaScriptCore
source :XcodeMen( Wang Ruihua ) link :http://t.cn/RVqQI5p This article is written by Wang Ruihua of our team . OS X Mavericks and iOS 7 Introduced JavaScriptCore library ...