Archive for the ‘Programming’ Category

Archos 101 internet tablet: Activate WLAN HTTP proxy settings in Android WebView

Since firmware version 2.1.8 the Archos 101 internet tablet supports HTTP proxy settings. The proxy settings can be configured under “Settings > Wireless & network > wifi proxy settings”. To enable the HTTP proxy settings in a WebView one has to call WebView.enablePlatformNotifications() in the Activity’s onCreate() method: public class YourActivity extends Activity { @Override […]

Read more…

ASP.NET MVC 3: Using JSON result for jQuery Ajax Forms validation

This blog post is my third blog post about jQuery Ajax forms with ASP.NET MVC 3. The first post “ASP.NET MVC 3: Ajax Form with jQuery validate supporting (unobtrusive) Client Side Validation and Server Side Validation” is about creating Ajax forms with jQuery validate to support client side validation and partial page updates. The second […]

Read more…

ASP.NET MVC 3: Using jQuery .ajax() function to submit Ajax Form supporting (unobtrusive) Client Side Validation and Server Side Validation

Update 2011-08-09: I’ve written a follow-up blog post which shows how to use JSON to customize the way the server’s response is handled on the client side. This blog post summarizes how to use jQuery’s .ajax() function to submit an Ajax form in ASP.NET MVC web applications. In ASP.NET MVC you can use the Ajax.BeginForm(…) […]

Read more…

ASP.NET MVC 3: Ajax Form with jQuery validate supporting (unobtrusive) Client Side Validation and Server Side Validation

Update 2011-08-07: I’ve written a new follow-up blog post to this one which shows how to upgrade the techniques described here with custom (jQuery) JavaScript code to implement a more flexible Ajax form handling. This blog post shows step by step instructions how to build an Ajax form with jQuery validate supporting (unobtrusive) client and […]

Read more…

Windows batch file to delete old files and remove empty directories recursively

Here is a Windows batch file that finds and deletes old files under a specific directory. In a second step the script removes folders that became empty after deleting the (old) files. Note that the scripts works recursively, i.e. it searches for old files and empty folders in any subdirectory under the specified path. One […]

Read more…

jQuery: Disable (browser) cache for all AJAX requests

Here is a small JavaScript code snippet that uses jQuery’s .ajax() function to disable the (client side browser) cache for all subsequent jQuery AJAX calls (note that caching is enabled by default for all data types except script and jsonp): $.ajaxSetup({ cache: false });$.ajaxSetup({ cache: false }); To enable caching for a special AJAX request […]

Read more…