Discussion:
Displaying a pop-up window from chm in Windows 7
(too old to reply)
Jim Walsh
2009-10-02 20:05:02 UTC
Permalink
I am developing HTML Help for my C++/MFC application. I am using the
Microsoft Help Workshop version 1.3, I think: About HTML Help Workshop says
4.74.8702.0.

In any case, I have the help working, but with one problem, that only occurs
in Windows 7.

I have created a bookmark with an OnClick event to call FP_openNewWindow()
to pop up a new window to display another page (Fig1.htm) that contains an
image. I want the window to pop up without any menus, toolbars, status bars,
etc, and of a size just large enough to contain the page. Here is the code
that I am using:

<a style="cursor:pointer" onclick="FP_openNewWindow('825', '350', false,
false, false, false, false, true, 'ContextTopic', /*href*/'Fig1.htm');"
id="id2"> Figure 1</a>

This works fine in WinXP. However, when the Window pops up in Win7, it comes
up as a full-blown IE window, about 3/4 the size of the screen with all the
"bars": menu, location, toolbar, status bar, etc.

Anyone know how to get this to work in Win7?

Is there another forum in which I should be posting this question?

Thanks,
Jim
Rob Chandler [MVP]
2009-10-04 05:56:46 UTC
Permalink
Hi Jim

So the function you are calling looks like a MS Frontpage function.
I'd recommend you use a more standard function call.
Try this instead of FP_openNewWindow

window.open('http://url/page.htm',
'PopOver','height=300,width=500,location=no,scroll bars=0,ontop=true');

http://www.javascripter.net/faq/openinga.htm

Cheers
Rob Chandler
http://Helpware.net
Post by Jim Walsh
I am developing HTML Help for my C++/MFC application. I am using the
Microsoft Help Workshop version 1.3, I think: About HTML Help Workshop says
4.74.8702.0.
In any case, I have the help working, but with one problem, that only occurs
in Windows 7.
I have created a bookmark with an OnClick event to call FP_openNewWindow()
to pop up a new window to display another page (Fig1.htm) that contains an
image. I want the window to pop up without any menus, toolbars, status bars,
etc, and of a size just large enough to contain the page. Here is the code
<a style="cursor:pointer" onclick="FP_openNewWindow('825', '350', false,
false, false, false, false, true, 'ContextTopic', /*href*/'Fig1.htm');"
id="id2"> Figure 1</a>
This works fine in WinXP. However, when the Window pops up in Win7, it comes
up as a full-blown IE window, about 3/4 the size of the screen with all the
"bars": menu, location, toolbar, status bar, etc.
Anyone know how to get this to work in Win7?
Is there another forum in which I should be posting this question?
Thanks,
Jim
Jim Walsh
2009-10-05 20:21:01 UTC
Permalink
Rob,

Thanks for your quick reply.

Actually the FP_openNewWindow() function is a function that calls
window.open().

Although, I changed my code to directly call window.open() as follows:

<a style="cursor:pointer" onclick="window.open('Fig1.htm', 'PopOver',
'height=350, width=825, location=no, menubar=no, scrollbars=no, status=no,
titlebar=no, toolbar=no, ontop=true');" id="id2">

With the same outcome. Works fine in WinXP, and I get a popup in Win7, but
with all the "bars": location, status, menu, toolbars, etc.

