[Javascript] Javascript digest, Vol 1 #481 - 11 msgs

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


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

To subscribe or unsubscribe via the World Wide Web, visit
      https://lists.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: image control in Netscape (Dave)
   2. RE: image control in Netscape (Golden Troll)
   3. Re: image control in Netscape (Dave)
   4. It's working :) (Andi @ M:tG Ontario)
   5. Re: image control in Netscape (Dave)
   6. Check which key was pressed (grzegorz.stasica at delphiauto.com)
   7. Re: Check which key was pressed (Dan.Marzolini at xansa.com)
   8. right click base popup (FERON Matthieu)
   9. Re: right click base popup (Dan Costea)
  10. RE: right click base popup (FERON Matthieu)
  11. Re: right click base popup (Esther_Strom at hmco.com)

--__--__--

Message: 1
Date: Mon, 10 Dec 2001 14:43:02 -0600
From: Dave <schemer at cyou.com>
To: javascript at LaTech.edu
Subject: Re: [Javascript] image control in Netscape
Reply-To: javascript at LaTech.edu

Hi ,
    On that script I am trying to get the display window to open and use a
gradient
gif image for the background and am back to ending up with a white screen
which was
one of the things I was trying to overcome in the first place when I first
started
this little project. But, the image sizing script works perfectly which I
am highly
appreciative :)  I realize I can "color" the background but would to use a
gif as
the background image. Is that possible here? I tried to define a
"background"
instead of a "bgcolor" and then change the color hex to myimage.gif and it
doesn't
work. Any suggestions?
Thanks in advance,
Dave K (in Florida)



--__--__--

Message: 2
From: "Golden Troll" <gtroll at qwest.net>
To: <javascript at LaTech.edu>
Subject: RE: [Javascript] image control in Netscape
Date: Mon, 10 Dec 2001 13:56:48 -0800
Reply-To: javascript at LaTech.edu

On my script I added the background image
var bg = "/images/pursilkbackrnd.jpg"
and
 background='+bg+'
in the newWindow layout
check it
Peace and Respects,
Scott Gahres
Owner
        Golden Troll four20 Ventures P.O. Box 16268 Portland OR 97292
*503.238.5626 hemp at goldentroll.com  http://goldentroll.com
* hemp info send e-mail w/ subscribe in subject and your
nickname and e-mail in the body
*(c)2000 4:20 has been a trademark of Golden Troll since 1994

-----Original Message-----
From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On
Behalf Of Dave
Sent: Monday, December 10, 2001 12:43 PM
To: javascript at LaTech.edu
Subject: Re: [Javascript] image control in Netscape


Hi ,
    On that script I am trying to get the display window to open and use
a gradient
gif image for the background and am back to ending up with a white
screen which was
one of the things I was trying to overcome in the first place when I
first started
this little project. But, the image sizing script works perfectly which
I am highly
appreciative :)  I realize I can "color" the background but would to use
a gif as
the background image. Is that possible here? I tried to define a
"background"
instead of a "bgcolor" and then change the color hex to myimage.gif and
it doesn't
work. Any suggestions?
Thanks in advance,
Dave K (in Florida)


_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript


--__--__--

Message: 3
Date: Mon, 10 Dec 2001 16:44:52 -0600
From: Dave <schemer at cyou.com>
To: javascript at LaTech.edu
Subject: Re: [Javascript] image control in Netscape
Reply-To: javascript at LaTech.edu

Hi Scott,
    I guess when I went and got the revised original I missed that as its
not on there :-o I went back and looked at the one you sent and its there
:)
I will go back and play now and and combine some code or use yours...I
appreciate the response.
Regards,
Dave K (in Florida)



--__--__--

Message: 4
From: "Andi @ M:tG Ontario" <andi at mtgontario.com>
To: <javascript at LaTech.edu>
Date: Tue, 11 Dec 2001 06:43:42 -0500
Subject: [Javascript] It's working :)
Reply-To: javascript at LaTech.edu

Thanks for your help.

I finally managed to get it working. The main problem was that the K-values
were null. Once I fixed that & changed a few other things it all came
together ;)

Andi


--__--__--

