How to Resize Applets Dynamically within Browser FramesJanuary 24th, 2004 The problem I was trying to solve was to resize applets when the browser changes size,
so as to always fill the total displayed area of the browser. Googling I found an article from javaworld - Resize applets within browser frames.
How To Enable window.status in FirefoxMay 14th, 2006 Strangely you cannot set browser window status bar using javascript (by setting window.status) in Firefox. There are two simple ways you can enable it.
Free e-Book: Linux Command Line and Shell Scripting Bible January 29th, 2009 Covering the most popular Linux shells (such as bash, ash, tcsh, ksh, korn, and zsh), this reference book shows how to use commands to create scripts within each shell and demonstrates practical applications for shell scripts (including retrieving information from Web sites and sending automated reports via e-mail). For each shell, the author discusses the commands available and explains how to use these commands to create scripts that can automate common functions and reports.
Little Painful Javascript QuirkMay 14th, 2006 Why doesn't document.getElementById('location').value work as function parameter in Javascript?
What does work is:
var temp = document.getElementById('location');
temp.value works fine as function parameter. Apparently javascript doesn't like referencing fields directly on functions as in getElementById('location').value as a function parameter.
Developing Clean AJAX / Javascript Driven Websites; Say No To Tag-SoupNovember 13th, 2005 Behaviour promotes itself as "the missing link for your AJAX apps". It allows you to use CSS selectors (like id or class) to apply Javascript behaviors to your HTML elements.
Files Changed from WordPress 1.5.1.3 to WordPress 1.5.2August 24th, 2005 After briefly scanning the eleven defects fixed in 1.5.2 (an interim release before WordPress 1.6) I identified the changed files. They are:
xmlrpc.php
comment-functions.php
wp-admin/post.php
pluggable-functions.php
registration-functions.php
wp-admin/categories.php
wp-commentsrss2.php
wp-includes/template-functions-category.php
edit-page-form.php
I am shortly planning to provide a patch update from 1.5.1.3 to 1.5.2.
6 Ways to Clean and Optimize FacebookDecember 17th, 2008 We are not done with Facebook yet. Our quest for having a better and more user- friendly Facebook helped us this time to find and eliminate bogus adds and distracting accessories with these following tools.
iPhone Activation for DummiesJuly 24th, 2007 iActivator is a nice Mac OS X application which allows activating your iPhone without a contract. It provides a nice graphical user interface and is very well suited for the non-technical people.
How To Compress JavaScript Files SafelyJuly 4th, 2006 List of high quality javascript compressors. Feel free to add to this list in your comments.
How To Add Trim Functionality To Javascript StringAugust 12th, 2007 Trim is a useful function available in languages like Java & PHP which removes the leading and traling whitespace(s) from a String. Unfortunately Javascript doesn't natively provide trim functionality to the String object.
5 Years for Playing Online Poker?February 17th, 2006 5 years in slammer seems a bit too much punishment for simply playing online poker, isn't it?
The Internet Gambling Prohibition Act proposes to make it illegal for Americans to use the Internet for gambling and would authorize law enforcement officials to stop credit card payments and other forms of electronic payments. Violators would be subject to up to five years in prison.
The Smell of Java (& JSP) or A Case for JavaJune 29th, 2007 After sometime I am back to developing in Java & JSP. And boy does it smell good! If there is a programmers heaven, I am in it now.
How To trim() in JavascriptMarch 17th, 2006 Javascript doesn't natively support trim on strings. It is however very easy to implement with regular expressions.
Biggest Internet Explorer Problem With JavascriptJuly 26th, 2007 You would be surprised to know that the biggest Internet Explorer issue I am facing while writing rather complex cross-browser javascript code is related to just a comma. In javascript array if you add a comma after the last element in the array then Internet Explorer fails with a variety of undecipherable (Microsoft style) error messages.
At the mercy of WordPress Plugins; how to fight backMay 11th, 2005 WordPress has unique plugin architecture. Plugins are simply php files which are included (and executed) before any php pages which renders the content, whether it is your blog page or syndication feed or even administrative functions.
February 7th, 2007 at 10:34 pm
Where is the sample code?
February 8th, 2007 at 1:08 am
hi there,
I don’t see any code — I use firefox 1.5.x on windows.
Thank you,
BR,
~A
February 8th, 2007 at 3:09 am
Thanks for the catch. I forgot to escape the <’s and >’s
April 30th, 2007 at 5:44 pm
Thanks for the script!
October 26th, 2007 at 6:30 am
Great idea. I created a function, addEventHandler, that simplifies adding this technique to new Javascripts.
Thanks for addressing this issue. It was a recent concern of mine.
October 23rd, 2008 at 3:44 pm
For those who STILL can’t see the code, here it is… you can also view source on this page and find it. All I did was replace the ASCII HTML characters.
// Third party script using onload to do its stuff after the page has loaded
window.onload = oldOnload;
function oldOnload() {
alert('oldOnload');
}
var nowOnload = window.onload; // Let's save the existing assignment, if any
window.onload = function () {
// Here is your precious function
// You can call as many functions as you want here;
myOnloadFunction1();
//...
// Now we call old function which was assigned to onLoad, thus playing nice
if(nowOnload != null && typeof(nowOnload) == 'function') {
nowOnload();
}
}
// Your precious function
function myOnloadFunction1() {
alert('myOnloadFunction1');
}