Sunday, May 24, 2009

Fire Fox options.remove issue

Using document.getElementById(elementID).options.remove(0); in order to remove the option from "drop down" in java script. It support only IE browsers and not Fire Fox.

For Fire Fox use DOM1+ methods, which in this case is removeChild(), or the DOM0 method.

or
document.getElementById(elementID).remove(0); // it also supports

Example

objSelect.options.remove(objSelect.length - 1); //support IE only
objSelect.remove(objSelect.length - 1); // Support all browsers

Here objSelect is the dropdown.

FireFox Javascript document.all

In javascript to get the page's control id in user control used in that page, we used "document.all". But in firefox browser it is not supported. Instead of "document.all" use "document.getElementsByTagName("body")[0].getElementsByTagName("*")"

Example:
var objState = document.all.state; //for IE and other browsers

var objState = document.getElementsByTagName("body")[0].getElementsByTagName("*").state; // For all browsers including firefox

Here state is the control used in the page.

Friday, May 22, 2009

Office Live

Microsift introduced Office Live.

www.officelive.com
www.smallbusiness.officelive.com
www.workspace.officelive.com
www.home.officelive.com

single login is enough to all

enjoy