Message: 5
Date: Tue, 11 Dec 2001 08:40:51 -0600
From: Dave <schemer at cyou.com>
To: javascript at LaTech.edu
Subject: Re: [Javascript] image control in Netscape
Reply-To: javascript at LaTech.edu

Hi Scott,
    I have managed to get both scripts working. Did you ever keep typing in
the
.jpg extension when you were working with a .gif? That was one problem but
the
other ended up being a missing space between the background='+bg+' and the
onBlur="self.close()" . But I have just one more question on something that
maybe you could answer. In the following statement below, what is the
purpose of
the "vwd_justso.htm"? When I try to replace it with an html file that I had
made
to use as my "viewer" page, it seems to flash for a split second and is
then
covered up by my background image. Just curious as its original intended
use.
Thanks in advance,
Regards,
Dave K (in Florida)

window.open("vwd_justso.htm","newWindow","width="+scrWidth+",height="+scrHeight+",left="+posLeft+",top="+posTop);



--__--__--

Message: 6
From: grzegorz.stasica at delphiauto.com
To: javascript at LaTech.edu
Date: Tue, 11 Dec 2001 15:54:35 +0100
Subject: [Javascript] Check which key was pressed
Reply-To: javascript at LaTech.edu


Hi'

Could anybody tell me how to check if user pressed ENTER key while entering
data
into <Input type="text" ...>
I'd like to catch this event and submit form to server



--__--__--

Message: 7
Subject: Re: [Javascript] Check which key was pressed
To: javascript at LaTech.edu
From: Dan.Marzolini at xansa.com
Date: Tue, 11 Dec 2001 15:07:37 +0000
Reply-To: javascript at LaTech.edu


Add an onkeypress event eg. <input type="text" .. onkeypress="return
goReturn()">
and use the following function

function goReturn() {
     getEvent=event.keyCode;
     if (getEvent == "13") {
    document.forms[0].submit();
    return false;
     } else {
    return true;
    }
}
which will submit the form when the return key is pressen (code 13) and
also
stop the beeps...
hope this helps

ps - if you're using this for netscape you'll need to modify the
event.keycode bit


--__--__--

Message: 8
From: FERON Matthieu <FERONMA at cic-i.com>
To: "'javascript at LaTech.edu'" <javascript at LaTech.edu>
Date: Tue, 11 Dec 2001 16:49:53 +0100
Subject: [Javascript] right click base popup
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_01C1825A.F46C72A0
Content-Type: text/plain;
      charset="iso-8859-1"

when you right click on on window or an image or somethin you 've got a
default popup with
'open in new window' etc etc...
So, I would really like to get rid of this because I need the right click
to
do something.
I tried to catch the onmouseup event but it seems that it doesn't care at
all.
Please HEEEEELP !!   ;-))

------_=_NextPart_001_01C1825A.F46C72A0
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>right click base popup</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2 FACE="Arial">when you right click on on window or an image
or somethin you 've got a default popup with</FONT>
<BR><FONT SIZE=2 FACE="Arial">'open in new window' etc etc...</FONT>
<BR><FONT SIZE=2 FACE="Arial">So, I would really like to get rid of this
because I need the right click to do something.</FONT>
<BR><FONT SIZE=2 FACE="Arial">I tried to catch the onmouseup event but it
seems that it doesn't care at all.</FONT>
<BR><FONT SIZE=2 FACE="Arial">Please HEEEEELP !!&nbsp;&nbsp; ;-))</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C1825A.F46C72A0--

--__--__--

Message: 9
From: "Dan Costea" <costea.dan at ssi-schaefer.ro>
To: <javascript at LaTech.edu>
Subject: Re: [Javascript] right click base popup
Date: Tue, 11 Dec 2001 18:24:38 +0200
Reply-To: javascript at LaTech.edu

This is a multi-part message in MIME format.

------=_NextPart_000_0037_01C18271.17EDCBA0
Content-Type: text/plain;
      charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

right click base popupIf you want to get rid of the context menu, try =
this:

<body onContextMenu=3D"return false">

Then you can use events like onClick, onMouseDown, onMouseUp to call =
your own functions (to open a popup, a div or whatever you need to).

If you need the context menu in some cases, try:

<body onContextMenu=3D"return event.ctrlKey">

