good work Duncan - many thanks, will give it a go
_______________________________________________________
* Regards,
Richard Lovelock
Westminster City Council - Web Support
Cap Gemini Ernst & Young
Southbank
95 Wandsworth Road
London
SW8 2HG
( 0870 906 7482
_______________________________________________________
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: 05 December 2003 11:59
To: [EMAIL PROTECTED]
Subject: Re: [ cf-dev ] window.open
http://developer.irt.org/script/1416.htm
Duncan Cumming
IT Manager
http://www.alienationdesign.co.uk
mailto:[EMAIL PROTECTED]
Tel: 0141 575 9700
Fax: 0141 575 9600
Creative solutions in a technical world
----------------------------------------------------------------------
Get your domain names online from:
http://www.alienationdomains.co.uk
Reseller options available!
----------------------------------------------------------------------
----------------------------------------------------------------------
"Lovelock,
Richard J" To:
"'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
<richard.lovelock cc:
@cgey.com> Subject: [ cf-dev ]
window.open
05/12/2003 11:15
Please respond to
dev
If I am opening a new window with:
<div
onMouseOver="profile=window.open
('http://www.google.co.uk','','width=550,hei
ght=600,scrollbars=yes,top=200,left=250')"
onMouseOut="profile.close()">New</div>
The "top=200,left=250" seems to be the position relative to the top left of
the monitor screen - is this correct?
I was hoping that it was relative to the top left of the internet browser
window - is there any way of doing this?
I am trying to do a popup window which closes on mouseout - which is fine
with IE maximised - but if you reduce the window size of IE in some
positions it goes in to a kind of infinite loop where the window keeps
opening and closing.
_______________________________________________________
* Regards,
Richard Lovelock
Westminster City Council - Web Support
Cap Gemini Ernst & Young
Southbank
95 Wandsworth Road
London
SW8 2HG
( 0870 906 7482
_______________________________________________________
-----Original Message-----
From: Paolo Piponi [mailto:[EMAIL PROTECTED]
Sent: 26 November 2003 11:29
To: '[EMAIL PROTECTED]'
Subject: RE: [ cf-dev ] window.close
I have tested this code an it works fine in IE:
=====================================================================
<script>windowName=null;</script>
test<br><br>
test<br><br>
<div onMouseOver="windowName=window.open('http://www.google.co.uk')"
onMouseOut="windowName.close()">test</div><br>
test<br><br>
test<br><br>
=====================================================================
Paolo
> -----Original Message-----
> From: Lovelock, Richard J [mailto:[EMAIL PROTECTED]
> Sent: 26 November 2003 11:21
> To: '[EMAIL PROTECTED]'
> Subject: RE: [ cf-dev ] window.close
>
>
> ok..taking all the advice given (thank you)
>
> my code has function:
>
> function openWindow()
> {
> var tom = window.open('/reports/matchreport' + #match_id# +
> '.htm','tom','width=550,height=600,scrollbars=yes,top=200,left=350');
> }
>
> and a/img code:
> <a href="##"
> onMouseOut="MM_swapImgRestore()"
> onMouseOver="MM_swapImage('tommo','','images/tommotalksover.gif',1)">
> <img
> src="images/tommotalks.gif"
> alt="View Tommo's match report"
> name="tommo"
> width="140" height="30"
> border="0" align="absmiddle"
> onMouseOver="openWindow
()"
>
> onMouseOut="window.close('tom')">
> </a>
>
> but it is still not working - not even opening now!!??
>
> Duncan you suggested that I may have to declare the variable
> Tom first?
> Would I do this with a Dim Tom before the function (I am not
> very JS savvy)?
>
> (i also have a onmouseover on the <a> tag and on the <img> tag which i
> thought may be a problem - but even removing the onMouse
> commands from the
> img tag didn't make a difference)
> _______________________________________________________
> * Regards,
> Richard Lovelock
> Westminster City Council - Web Support
> Cap Gemini Ernst & Young
> Southbank
> 95 Wandsworth Road
> London
> SW8 2HG
> ( 0870 906 7482
>
> _______________________________________________________
>
>
> -----Original Message-----
> From: Paolo Piponi [mailto:[EMAIL PROTECTED]
> Sent: 26 November 2003 10:51
> To: '[EMAIL PROTECTED]'
> Subject: RE: [ cf-dev ] window.close
>
>
> When opening a new window use code like this:
>
> windowname=window.open(...parameters here...)
>
> This seems to be the only way of naming the actual object.
>
> You can then use windowname.close().
>
> Paolo
>
> > -----Original Message-----
> > From: Lovelock, Richard J [mailto:[EMAIL PROTECTED]
> > Sent: 26 November 2003 10:45
> > To: '[EMAIL PROTECTED]'
> > Subject: RE: [ cf-dev ] window.close
> >
> >
> > i have tried that but it is saying 'tom' is undefined - it is
> > asthough it is
> > not recognising the name of the pop up window but i have
> specified it
> > (perhaps incorrectly) ??
> >
> > _______________________________________________________
> > * Regards,
> > Richard Lovelock
> > Westminster City Council - Web Support
> > Cap Gemini Ernst & Young
> > Southbank
> > 95 Wandsworth Road
> > London
> > SW8 2HG
> > ( 0870 906 7482
> >
> > _______________________________________________________
> >
> >
> > -----Original Message-----
> > From: Tomo Smith [mailto:[EMAIL PROTECTED]
> > Sent: 26 November 2003 10:40
> > To: [EMAIL PROTECTED]
> > Subject: Re: [ cf-dev ] window.close
> >
> >
> > I would go with Stephen's answer,
> > tom.close();
> >
> > That's what says in the clientside javascript reference from
> > the people that
> > made JS in the first place..
> >
> > ----- Original Message -----
> > From: "Lovelock, Richard J" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, November 26, 2003 10:28 AM
> > Subject: RE: [ cf-dev ] window.close
> >
> >
> > > Stephen
> > >
> > > http://docserver.userland.com/window/close suggests otherwise??
> > >
> > > _______________________________________________________
> > > * Regards,
> > > Richard Lovelock
> > > Westminster City Council - Web Support
> > > Cap Gemini Ernst & Young
> > > Southbank
> > > 95 Wandsworth Road
> > > London
> > > SW8 2HG
> > > ( 0870 906 7482
> > >
> > > _______________________________________________________
> > >
> > >
> > > -----Original Message-----
> > > From: Stephen Moretti [mailto:[EMAIL PROTECTED]
> > > Sent: 26 November 2003 10:23
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: [ cf-dev ] window.close
> > >
> > >
> > > windows.close() doesn't take any attributes in the function
> > for window
> > name.
> > >
> > > Grasping at straws..... Try tom.close() instead.
> > >
> > > Stephen
> > >
> > >
> > > Lovelock, Richard J wrote:
> > > > Morning all
> > > >
> > > > I am trying to open a pop-up window using onMouseOver of
> > an image then
> > > close
> > > > the poped-up window with onMouseOut.
> > > >
> > > > Window pop-up fine but when 'mousing-out' it prompts
> > whether i want to
> > > close
> > > > window and if you select yes it closes the window
> > underneath not the
> > > popped
> > > > up one. Code is below. What am I doing wrong?
> > > >
> > > > <img src="images/tommotalks.gif" alt="View Tommo's match report"
> > > > name="tommo" width="140" height="30" border="0"
> align="absmiddle"
> > > > onMouseOver="MM_openBrWindow('/reports/matchreport' +
> #match_id# +
> > > >
> >
> '.htm','tom','width=550,height=600,scrollbars=yes,top=200,left=350')"
> > > > onMouseOut="window.close('tom')">
> > > >
> > > > You can see it below at
> > > > http://fclounge.cfdeveloper.co.uk/matchreport.cfm?match_id=11
> > > >
> > >
> > <http://fclounge.cfdeveloper.co.uk/matchreport.cfm?match_id=11
> > &Allplayers=ye
> > > > s> &Allplayers=yes
> > > > on the Tommo Talks button
> > > >
> > > >
> >
> _______________________________________________________<?xml:namespace
> > > > prefix = o ns = "urn:schemas-microsoft-com:office:office" />
> > > >
> > > > * Regards,
> > > > Richard Lovelock
> > > >
> > > > Westminster City Council - Web Support
> > > > Cap Gemini Ernst & Young
> > > > Southbank
> > > > 95 Wandsworth Road
> > > > London
> > > > SW8 2HG
> > > >
> > > > ( 0870 906 7482
> > > >
> > > > _______________________________________________________
> > > >
> > > >
> > > >
> > > >
> > > > =======================================================
> > > > This message contains information that may be privileged
> > or confidential
> > > and is the property of the Cap Gemini Ernst & Young Group.
> > It is intended
> > > only for the person to whom it is addressed. If you are not
> > the intended
> > > recipient, you are not authorised to read, print, retain, copy,
> > disseminate,
> > > distribute, or use this message or any part thereof. If you
> > receive this
> > > message in error, please notify the sender immediately and
> > delete all
> > copies
> > > of this message.
> > > > =======================================================
> > > >
> > > >
> > >
> > > --
> > > ** Archive:
> > http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> > >
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > For human help, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > > =======================================================
> > > This message contains information that may be privileged or
> > confidential
> > and is the property of the Cap Gemini Ernst & Young Group. It
> > is intended
> > only for the person to whom it is addressed. If you are not
> > the intended
> > recipient, you are not authorised to read, print, retain,
> > copy, disseminate,
> > distribute, or use this message or any part thereof. If you
> > receive this
> > message in error, please notify the sender immediately and
> > delete all copies
> > of this message.
> > > =======================================================
> > >
> > >
> > > --
> > > ** Archive:
> > http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> > >
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > For human help, e-mail: [EMAIL PROTECTED]
> >
> >
> > --
> > ** Archive:
http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
>
>
> =======================================================
> This message contains information that may be privileged or
> confidential and is the property of the Cap Gemini Ernst &
> Young Group. It is intended only for the person to whom it is
> addressed. If you are not the intended recipient, you are not
> authorised to read, print, retain, copy, disseminate,
> distribute, or use this message or any part thereof. If you
> receive this message in error, please notify the sender
> immediately and delete all copies of this message.
> =======================================================
>
>
> --
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
>
--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]
=======================================================
This message contains information that may be privileged or confidential
and
is the property of the Cap Gemini Ernst & Young Group. It is intended only
for the person to whom it is addressed. If you are not the intended
recipient, you are not authorised to read, print, retain, copy,
disseminate,
distribute, or use this message or any part thereof. If you receive this
message in error, please notify the sender immediately and delete all
copies
of this message.
=======================================================
--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]
--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]
=======================================================
This message contains information that may be privileged or confidential
and is the property of the Cap Gemini Ernst & Young Group. It is intended
only for the person to whom it is addressed. If you are not the intended
recipient, you are not authorised to read, print, retain, copy,
disseminate, distribute, or use this message or any part thereof. If you
receive this message in error, please notify the sender immediately and
delete all copies of this message.
=======================================================
--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]
--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]
=======================================================
This message contains information that may be privileged or confidential and is the
property of the Cap Gemini Ernst & Young Group. It is intended only for the person to
whom it is addressed. If you are not the intended recipient, you are not authorised to
read, print, retain, copy, disseminate, distribute, or use this message or any part
thereof. If you receive this message in error, please notify the sender immediately
and delete all copies of this message.
=======================================================
--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]