Hey all,

With the new DQSD browser host thing we can configure almost every aspect of the browser, but there's still problems as soon as we do window.open or similar -- think the Help window.

At least with my tests the Help window invariably throws an InfoBar, since it's a brand new HTML document, running in the local machine zone, and executing javascript. Actually it's generated in its entirety *by* a javascript.

My plan for a solution for this has been to build a .htm stub forced into the zone for www.dqsd.net, so that it executes with Internet zone permissions (or Trusted Sites, depending on your settings), and have that generate the UI dynamically using jscript.

However, since we have no control of the user's configuration -- maybe they've disabled jscript for the Internet Zone -- we can't be sure it will just work.

So, yesterday (in the shower of all places) it occurred to me that we could introduce a home-brewn popup window, using the same host as the browser band, with the same programmatic security configuration (i.e. allow anything, for now.)

From jscript, you could invoke it something like this:

        // Customize?
        var windowOpts = '';

        var dlgMgr = new ActiveXObject("DQSDTools.DialogManager");
        dlgMgr.OpenWindow("C:\\window.htm", windowOpts);

Then it would behave more or less as a standard browser window, except that we can customize the window title, error messages, security policy, etc. Of course there's no need to implement a proper browser window like IE, I thought I'd keep it stripped down, so the HTML/script content could do the magic. We could easily set a DQSD icon in the title bar, though, which would tie it together nicely, I think.

I haven't looked into what it would take to build such a thing, but it shouldn't be too hard, now that we have a host implementation in place.

Thoughts?

- Kim


------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Archive: https://lists.sourceforge.net/lists/listinfo/dqsd-devel

Reply via email to