[Javascript] Javascript digest, Vol 1 #460 - 14 msgs

sandra_tibbs at abicon.com sandra_tibbs at abicon.com
Tue Dec 17 11:40:45 CST 2002


(Embedded image moved to file: pic19796.jpg)
Send Javascript mailing list submissions to
      javascript at LaTech.edu

To subscribe or unsubscribe via the World Wide Web, visit
      http://www.LaTech.edu/mailman/listinfo/javascript
or, via email, send a message with subject or body 'help' to
      javascript-request at LaTech.edu

You can reach the person managing the list at
      javascript-admin at LaTech.edu

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Javascript digest..."


Today's Topics:

   1. Re: disable "ctrl+n" (Dan Costea)
   2. Help wanted re. Daylight-Saving Time values (Tim Makins)
   3. How can i create new <OPTION> elements of a visible <SELECT> element
from a hidden <SELECT> element ? (M. Amin)
   4. Re: Help wanted re. Daylight-Saving Time values (Peter-Paul Koch)
   5. Re: How can i create new <OPTION> elements of a visible <SELECT> el
(Peter-Paul Koch)
   6. RE: How can i create new <OPTION> elements of a visi
       ble <SELECT> el (Phil Winstanley)
   7. jscript and ADO (Marina mem.284512)
   8. ditect flash (Kelly Zhu)
   9. Re: ditect flash (Peter-Paul Koch)
  10. RE: ditect flash (Alan Easton)
  11. Re: ditect flash (Kelly Zhu)
  12. CSS for IE and NS (FERON Matthieu)
  13. RE: CSS for IE and NS (Muchacho, Laurent (TWIi London))

--__--__--

Message: 1
From: "Dan Costea" <costea at ssi-schaefer-noell.com>
To: <javascript at LaTech.edu>
Subject: Re: [Javascript] disable "ctrl+n"
Date: Mon, 19 Nov 2001 19:07:28 -0800
Reply-To: javascript at LaTech.edu

I use IE as user interfaces for a project. I open all pages that the user
need to see and they are without any toolbar. They are opened something
like
this:

var win = window.open ("about:blank", "_blank",
"top=0,left=0,width=0,height=0,resizable=yes,scrollbars=yes");

the user don't have even the context menu (I made a project dependent
context menu).



> Just out of interest, how do you intend to stop them doing File|New or
> simply opening another browser from the desktop/program group shortcut?
>
>  .b
>
> ----- Original Message -----
> From: "Dan Costea" <costea at ssi-schaefer-noell.com>
> To: <javascript at LaTech.edu>
> Sent: Tuesday, November 20, 2001 12:18 AM
> Subject: [Javascript] disable "ctrl+n"
>
>
> > Hi,
> >
> > I work with IE5.5 and I don't want to let the user to use ctrl+n. I
made
a
> > function that I call from <body> on onKeyDown event:
> >
> > function notAllowed (nKeyCode)
> > {
> >     if ( (78 == nKeyCode) && (event.ctrlKey) ) {
> >         alert ("Sorry, not allowed!");
> >     }
> > }
> >
> > The problem is that page has many objects and it is loading slowly. So
the
> > user can press ctrl+n before the page is load. How can I stop him to do
> > that?
> >
> >
> > Thankyou, Dan Costea
> >
> > _______________________________________________
> > Javascript mailing list
> > Javascript at LaTech.edu
> > http://www.LaTech.edu/mailman/listinfo/javascript
> >
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> http://www.LaTech.edu/mailman/listinfo/javascript
>


--__--__--

Message: 2
From: "Tim Makins" <tim at makins.buyandsell.ie>
To: <javascript at LaTech.edu>
Date: Mon, 19 Nov 2001 18:39:02 -0000
Subject: [Javascript] Help wanted re. Daylight-Saving Time values
Reply-To: javascript at LaTech.edu

RE: [Javascript] Loading two frames on one linkHi - if any javascript
experts want something to get their heads around, I'd be grateful if you
would have a look at this page that I've been playing around with.

http://www.qsl.net/ei8ic/timetest.html

The problem with the display is that apart from the 'Local Time' box, none
of the others show daylight-saving offsets. The reason for this is that
although its possible to find out the local computer offset using the
'getTimezoneOffset()' command, it doesn't tell you whether the offset is
currently in use. Therefore, all the other time zones have to be referenced
to gmt, (the only safe point of reference) when in fact they should really
be referenced to gmt+offset, if offset is in use.

The computer knows when to turn daylight-saving time on and off, but I'm
not
even sure if everybody changes on the same day ?


Thanks, Tim in Ireland.


--__--__--

Message: 3
From: "M. Amin" <amin at imkenberg.net>
To: "java-script" <javascript at LaTech.edu>,
      "WDVL" <wdvltalk at lists.wdvl.com>
