TechWhirl (TECHWR-L) is a resource for technical writing and technical communications professionals of all experience levels and in all industries to share their experiences and acquire information.
For two decades, technical communicators have turned to TechWhirl to ask and answer questions about the always-changing world of technical communications, such as tools, skills, career paths, methodologies, and emerging industries. The TechWhirl Archives and magazine, created for, by and about technical writers, offer a wealth of knowledge to everyone with an interest in any aspect of technical communications.
Subject:Re: Secondary Windows and HTML Help From:"Wing, Michael J" <mjwing -at- INGR -dot- COM> Date:Mon, 17 Nov 1997 15:43:44 -0600
> -----Original Message-----
> A colleague passed along a bit of code but I haven't been
> able to make it work. I am working with IE 3.02. Here is the code:
>
>
> <form><input type=button value="What you want on the button here"
> onClick="window.open ('yourHTMLfilehere.html', 'cuecrpro',
> 'scrollbars,resizable,height=400,width=275');"><p></form>
>
> I have a hunch IE doesn't support this type of code...I just get
> script
> errors. Does anyone have anything that works on IE 3.02?
>
>
> Any suggestions are much appreciated,
>
>
> > BaaN
> >
> > Peter Kelly,
>
Peter;
I did some dabbling with 3.02 before going to IE4.0. I was able
to get the window to open; however, it was immediately followed by a
scripting error. I got around it by calling a subroutine and using the
"On Error Resume Next" statement. This statement allowed the window to
open while suppressing the scripting error.
The subroutine uses an argument (File). This argument accepts
the name of the HTML file to open in the window. Using the subroutine
with the argument allows it to be called for numerous examples without
having to set the window parameters for each call. The subroutine is as
follows:
<script language="VBScript">
<!--
sub openwindow(File)
on error resume next
window.open File, "Example", "scrollbars=yes, top=100,
left=100, width=700, height=600"
end sub
-->
</script>
<p>To open window click <a
href="javascript:openwindow('MyHtml.htm')">here</a>.</p>
>
>
--- By the way, does calling the window parameters with the
'resizeable= yes' or 'scrollbar= no' syntax instead of just stating
''resizeable" solve part of your problem?