then you will have the context menu only if you have ctrl key pressed =
(this might be useful sometime).

  ----- Original Message -----=20
  From: FERON Matthieu=20
  To: 'javascript at LaTech.edu'=20
  Sent: 11 December, 2001 5:49 PM
  Subject: [Javascript] right click base popup


  when you right click on on window or an image or somethin you 've got =
a default popup with=20
  'open in new window' etc etc...=20
  So, I would really like to get rid of this because I need the right =
click to do something.=20
  I tried to catch the onmouseup event but it seems that it doesn't care =
at all.=20
  Please HEEEEELP !!   ;-))=20


------=_NextPart_000_0037_01C18271.17EDCBA0
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><TITLE>right click base popup</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4522.1800" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>If you want to get rid of the context =
menu, try=20
this:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&lt;body onContextMenu=3D"return=20
false"&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Then you can use events like onClick, =
onMouseDown,=20
onMouseUp to call your own functions (to open a popup, a div or whatever =
you=20
need to).</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>If you need the context menu in some =
cases,=20
try:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&lt;body onContextMenu=3D"return=20
event.ctrlKey"&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>then you will have the context menu =
only if you=20
have ctrl key pressed (this might be useful sometime).</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A title=3DFERONMA at cic-i.com href=3D"mailto:FERONMA at cic-i.com">FERON =
Matthieu</A>=20
  </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3Djavascript at LaTech.edu=20
  href=3D"mailto:'javascript at LaTech.edu'">'javascript at LaTech.edu'</A> =
</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> 11 December, 2001 5:49 =
PM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [Javascript] right =
click base=20
  popup</DIV>
  <DIV><BR></DIV>
  <P><FONT face=3DArial size=3D2>when you right click on on window or an =
image or=20
  somethin you 've got a default popup with</FONT> <BR><FONT =
face=3DArial=20
  size=3D2>'open in new window' etc etc...</FONT> <BR><FONT face=3DArial =
size=3D2>So,=20
  I would really like to get rid of this because I need the right click =
to do=20
  something.</FONT> <BR><FONT face=3DArial size=3D2>I tried to catch the =
onmouseup=20
  event but it seems that it doesn't care at all.</FONT> <BR><FONT =
face=3DArial=20
  size=3D2>Please HEEEEELP !!&nbsp;&nbsp; ;-))</FONT>=20
</P></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0037_01C18271.17EDCBA0--


--__--__--

Message: 10
From: FERON Matthieu <FERONMA at cic-i.com>
To: "'javascript at LaTech.edu'" <javascript at LaTech.edu>
Subject: RE: [Javascript] right click base popup
Date: Tue, 11 Dec 2001 17:29:35 +0100
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_01C18260.7C3AC182
Content-Type: text/plain;
      charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

thanks a lot, I'll try this immediately !!!

-----Message d'origine-----
De : Dan Costea [mailto:costea.dan at ssi-schaefer.ro]
Envoy=E9 : mardi 11 d=E9cembre 2001 17:25
=C0 : javascript at LaTech.edu
Objet : Re: [Javascript] right click base popup


If you want to get rid of the context menu, try this:
=20
<body onContextMenu=3D"return false">
=20
Then you can use events like onClick, onMouseDown, onMouseUp to call =
your
own functions (to open a popup, a div or whatever you need to).
=20
If you need the context menu in some cases, try:
=20
<body onContextMenu=3D"return event.ctrlKey">
=20
then you will have the context menu only if you have ctrl key pressed =
(this
might be useful sometime).
=20

----- Original Message -----=20
From: FERON  <mailto:FERONMA at cic-i.com> Matthieu=20
To: 'javascript at LaTech.edu' <mailto:'javascript at LaTech.edu'> =20
Sent: 11 December, 2001 5:49 PM
Subject: [Javascript] right click base popup


when you right click on on window or an image or somethin you 've got a
default popup with=20
'open in new window' etc etc...=20
So, I would really like to get rid of this because I need the right =
click to
do something.=20
I tried to catch the onmouseup event but it seems that it doesn't care =
at
all.=20
Please HEEEEELP !!   ;-))=20


------_=_NextPart_001_01C18260.7C3AC182
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=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<TITLE>right click base popup</TITLE>