Date: Tue, 20 Nov 2001 11:34:00 +0200
Subject: [Javascript] How can i create new <OPTION> elements of a visible
<SELECT> element from a hidden <SELECT> element ?
Reply-To: javascript at LaTech.edu

Dear All,
  I'm developing a web site and i've a case in which i want to create a
hidden <SELECT> elements which its <OPTIONS>  elements set dynamically
and i've a main visible <SELECT> element in which i want its selected
<OPTION> element triggers one of the hidden <SELECT> element.

I'd like to share any good ideas about this case or anybody had implemented
it before i'll appreciate his help.

Any help will be Appreciated.

Regards,
 Mohammed Amin


--__--__--

Message: 4
From: "Peter-Paul Koch" <gassinaumasis at hotmail.com>
To: javascript at LaTech.edu
Subject: Re: [Javascript] Help wanted re. Daylight-Saving Time values
Date: Tue, 20 Nov 2001 09:51:08 +0000
Reply-To: javascript at LaTech.edu


>http://www.qsl.net/ei8ic/timetest.html
>
>The problem with the display is that apart from the 'Local Time' box, none
>of the others show daylight-saving offsets. The reason for this is that
>although its possible to find out the local computer offset using the
>'getTimezoneOffset()' command, it doesn't tell you whether the offset is
>currently in use. Therefore, all the other time zones have to be
referenced
>to gmt, (the only safe point of reference) when in fact they should really
>be referenced to gmt+offset, if offset is in use.
>
>The computer knows when to turn daylight-saving time on and off, but I'm
>not
>even sure if everybody changes on the same day ?

No. In fact, daylight saving is the most complex matter in date and time
calculating. I always devoutly assume that the browser keeps track of this,
and if it doesn't, Too Bad.

As far as I understand getTimezoneOffset should reflect daylight saving
time, but no doubt some browser will have some bug.

Sorry, I think it would be best to forget about it and hope everything goes
well.

ppk

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


--__--__--

Message: 5
From: "Peter-Paul Koch" <gassinaumasis at hotmail.com>
To: javascript at LaTech.edu
Subject: Re: [Javascript] How can i create new <OPTION> elements of a
visible <SELECT> el
Date: Tue, 20 Nov 2001 09:57:04 +0000
Reply-To: javascript at LaTech.edu


>   I'm developing a web site and i've a case in which i want to create a
>hidden <SELECT> elements which its <OPTIONS>  elements set dynamically
>and i've a main visible <SELECT> element in which i want its selected
><OPTION> element triggers one of the hidden <SELECT> element.

I don't really understand what you want to do, but for creating and
removing
options see http://www.xs4all.nl/~ppk/js/index.html?options.html

ppk

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


--__--__--

Message: 6
From: Phil Winstanley <phil.winstanley at creations.co.uk>
To: "'javascript at LaTech.edu'" <javascript at LaTech.edu>
Subject: RE: [Javascript] How can i create new <OPTION> elements of a visi
      ble <SELECT> el
Date: Tue, 20 Nov 2001 12:13:19 -0000
Reply-To: javascript at LaTech.edu


You want to dynamically hide and show selects, depending on the SELECTED
value of a visible select yes ?


> -----Original Message-----
> From: Peter-Paul Koch [mailto:gassinaumasis at hotmail.com]
> Subject: Re: [Javascript] How can i create new <OPTION> elements of a
visible <SELECT> el
>
>
>
> >   I'm developing a web site and I've a case in which I want
> to create
> >a hidden <SELECT> elements which its <OPTIONS>  elements set
> >dynamically and I've a main visible <SELECT> element in which I want
> >its selected <OPTION> element triggers one of the hidden <SELECT>
> >element.
>
> I don't really understand what you want to do, but for
> creating and removing
> options see http://www.xs4all.nl/~ppk/js/index.html?options.html
>
> ppk

********************
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.
If you have received this email in error please notify
postmaster at creations-group.net, and delete it from your systems.
You should not copy, disclose, or distribute its contents to anyone without
our written permission.
Creations Group emails are scanned for viruses but cannot be guaranteed to
be virus-free. We accept no liability for viruses which may inadvertently
be
transmitted, nor for any loss occasioned by them.
This e-mail and any files enclosed remain the property of Creations Group
Limited.

--__--__--

Message: 7
From: "Marina mem.284512" <vilishin at hotmail.com>
To: <javascript at LaTech.edu>
Date: Mon, 19 Nov 2001 13:22:33 +0100
Subject: [Javascript] jscript and ADO
Reply-To: javascript at LaTech.edu

This is a multi-part message in MIME format.

------=_NextPart_000_0005_01C170FD.3F636580
Content-Type: text/plain;
      charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi! I am stager and have new task to do. Advice, please, how to reach =
from jscript func to existing Excel Book or Access file and use =
retrieved data. Thancks for your help.

