Click here to Skip to main content
16,016,087 members

Comments by Satya Ranjan Sahoo (Top 5 by date)

Satya Ranjan Sahoo 28-Oct-14 1:38am View    
Javascript don't know anything about the server.So, do a separate ajax call to get the server date and time.
Satya Ranjan Sahoo 16-Oct-14 1:41am View    
Please refer this:
Link
Satya Ranjan Sahoo 14-Oct-14 1:47am View    
Make "async:fasle" in ajax call:
function BindNewSalesAttribute() {
$.ajax({
type: "POST",
url: "/url of Webmthod returns string",
async: false,
data: '{}',
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (data) {
varBindNewSalesTranGrid += data.d;
},
error: function (xhr, ajaxOptions, thrownError) {
}
});
}
This will work but its not good to have "async:fasle" in an ajax call.Its better that perform your task related to that global variable inside the success function of ajax call.
Satya Ranjan Sahoo 14-Oct-14 1:42am View    
Deleted
:)
Satya Ranjan Sahoo 13-Oct-14 12:14pm View    
Why don't you disable that implicit bootstrap validation and provide validation on submit button explicitly.