May 27, 2010
var tmp = "function_name";
This is something I often encounter, especially when building larger AJAX applications where you’d like to be able to pass along the name of a function to call when the AJAX call completes, so I thought I’d post a quick note as reference.
April 1, 2010
A simple Question with a simple answer :
How do I open links in a new tab or window without using
target="_blank", so that my page can still validate as XHTML?
February 23, 2010
Recently I was playing around on my sandbox personal site with some ideas to dynamically move and position elements relative to on screen clicks in ways that are compatible with different browsers and different resolutions. The scripts I used to do this were then implemented by a fellow developer on a client’s site to solve a problem with having a customized pop-up div displaying at the correct location when clicking.
Note: Majority of the code was copied from several sources and thrown together and then modified to solve the problem. This is also done without the use of JQuery.
The process can be broken down into several steps.
- Find out which browser is being used and find the size of the client’s window.
- Find out where on the screen was clicked.