>- see footer for list info -<
... or ...
if(!sWidth) {
sWidth=*whatever*;
}
if(!sHeight) {
sHeight=*whatever*;
}
________________________________
From: Duncan Cumming [mailto:[EMAIL PROTECTED]
Sent: 28 July 2006 10:25
To: [email protected]
Subject: Re: [CF-Dev] JS - OT
>- see footer for list info -<
so the link either has a url, width and height, or just the url?
if (arguments.length != 3)
{
// didn't pass in the width and height parameters
var sWidth = 600;
var sHeight = 400;
}
Duncan Cumming
New Media Developer
Customer Relations Management / Education
Fife Council
700 4105 / 01592 414105
>>> [EMAIL PROTECTED] 28/07/2006 10:11:50 >>>
>- see footer for list info -<
Hi all,
not too au fait with js, and I'm sure this is stoopidly simple!
I have an window.open JS function as follows:
<!-- Begin
function popUp(sURL,sWidth,sHeight) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(sURL, '" + id + "',
'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,wid
th='
+ sWidth + ',height=' + sHeight + '');");
}
// End -->
I can set width/height in the link I use to open a new window.
However,
I want to be able to set defaults for width/height in this
function in
case my link doesn't contain these params. How do I specify this
in the
function?
Thanks, Damien
_______________________________________________
For details on ALL mailing lists and for joining or leaving
lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo
--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer
your help -<
**********************************************************************
This email and any files transmitted with it are confidential
and intended solely for the use of the individual or entity to whom they
are addressed and should not be disclosed to any other party.
If you have received this email in error please notify your
system manager and the sender of this message.
This email message has been swept for the presence of computer
viruses but no guarantee is given that this e-mail message and any
attachments are free from viruses.
Fife Council
Tel: 08451 55 00 00
************************************************
_______________________________________________
For details on ALL mailing lists and for joining or leaving
lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo
--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer
your help -<
************************************************************************
**** Notice: This e-mail and any attachments are confidential and may
contain legally privileged information and/or copyright material of
Hansen Technologies Limited or third parties. Copying, distributing,
disclosing, commercialising or otherwise acting in reliance on this
e-mail and any attachments is strictly prohibited unless you are the
addressee of this e-mail and have written permission to do so. If you
have received this e-mail in error please delete this e-mail (including
any copies and attachments) and contact Hansen Technologies Limited by
return e-mail or by telephone on + 61 39840 3000. Any views expressed
in this e-mail are those of the individual sender and may not
necessarily reflect the views of or be a commitment by the organisation,
except where the individual sender has the authority and expressly
states them to be so.
************************************************************************
****
_______________________________________________
For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo
--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<