65.9K
CodeProject is changing. Read more.
Home

Dahlia Debug-Device Browser Bar

starIconstarIconstarIcon
emptyStarIcon
starIcon
emptyStarIcon

3.80/5 (5 votes)

Jul 26, 2003

viewsIcon

64746

downloadIcon

756

An Internet Explorer browser bar, which acts as a pseudo-debug output device

Sample Image - dahlia.jpg

Introduction

An IE browser bar, which acts as a target for pseudo-debug messages from client scripts.

Background

In just about every web-application I develop, I end up creating some IFRAME or new window to act as a target for various debug related messages. I finally decided that this would be much easier if it was wrapped up in a browser bar.

Using the code

Copy Dahlia.dll to your favorite directory, and run regsvr32 against it. Alternatively, build the project.

Points of Interest

The code has only been tested against IE6 on WinXP

The browser-bar works by creating a property on the document's parentWindow which references the component. Scripts can then call against the component to perform actions in the browser-bar.

Included are a few files which demonstrate the browser-bar's usage. dahlia.js is a script wrapper around the document.parentWindow.debugDevice property which is assigned by the browser-bar. dahliaTest.htm is a sample HTML file which uses dahlia.js.

Other than that, the code is documented well enough to follow, but if you have any questions, ask.

History

  • 7/20/2003 - Submitted