Category Archives: JavaScript

Posting a HTML form with AJAX

Sometimes it is necessary to post the data from a HTML form not by using a submit request (e.g. through a submit button or a (JQuery) submit call) but by using an asynchronous request. This may come handy for example … Continue reading

Posted in ASP.NET MVC, JavaScript, Software | Leave a comment

Canvas (HTML 5) Mouse Position

Want to know the position of the mouse pointer within your <canvas> element? Use jQuery? This code works in IE, Firefox, and Chrome: $(“#canvas_id”).mousedown(function (event) { var offset_x = event.pageX – $(this).offset().left; var offset_y = event.pageY – $(this).offset().top; // do … Continue reading

Posted in HTML 5, JavaScript, Software | Leave a comment