Any other ideas? Thanks.
Jim
Post by Rob Chandler [MVP]
Hi Jim
So the function you are calling looks like a MS Frontpage function.
I'd recommend you use a more standard function call.
Try this instead of FP_openNewWindow
window.open('http://url/page.htm',
'PopOver','height=300,width=500,location=no,scroll bars=0,ontop=true');
http://www.javascripter.net/faq/openinga.htm
Cheers
Rob Chandler
http://Helpware.net
Post by Jim Walsh
I am developing HTML Help for my C++/MFC application. I am using the
Microsoft Help Workshop version 1.3, I think: About HTML Help Workshop says
4.74.8702.0.
In any case, I have the help working, but with one problem, that only occurs
in Windows 7.
I have created a bookmark with an OnClick event to call FP_openNewWindow()
to pop up a new window to display another page (Fig1.htm) that contains an
image. I want the window to pop up without any menus, toolbars, status bars,
etc, and of a size just large enough to contain the page. Here is the code
<a style="cursor:pointer" onclick="FP_openNewWindow('825', '350', false,
false, false, false, false, true, 'ContextTopic', /*href*/'Fig1.htm');"
id="id2"> Figure 1</a>
This works fine in WinXP. However, when the Window pops up in Win7, it comes
up as a full-blown IE window, about 3/4 the size of the screen with all the
"bars": menu, location, toolbar, status bar, etc.
Anyone know how to get this to work in Win7?
Is there another forum in which I should be posting this question?
Thanks,
Jim
Rob Chandler [MVP]
2009-10-07 12:01:02 UTC
Permalink
Hi Jim
All I can think of is to check you syntax carefully. Maybe IE8 (win7) is a
bit fussier.
I have an XP and Win7 PC here.. If you like send me a small example I can
try.
Rob
support AT helpware dot net
Post by Jim Walsh
Rob,
Thanks for your quick reply.
Actually the FP_openNewWindow() function is a function that calls
window.open().
<a style="cursor:pointer" onclick="window.open('Fig1.htm', 'PopOver',
'height=350, width=825, location=no, menubar=no, scrollbars=no, status=no,
titlebar=no, toolbar=no, ontop=true');" id="id2">
With the same outcome. Works fine in WinXP, and I get a popup in Win7, but
with all the "bars": location, status, menu, toolbars, etc.
Any other ideas? Thanks.
Jim
Post by Rob Chandler [MVP]
Hi Jim
So the function you are calling looks like a MS Frontpage function.
I'd recommend you use a more standard function call.
Try this instead of FP_openNewWindow
window.open('http://url/page.htm',
'PopOver','height=300,width=500,location=no,scroll bars=0,ontop=true');
http://www.javascripter.net/faq/openinga.htm
Cheers
Rob Chandler
http://Helpware.net
Post by Jim Walsh
I am developing HTML Help for my C++/MFC application. I am using the
Microsoft Help Workshop version 1.3, I think: About HTML Help Workshop says
4.74.8702.0.
In any case, I have the help working, but with one problem, that only occurs
in Windows 7.
I have created a bookmark with an OnClick event to call
FP_openNewWindow()
to pop up a new window to display another page (Fig1.htm) that contains an
image. I want the window to pop up without any menus, toolbars, status bars,
etc, and of a size just large enough to contain the page. Here is the code
<a style="cursor:pointer" onclick="FP_openNewWindow('825', '350', false,
false, false, false, false, true, 'ContextTopic', /*href*/'Fig1.htm');"
id="id2"> Figure 1</a>
This works fine in WinXP. However, when the Window pops up in Win7, it comes
up as a full-blown IE window, about 3/4 the size of the screen with all the
"bars": menu, location, toolbar, status bar, etc.
Anyone know how to get this to work in Win7?
Is there another forum in which I should be posting this question?
Thanks,
Jim
Jim Walsh
2009-10-07 14:21:01 UTC
Permalink
Rob,

I think this must be some kind of "security" thing with Win7. The popup
windows comes up just fine in WinXP/IE8.

Oddly, yesterday, while working on my chm development on my Win7/IE8 system,
I opened one of my htm files directly in IE8, and clicked on a link to one of
my pop-up windows, and it came up just fine. But, if I click on the same
link while running the chm, the pop-up windows come up all wrong, i.e. with
all of the "bars".

Sounds to me like Win7/IE8 maybe "trusts" the pop-up when it comes directly
from the htm in IE8, but not when it comes from my chm.

Any thoughts about this.
Jim
Post by Rob Chandler [MVP]
Hi Jim
All I can think of is to check you syntax carefully. Maybe IE8 (win7) is a
bit fussier.
I have an XP and Win7 PC here.. If you like send me a small example I can
try.
Rob
support AT helpware dot net
Post by Jim Walsh
Rob,
Thanks for your quick reply.
Actually the FP_openNewWindow() function is a function that calls
window.open().
<a style="cursor:pointer" onclick="window.open('Fig1.htm', 'PopOver',
'height=350, width=825, location=no, menubar=no, scrollbars=no, status=no,
titlebar=no, toolbar=no, ontop=true');" id="id2">
With the same outcome. Works fine in WinXP, and I get a popup in Win7, but
with all the "bars": location, status, menu, toolbars, etc.
Any other ideas? Thanks.
Jim
Post by Rob Chandler [MVP]
Hi Jim
So the function you are calling looks like a MS Frontpage function.
I'd recommend you use a more standard function call.
Try this instead of FP_openNewWindow
window.open('http://url/page.htm',
'PopOver','height=300,width=500,location=no,scroll bars=0,ontop=true');
http://www.javascripter.net/faq/openinga.htm
Cheers
Rob Chandler
http://Helpware.net
Post by Jim Walsh
I am developing HTML Help for my C++/MFC application. I am using the
Microsoft Help Workshop version 1.3, I think: About HTML Help Workshop says
4.74.8702.0.
In any case, I have the help working, but with one problem, that only occurs
in Windows 7.
I have created a bookmark with an OnClick event to call
FP_openNewWindow()
to pop up a new window to display another page (Fig1.htm) that contains an
image. I want the window to pop up without any menus, toolbars, status bars,
etc, and of a size just large enough to contain the page. Here is the code
<a style="cursor:pointer" onclick="FP_openNewWindow('825', '350', false,
false, false, false, false, true, 'ContextTopic', /*href*/'Fig1.htm');"
id="id2"> Figure 1</a>
This works fine in WinXP. However, when the Window pops up in Win7, it comes
up as a full-blown IE window, about 3/4 the size of the screen with all the
"bars": menu, location, toolbar, status bar, etc.
Anyone know how to get this to work in Win7?
Is there another forum in which I should be posting this question?
Thanks,
Jim
Loading...