Closed meister-d closed 9 years ago
$.fn.bsDatepickerLang
object, without modifying the bforms.datepicker.js script, like this:$.fn.bsDatepickerLang['en'] = {
nowText: 'Now',
setDateText: 'Set date',
setTimeText: 'Set time'
};
BForms.Utilities.BsResourceManager
. An example of usage can be found in the Global.axas.cs
file from theBForms.Docs
project.onTimeout
and offline
.The onTimeout
callback is used when an ajax request takes longer than the specified timeout
option (in milliseconds), and the offline
one when the user loses internet connection.You can use them to remove the waiting indicators added from your code and also notify the user.
Hi Guys we have deployed a solution based on BForms on a German localized server. Some of the Controls seems to be broken, and the Waiting indicator is allways turning.
We have traced this behaviour with fiddler and have constated that there were some files missing:
As a Quick Fix we have created the corresponding files and have added them to the RequiresJS.json file.
It seems, that also the Datepicke gets broken if there are languages missing: for this purpose I added a "fake" german counterpart ;-)
What is the best way to do localisation with Bforms? Is it possible to configure a Timeout for the waiting indicator (in general for the Ajax operations)?
Regards Dumitru (aka Meister-D)