[Javascript] opening window

Rodney Myers rodney at aflyingstart.net
Wed Jun 13 12:50:57 CDT 2001


Great link Ben, Thanks very much.

There is a link to download a zip there which contains
launch.htm
test.htm
a .js file and some images.

launch.htm has links to open and close the windows.
In MSIE 5.5 (Win 98) the windows have a narrow border, in a defined colour
(black) a title and images for minimise and close - which work. I did find that
when one window was closed others open also closed despite having different
handles.

In NN4.7 you get a fairly ordinary 'sized' window. But the script does not fall
over. Browser detection as ever would need a close look. Same performance in
NN6.01

test.htm is a simple file which is displayed.
The images and title bar are in a top frame because the .js file - which is
quite complex - writes a frameset.

I thought I would try to get rid of the title bar and icons, as per the original
question from Andrew.

Not having a title is easy:
in function openIT()
 titHTML       = ""; // displayed title in coloured top frame
 titWIN   = ""; // title in status bar

Suppressing the images, in a quick and dirty way was also easy, since there is a
none.gif provided:

 CLOSEdwn   = "img/none.gif"
 CLOSEup   = "img/none.gif"
 CLOSEovr   = "img/none.gif"
 MINIdwn   = "img/none.gif"
 MINIup    = "img/none.gif"
 MINIovr   = "img/none.gif"
 NONEgrf   = "img/none.gif"
 CLOCKgrf  = "img/none.gif"

The colour of the top frame (Red) is contrlled with
 winBGCOLOR      = "#FF0000"
and can be altered.

There are various layers defined in the .js of which I altered the height,
without much confidence, vut what really worked to minimise the top frame was
altering this line

'<frameset border=0 framespacing=0 frameborder=0 rows="1,20,1,100%,1">        '+
'\n'+
to
'<frameset border=0 framespacing=0 frameborder=0 rows="1,1,1,100%,1">        '+
'\n'+

BTW, my text editor showed me a lot of non keyboard characters in the .js file,
displayed as little squares. The first thing I did was to remove these from a
renamed copy of the file and test. Their removal had no noticeable effect -
except to take about 1800 chars out of the .js file size!

All the windows produced icons on the task bar, but these did not repond to
clicks. You cannot close these windows from the task bar. AltF4 will work (but
not everyone knows that) and both the close links in launch.htm and the icons in
the top frame worked. Without those, you may frustrate your users, unless you
provide a clear cloe window link within the window.

Not sure if I will use these windows. These things take time to settle, and non
Mac use would be a problem for our users for sure. But fun!


Rodney

Ben Curtis wrote:

> > > > >    Is it possible to get rid of the top part of a window,
> > > > > the part with the minimize and X buttons? If it is possible
> > > > > could you please explain how.
> > > > >
> > > > No, not in javascript.
> > > >
> > > err, it is actually.  I think in IE you can do something funky
> > > with opening a new window, setting it to be full-screen, and
> > > setting the height & width at the same time.
> > >
> >
> > As ever, I look forward to being proved wrong in this list, as
> > has happened before and will happen again. That is much of what
> > makes the list worthwhile, in my opinion.
> >
>
> Here's where I saw it before:
>
> http://www.microbians.com/
>
> I hope it still works, but I'm on a Mac now and it's IE and Windows only. It
> *does* use "fullscreen" to open a chromeless window, but then it resizes the
> window using Javascript (the user cannot resize a chromeless window).
>
> If you use this, be kind to your users and give them as much window control
> as they are used to: resizing, closing, etc., can all be done with
> Javascript so you had better provide it.
>
> +Ben Curtis
> ...just this guy, you know?
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> http://www.LaTech.edu/mailman/listinfo/javascript

--
Shop at ssistant Add-ons and Developer Workshops
http://www.aflyingstart.net/addons/

Enquiries regarding Shop at ssistant Classic training :
Call 01256 880770

Rodney Myers
Based in Oxford, England
Technical Director, Shop at ssistant eCommerce Solutions

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20010613/976e74f8/attachment.htm>


More information about the Javascript mailing list