Server time in client javascript code

Source code to get the server time from client side JavaScript code in asp.net or SharePoint application. Below sample code can be modified based on requirement.   <script type="text/javascript"> //Users time var timeLocal = new Date(); //Servers time var...

Using jQuery in asp.net application and its advantages

jQuery is the fantastic opensource and free javascript library you can easily integrate in your asp.net and sharepoint applications. Personally I would like to use this light weight library because it helps to accomplish the more complex DOM operation do simpler. In...

Javascript trim

In programming trim is a string manipulation function. It will remove the leading and trailing spaces. JavaScript does not provide the trim functionality by default. Best 3 sample i have provided below, same you can use for trimming the string using javascript. Sample...