<META content=3D"MSHTML 5.50.4522.1800" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><SPAN class=3D429102916-11122001><FONT face=3DArial =
color=3D#0000ff size=3D2>thanks=20
a lot, I'll try this immediately !!!</FONT></SPAN></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
  <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
  size=3D2>-----Message d'origine-----<BR><B>De&nbsp;:</B> Dan Costea=20
  [mailto:costea.dan at ssi-schaefer.ro]<BR><B>Envoy=E9&nbsp;:</B> mardi =
11 d=E9cembre=20
  2001 17:25<BR><B>=C0&nbsp;:</B> =
javascript at LaTech.edu<BR><B>Objet&nbsp;:</B> Re:=20
  [Javascript] right click base popup<BR><BR></FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>If you want to get rid of the =
context menu, try=20
  this:</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>&lt;body onContextMenu=3D"return=20
  false"&gt;</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>Then you can use events like =
onClick,=20
  onMouseDown, onMouseUp to call your own functions (to open a popup, a =
div or=20
  whatever you need to).</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>If you need the context menu in some =
cases,=20
  try:</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>&lt;body onContextMenu=3D"return=20
  event.ctrlKey"&gt;</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>then you will have the context menu =
only if you=20
  have ctrl key pressed (this might be useful sometime).</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <BLOCKQUOTE dir=3Dltr=20
  style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
    <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
    <DIV=20
    style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
    <A title=3DFERONMA at cic-i.com =
href=3D"mailto:FERONMA at cic-i.com">FERON=20
    Matthieu</A> </DIV>
    <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3Djavascript at LaTech.edu=20
    href=3D"mailto:'javascript at LaTech.edu'">'javascript at LaTech.edu'</A> =
</DIV>
    <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> 11 December, 2001 5:49 =
PM</DIV>
    <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [Javascript] right =
click base=20
    popup</DIV>
    <DIV><BR></DIV>
    <P><FONT face=3DArial size=3D2>when you right click on on window or =
an image or=20
    somethin you 've got a default popup with</FONT> <BR><FONT =
face=3DArial=20
    size=3D2>'open in new window' etc etc...</FONT> <BR><FONT =
face=3DArial=20
    size=3D2>So, I would really like to get rid of this because I need =
the right=20
    click to do something.</FONT> <BR><FONT face=3DArial size=3D2>I =
tried to catch=20
    the onmouseup event but it seems that it doesn't care at =
all.</FONT>=20
    <BR><FONT face=3DArial size=3D2>Please HEEEEELP !!&nbsp;&nbsp; =
;-))</FONT>=20
  </P></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C18260.7C3AC182--

--__--__--

Message: 11
Subject: Re: [Javascript] right click base popup
To: javascript at LaTech.edu
From: Esther_Strom at hmco.com
Date: Tue, 11 Dec 2001 10:31:03 -0600
Reply-To: javascript at LaTech.edu


Keep in mind that this doesn't work in Netscape (at least in 4.x; don't
know about 6.)




                    "Dan Costea"
                    <costea.dan at ssi-sc        To:
<javascript at LaTech.edu>
                    haefer.ro>                cc:
                    Sent by:                  Subject:     Re: [Javascript]
right click base popup
                    javascript-admin at L
                    aTech.edu


                    12/11/01 10:24 AM
                    Please respond to
                    javascript






If you want to get rid of the context menu, try this:

<body onContextMenu="return false">

Then you can use events like onClick, onMouseDown, onMouseUp to call your
own functions (to open a popup, a div or whatever you need to).

If you need the context menu in some cases, try:

<body onContextMenu="return event.ctrlKey">

then you will have the context menu only if you have ctrl key pressed (this
might be useful sometime).

 ----- Original Message -----
 From: FERON Matthieu
 To: 'javascript at LaTech.edu'
 Sent: 11 December, 2001 5:49 PM
 Subject: [Javascript] right click base popup



 when you right click on on window or an image or somethin you 've got a
 default popup with
 'open in new window' etc etc...
 So, I would really like to get rid of this because I need the right click
 to do something.
 I tried to catch the onmouseup event but it seems that it doesn't care at
 all.
 Please HEEEEELP !!   ;-))









--__--__--

_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript


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


More information about the Javascript mailing list