------=_NextPart_000_0005_01C170FD.3F636580
Content-Type: text/html;
      charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi! I am stager and have new task to =
do. Advice,=20
please, how to reach from jscript func to existing Excel Book or Access =
file and=20
use retrieved data. Thancks for your help.</FONT></DIV></BODY></HTML>

------=_NextPart_000_0005_01C170FD.3F636580--

--__--__--

Message: 8
From: "Kelly Zhu" <kzhu at tstc.edu>
To: <javascript at LaTech.edu>
Date: Tue, 20 Nov 2001 09:41:58 -0600
Subject: [Javascript] ditect flash
Reply-To: javascript at LaTech.edu

This is a multi-part message in MIME format.

------=_NextPart_000_0153_01C171A7.98F16AC0
Content-Type: text/plain;
      charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Can anybody help me with some code that will detect if the browser flash =
enabled?  Thanks.

Kelly

------=_NextPart_000_0153_01C171A7.98F16AC0
Content-Type: text/html;
      charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4807.2300" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Can anybody help me with some code that =
will detect=20
if the browser flash enabled?&nbsp; Thanks.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Kelly</FONT></DIV></BODY></HTML>

------=_NextPart_000_0153_01C171A7.98F16AC0--


--__--__--

Message: 9
From: "Peter-Paul Koch" <gassinaumasis at hotmail.com>
To: javascript at LaTech.edu
Subject: Re: [Javascript] ditect flash
Date: Tue, 20 Nov 2001 16:01:17 +0000
Reply-To: javascript at LaTech.edu


>Can anybody help me with some code that will detect if the browser flash
>enabled?  Thanks.

http://www.xs4all.nl/~ppk/js/index.html?flash.html

ppk

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


--__--__--

Message: 10
From: Alan Easton <alan.easton at unn.ac.uk>
To: "'javascript at LaTech.edu'" <javascript at LaTech.edu>
Subject: RE: [Javascript] ditect flash
Date: Tue, 20 Nov 2001 16:02:22 -0000
Reply-To: javascript at LaTech.edu

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C171DC.BD3C6440
Content-Type: text/plain;
      charset="iso-8859-1"

Check out http://www.xs4all.nl/~ppk/js/index.html?detect.html
<http://www.xs4all.nl/~ppk/js/index.html?detect.html>

AE...

-----Original Message-----
From: Kelly Zhu [mailto:kzhu at tstc.edu]
Sent: Tuesday, November 20, 2001 3:42 PM
To: javascript
Subject: [Javascript] ditect flash


Can anybody help me with some code that will detect if the browser flash
enabled?  Thanks.

Kelly


------_=_NextPart_001_01C171DC.BD3C6440
Content-Type: text/html;
      charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 5.50.4134.600" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><SPAN class=991070116-20112001><FONT face=Arial color=#0000ff
size=2>Check
out <A
href="http://www.xs4all.nl/~ppk/js/index.html?detect.html">http://www.xs4all.nl/~ppk/js/index.html?detect.html</A></FONT></SPAN></DIV>

<DIV><SPAN class=991070116-20112001><FONT face=Arial color=#0000ff
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=991070116-20112001><FONT face=Arial color=#0000ff
size=2>AE...</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
  size=2>-----Original Message-----<BR><B>From:</B> Kelly Zhu
  [mailto:kzhu at tstc.edu]<BR><B>Sent:</B> Tuesday, November 20, 2001 3:42
  PM<BR><B>To:</B> javascript<BR><B>Subject:</B> [Javascript] ditect
  flash<BR><BR></FONT></DIV>
  <DIV><FONT face=Arial size=2>Can anybody help me with some code that will
  detect if the browser flash enabled?&nbsp; Thanks.</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial
size=2>Kelly</FONT></DIV></BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C171DC.BD3C6440--

--__--__--

Message: 11
From: "Kelly Zhu" <kzhu at tstc.edu>
To: <javascript at LaTech.edu>
Subject: Re: [Javascript] ditect flash
Date: Tue, 20 Nov 2001 10:23:18 -0600
Reply-To: javascript at LaTech.edu

Thanks.  Exactly what I want.  Kelly
----- Original Message -----
From: "Peter-Paul Koch" <gassinaumasis at hotmail.com>
To: <javascript at LaTech.edu>
Sent: Tuesday, November 20, 2001 10:01 AM
Subject: Re: [Javascript] ditect flash


>
> >Can anybody help me with some code that will detect if the browser flash
> >enabled?  Thanks.
>
> http://www.xs4all.nl/~ppk/js/index.html?flash.html
>
> ppk
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at
http://explorer.msn.com/intl.asp
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> http://www.LaTech.edu/mailman/listinfo/javascript


--__--__--

