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.
Sunday, May 24, 2009
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.
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
www.officelive.com
www.smallbusiness.officelive.com
www.workspace.officelive.com
www.home.officelive.com
single login is enough to all
enjoy
Thursday, April 2, 2009
Exploring Session in ASP.Net
Exploring Session in ASP.Net - This article will give you a very good understanding of session. Also covered basic of session, different types of storing session object, Session behavior in web farm scenarios , Session on Load Balancer etc.
Friday, February 6, 2009
Subscribe to:
Posts (Atom)