Friday, August 17, 2007

Microsoft Outlook 2003 - insert signature

My co-worker wants me to switch over to a MAC. Everyday, I spend a few minutes just trying to figure out why my PC (loaded with Microsoft) behave the way it does.

Outlook allows you to create many different signatures. But here's the problem -
If you turn on Word as your default email editor, the 'insert -> signature ->....' option disappears from the menu. It seems that MS Word does not integrate too well with Outlook. To get back that menu option go to: Tool -> Options -> Mail Format , and uncheck the checkbox for 'use MS word to edit email messages'.

Now when you create a new email, click on 'Insert -> Signature' , to add your signature while writing the email.

Tuesday, July 31, 2007

Click to activate and use this content

The IE flash problem. See fixes
--> here 1 <--
--> here 2 <--

Monday, July 23, 2007

AJAX request overlapping

I am sure many people of faced the problem of multiple ajax requests overlapping each other's context. In english - when you placed 2 AJAX requests without any delay between them, the AJAX callback function receives only the data from the second request.

This happens due to caching problems in the browsers.

To avoid this i created a stack implementation in Javascript and used the stack to control my AJAX request. Consequently, the AJAX requests went out sequentially rather than all at once, but it was a trade-off i was willing to pay.

Sunday, July 15, 2007

Nirsoft ProduKey

ProduKey is a freeware utility to retrieve Windows and Microsoft Office Product Keys. It is one of the few utilities that even lets you run with command line parameters so you can use it in Windows Scripting. A great help for IT administrators!

--> ProduKey <--


keywords: office, exchange, microsoft, product key, serial, windows, xp, professional, retrieve, get, lost, scripting

Wednesday, July 11, 2007

HTML form problem with DIV tags, Javascript and Ajax

Issue
I am trying to load page2.jsp into a DIV tag in page1.jsp using Ajax. Further, page2.jsp has a hidden (visibility: hidden) DIV tag inside a table element and this DIV tag also has HTML form elements.
Now on page1.jsp, when I try to unhide the nested DIV tag, the textual content of the DIV tag shows up, but the FORM content disappears!

Reason
1. Some issue with IE HTML compliance. The above scenario is not on issue on Firefox2. But is an issue on IE7
2. This is probably something to do with z-index for the DIV tag and the default given to the FORM elements. I was never able to figure that out anyway
3. The DIV tag in page2.jsp has position: relative. position: absolute would not cause any problems, but of course, that setting is not what I needed

Work Around
I created a 2nd DIV tag on page2.jsp, right underneath the first DIV tag. It looks something like this

<a onclick="toggleDiv('buddydiv', false); toggleDiv('spacerdiv1', true);">
<div id="buddydiv" style="position: absolute; visibility: hidden;">
<input name="send_email" id="sendemail" value="checkbox" type="checkbox">
</div>
<div id="spacerdiv1" style="position: absolute; height: 160px; visibility: hidden "> </div>


Definition of toggleDIV
function toggleDiv(layerid, blockStyle) {
if(document.getElementById) {
var obj1 = document.getElementById(layerid);
if(obj1.style.visibility=='visible') {
obj1.style.visibility = "hidden";
if(blockStyle==true)
obj1.style.position = "absolute";
} else {
obj1.style.visibility = "visible";
if(blockStyle==true)
obj1.style.position = "relative";
}
}
}

Saturday, June 30, 2007

an AJAX script

this is the easiest and more brief script I've worked with in a while.

--> here <--

Monday, May 7, 2007

Java based bulletin board

In order of preference -

JForum (free)
Jive Forum
mvnForum (free)
MessageBoard Servlet (free)
NorthStarBBS (free)

keywords: Java bulletin board forum discussion based open source free opensource mvnforum jforum