Message: 12
From: FERON Matthieu <FERONMA at cic-i.com>
To: "'javascript at LaTech.edu'" <javascript at LaTech.edu>
Date: Tue, 20 Nov 2001 18:02:30 +0100
Subject: [Javascript] CSS for IE and NS
Reply-To: javascript at LaTech.edu

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C171E4.A80BB50A
Content-Type: text/plain;
      charset="iso-8859-1"

hello,
I've got a text to be sized the same in IE or NS.
I use a CSS with the px unit but it's not the same appearance.
I know there's other units but I don't know the one I could use to have the
same 'look'

------_=_NextPart_001_01C171E4.A80BB50A
Content-Type: text/html;
      charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2650.12">
<TITLE>CSS for IE and NS</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2 FACE="Arial">hello,</FONT>
<BR><FONT SIZE=2 FACE="Arial">I've got a text to be sized the same in IE or
NS.</FONT>
<BR><FONT SIZE=2 FACE="Arial">I use a CSS with the px unit but it's not the
same appearance.</FONT>
<BR><FONT SIZE=2 FACE="Arial">I know there's other units but I don't know
the one I could use to have the same 'look'</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C171E4.A80BB50A--

--__--__--

Message: 13
From: "Muchacho, Laurent (TWIi London)" <LMuchacho at twii.net>
To: "'javascript at LaTech.edu'" <javascript at LaTech.edu>
Subject: RE: [Javascript] CSS for IE and NS
Date: Tue, 20 Nov 2001 17:32:53 -0000
Reply-To: javascript at LaTech.edu

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C171E9.34AEE8A2
Content-Type: text/plain;
      charset="iso-8859-1"

Hello Matthieu

I know it's seem strange but the solution it's to create a seconde style
sheet for ns and put all the font-size 1px bigger for netscape
do something like that to give the right style sheet

var ns = (document.layers)? true:false
cssUrl = 'ieStyle.css';
if (ns){
cssUrl = 'nsStyle.css';
}
document.write('<link rel="stylesheet" href="' + cssUrl + '"
type="text/css">');

and the it will work fine

Laurent

-----Original Message-----
From: FERON Matthieu [mailto:FERONMA at cic-i.com]
Sent: 20 November 2001 17:03
To: 'javascript at LaTech.edu'
Subject: [Javascript] CSS for IE and NS



hello,
I've got a text to be sized the same in IE or NS.
I use a CSS with the px unit but it's not the same appearance.
I know there's other units but I don't know the one I could use to have the
same 'look'


------_=_NextPart_001_01C171E9.34AEE8A2
Content-Type: text/html;
      charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>CSS for IE and NS</TITLE>

<META content="MSHTML 5.00.3207.2500" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=831263017-20112001>Hello
Matthieu</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=831263017-20112001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=831263017-20112001>I
know
it's seem strange but the solution it's to create a seconde style sheet for
ns
and put all the font-size 1px bigger for netscape</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=831263017-20112001>do
something like that to give the right style sheet</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=831263017-20112001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=831263017-20112001>var ns
= (document.layers)? true:false</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=831263017-20112001>cssUrl
= 'ieStyle.css';</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=831263017-20112001>if
(ns){</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=831263017-20112001>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=831263017-20112001>cssUrl
= 'nsStyle.css';</SPAN></FONT></DIV></SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=831263017-20112001>}</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=831263017-20112001>document.write('&lt;link rel="stylesheet" href="'
+
cssUrl + '" type="text/css"&gt;');</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=831263017-20112001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=831263017-20112001>and
the it will work fine </SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=831263017-20112001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=831263017-20112001>Laurent</SPAN></FONT></DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
  <DIV align=left class=OutlookMessageHeader dir=ltr><FONT face=Tahoma
  size=2>-----Original Message-----<BR><B>From:</B> FERON Matthieu
  [mailto:FERONMA at cic-i.com]<BR><B>Sent:</B> 20 November 2001
  17:03<BR><B>To:</B> 'javascript at LaTech.edu'<BR><B>Subject:</B>
[Javascript]
  CSS for IE and NS<BR><BR></DIV></FONT>
  <P><FONT face=Arial size=2>hello,</FONT> <BR><FONT face=Arial size=2>I've
got
  a text to be sized the same in IE or NS.</FONT> <BR><FONT face=Arial
size=2>I
  use a CSS with the px unit but it's not the same appearance.</FONT>
<BR><FONT
  face=Arial size=2>I know there's other units but I don't know the one I
could
  use to have the same 'look'</FONT> </P></BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C171E9.34AEE8A2--


--__--__--

_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
http://www.LaTech.edu/mailman/listinfo/javascript


End of Javascript Digest
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pic19796.jpg
Type: image/jpeg
Size: 1868 bytes
Desc: not available
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20021217/568a0846/attachment.jpg>


More information about the Javascript mailing list