web analytics

Category: Tools/Tech

Enable/Disable DIV tags through Javascript 0

Enable/Disable DIV tags through Javascript

Copy/Paste following javascript code snippet. <script type="text/javascript"> function toggleAlert() { toggleDisabled(document.getElementById("content")); } function toggleDisabled(el) { try { el.disabled = el.disabled ? false : true; } catch(E){ } if (el.childNodes && el.childNodes.length > 0) {...

Return the value for the specific attribute using XPathNodeIterator 0

Return the value for the specific attribute using XPathNodeIterator

I will use the following XML document in the example below. <? xml version="1.0" encoding="utf-8" ?> < users > < user FirstName ="Tom" LastName ="Adams" Age ="23" /> < user FirstName ="Jhon" LastName ="Brams"...

Changing the background color of a dialog 0

Changing the background color of a dialog

I have found this proper way to set the color of CDialog in MFC application. Write this Function in your class. HBRUSH CCaptureOPtionsDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) { if( nCtlColor == 6 )...

AJAX Tab Container – Style Problem 3

AJAX Tab Container – Style Problem

Cause Since the release of ASP.Net 2.0, all the pages’ DTD are set to XHTML 1.0 Transitional by default. Consequently, AJAX Control Toolkits were also created to adhere with standard. All the rendered AJAX...

CSS – Conditional Statements 0

CSS – Conditional Statements

For CSS to work in cross browser environment, we have to write some conditional statements to make our styles look same in all the browsers. Below is the sample code that demonstrate how to...