From javascript at theblades-family.com Tue Sep 3 07:57:09 2002
From: javascript at theblades-family.com (Cutter (javascript list))
Date: Tue, 03 Sep 2002 08:57:09 -0400
Subject: [Javascript] Re: Linked text in layers onMouseOver
In-Reply-To: <004101c2510f$eda1abf0$64fea8c0@PIETRO>
References: <004101c2510f$eda1abf0$64fea8c0@PIETRO>
Message-ID: <20020903125709.68918.qmail@vpop.dmv.com>
You may have to code this several different ways for the different browsers.
IE does not support layers, and you would probably be better off placing
your dynamic content in a div tag instead of an anchor tag...
Cutter
Pietro Carubbi writes:
> Hallo,
>
> I have some images, that, onMouseOver, let appear texts within layers.
>
> I want these texts displayed in the layers contain images and links, but...
> I receive an 'unknown run-time error' from IE.
>
> The page is built so:
>
> 1) In the HEAD I have:
>
>
>
> 2) In the BODY I have this kind of tables where the layers are contained:
>
>
>
> 3) There are then the images, that, onMouseOver, have to display the
> descriptions (1) in the layers (2):
>
> src="...">
>
>
> How do I have to optimize this code? What is wrong in the HEAD's description
> strings???
>
> Thank you in advance,
>
> Cheers,
>
> Pietro
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
From saleandro at yahoo.com Tue Sep 3 09:08:35 2002
From: saleandro at yahoo.com (Sabrina Leandro)
Date: Tue, 3 Sep 2002 07:08:35 -0700 (PDT)
Subject: [Javascript] Reloading "parent" window...
Message-ID: <20020903140835.24542.qmail@web13908.mail.yahoo.com>
Hello!
It's my fisrt email to this list and I'm totally new
to javascript, so sorry if I ask a lame question... :)
I have a page that opens a new smaller window, using
window.open(...). I'd like that this new window would
reload (or go to) his "parent" (the window that
created it) when a button is pressed.
This parent-window is in fact a frameset, so what I'd
like to do is reload one of its frames.
Also, are there any online books or tutorials about
javascript, and
specially, on how to use php with javascript?
Thanks in advance,
Sabrina
__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com
From peter at brunone.com Tue Sep 3 10:53:50 2002
From: peter at brunone.com (Peter Brunone)
Date: Tue, 3 Sep 2002 10:53:50 -0500
Subject: [Javascript] Reloading "parent" window...
References: <20020903140835.24542.qmail@web13908.mail.yahoo.com>
Message-ID: <119d01c25362$20b5f010$3995210a@pbrunonePC>
Sabrina,
window.opener.frames.frameName.location.reload() should do the trick. Just
climb the object model :)
PHP is a server-side language, and as such shouldn't really matter at
all to your client-side Javascript. You could use ASP, Cold Fusion,
Silverstream, or CGI Perl scripts, and your Javascript for the browser
wouldn't change. You simply include it in the HTML portion of your page, or
if you want it to be dynamic, have the server-side code write it out... just
like it would write out database fields or other dynamic content.
The resources page of this listserve -- at
http://mountaindragon.com/javascript/resources.htm -- has a lot of excellent
material for learning to use Javascript, including some browser-specific
(and cross-browser) DHTML references.
Cheers,
Peter
----- Original Message -----
From: "Sabrina Leandro"
To:
Sent: Tuesday, September 03, 2002 9:08 AM
Subject: [Javascript] Reloading "parent" window...
| Hello!
|
| It's my fisrt email to this list and I'm totally new
| to javascript, so sorry if I ask a lame question... :)
|
| I have a page that opens a new smaller window, using
| window.open(...). I'd like that this new window would
| reload (or go to) his "parent" (the window that
| created it) when a button is pressed.
|
| This parent-window is in fact a frameset, so what I'd
| like to do is reload one of its frames.
|
| Also, are there any online books or tutorials about
| javascript, and
| specially, on how to use php with javascript?
|
| Thanks in advance,
| Sabrina
|
|
| __________________________________________________
| Do You Yahoo!?
| Yahoo! Finance - Get real-time stock quotes
| http://finance.yahoo.com
| _______________________________________________
| Javascript mailing list
| Javascript at LaTech.edu
| https://lists.LaTech.edu/mailman/listinfo/javascript
|
From OfficeMgr at NetVA.com Wed Sep 4 07:26:19 2002
From: OfficeMgr at NetVA.com (OfficeMgr)
Date: Wed, 4 Sep 2002 08:26:19 -0400
Subject: [Javascript] Logging referring URLs
Message-ID: <002301c2540e$4726ddc0$98d2fea9@bigdaddy>
This is my first post to this group and hope that I am doing it correctly.
I have seen the following script, which writes the referring URL to
the user's browser window.
Is there some way of writing the document.referrer to a log file on
the host webserver. The webserver in question does not have any raw
logs available and I'm hoping to make up for it with a simple script?
Cheers,
Brent
From iztokp at amis.net Wed Sep 4 08:24:18 2002
From: iztokp at amis.net (Iztok Polanic)
Date: Wed, 4 Sep 2002 15:24:18 +0200
Subject: [Javascript]
Message-ID: <000701c25416$60244a80$072512d4@omega>
Hi!
How to fill a box?
I tried this but it doesn't work:
document.forms["FORMA"].elements["SELECT"].value = 'test';
Bye,
Iztok
From mallard at serv.net Wed Sep 4 08:27:11 2002
From: mallard at serv.net (TomMallard)
Date: Wed, 4 Sep 2002 06:27:11 -0700
Subject: [Javascript] Logging referring URLs
In-Reply-To: <002301c2540e$4726ddc0$98d2fea9@bigdaddy>
Message-ID:
To do what you want you'll need to submit a form to the server...
Instead of using document.write on the client, include the referrer code on
the server that's issuing the page...you can use
Request.ServerVariables("HTTP_REFERER") to gain what site they came from and
write that into the page to begin with.
tom mallard
seattle
-----Original Message-----
From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On
Behalf Of OfficeMgr
Sent: Wednesday, September 04, 2002 5:26 AM
To: javascript at LaTech.edu
Subject: [Javascript] Logging referring URLs
This is my first post to this group and hope that I am doing it correctly.
I have seen the following script, which writes the referring URL to
the user's browser window.
Is there some way of writing the document.referrer to a log file on
the host webserver. The webserver in question does not have any raw
logs available and I'm hoping to make up for it with a simple script?
Cheers,
Brent
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript
From lkmckinn at ingr.com Wed Sep 4 08:36:56 2002
From: lkmckinn at ingr.com (Mckinney, Lori K)
Date: Wed, 4 Sep 2002 08:36:56 -0500
Subject: [Javascript]
Message-ID: <3206D8FDDF2F2541A7715A82522893770209125D@hq2.pcmail.ingr.com>
You need to first create an option element
var optionElement=document.createElement("OPTION");
optionElement.value=value;
optionElement.text=display;
then add it to the select
selectElement.add(optionElement,index);
The second argument to the add is the index indicating where you want to put the option in the select. If you don't include it it, the option will be added to the end of the options collection. If you use 0, it will be the first thing in the list.
Here are a couple of references (watch wrapping)
createElement
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/methods/createelement.asp?frame=true
add Method
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/methods/add.asp?frame=true
-----Original Message-----
From: Iztok Polanic [mailto:iztokp at amis.net]
Sent: Wednesday, September 04, 2002 8:24 AM
To: javascript at LaTech.edu
Subject: [Javascript]
Hi!
How to fill a box?
I tried this but it doesn't work:
document.forms["FORMA"].elements["SELECT"].value = 'test';
Bye,
Iztok
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript
From rodney at aflyingstart.net Wed Sep 4 08:40:20 2002
From: rodney at aflyingstart.net (Rodney Myers)
Date: Wed, 04 Sep 2002 14:40:20 +0100
Subject: [Javascript]
References: <000701c25416$60244a80$072512d4@omega>
Message-ID: <3D760D44.CDBBC7FB@aflyingstart.net>
document.formName.selectName.options[x].value = 'test';
formName is name of form (or use forms array)
selectName is name of select (or use elements array)
options is array of options in that select
x is the number of the option you wish to fill (which may not yet exist)
You may also have to manipulate
document.formName.selectName.options.length
And if you want "test" to appear in the select you would need to write
document.formName.selectName.options[x].text = 'test';
hth
Rodney
Iztok Polanic wrote:
> Hi!
>
> How to fill a box?
> I tried this but it doesn't work:
>
> document.forms["FORMA"].elements["SELECT"].value = 'test';
>
> Bye,
>
> Iztok
>
>
From gassinaumasis at hotmail.com Wed Sep 4 09:23:00 2002
From: gassinaumasis at hotmail.com (Peter-Paul Koch)
Date: Wed, 04 Sep 2002 14:23:00 +0000
Subject: [Javascript]
Message-ID:
>From: "Mckinney, Lori K"
>Reply-To: javascript at LaTech.edu
>To: javascript at LaTech.edu
>Subject: RE: [Javascript]
>Date: Wed, 4 Sep 2002 08:36:56 -0500
>
>You need to first create an option element
> var optionElement=document.createElement("OPTION");
> optionElement.value=value;
> optionElement.text=display;
>
> then add it to the select
> selectElement.add(optionElement,index);
>
>The second argument to the add is the index indicating where you want to
>put the option in the select. If you don't include it it, the option will
>be added to the end of the options collection. If you use 0, it will be
>the first thing in the list.
In this specific case createElement does not work in Explorer on Mac. For a
completely cross-browser compatible script (even going back to NN3) see
http://www.xs4all.nl/~ppk/js/index.html?options.html
ppk
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
From sduong at colorgraphicsusa.com Wed Sep 4 11:37:12 2002
From: sduong at colorgraphicsusa.com (Son Duong)
Date: Wed, 4 Sep 2002 10:37:12 -0600
Subject: [Javascript] window.showModelessDialog()
Message-ID: <000801c25431$520d76e0$0600000a@cgpreflight>
Hi !
I have a window.showModelessDialog() for open a Dialog when I do the upload files. It working on PC, but it does not working on MAC. I know showModelessDiaglog just work for PC only. I wonder if you know any way (like syntax), so it can work for both PC and MAC.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From pcarubbi at libero.it Wed Sep 4 16:07:44 2002
From: pcarubbi at libero.it (Pietro Carubbi)
Date: Wed, 4 Sep 2002 23:07:44 +0200
Subject: [Javascript] Dynamic Layers onMouseOver
Message-ID: <006301c25457$1d06ad60$64fea8c0@PIETRO>
Hallo,
in my page I have layers on which texts are displayed when the mouse is over
some linked images.
These texts have their individual style, and I would like that this style
changes if the mouse is Over or is Out the linked images.
The elements of the page are:
1) The script in the HEAD containing the descriptions to be displayed
onMouseOver, like:
2) The layers, like this one:
3) The rollover linked images, which onMouseOver display also the texts
(description#) in the layers, like this one:
There are then the classes of the stylesheet, that are assigned at (1) and
that I would like to make dynamic through the events onMouseOut and
onMouseOver at (3).
How is this possible?
Thank you in advance,
Bye,
Pietro
From andrew at d2k.com.au Wed Sep 4 18:05:01 2002
From: andrew at d2k.com.au (Andrew Dunn)
Date: Thu, 5 Sep 2002 09:05:01 +1000
Subject: [Javascript] Logging referring URLs
Message-ID: <1D0255E75622D51185DB00D0B7E3FF44203A53@chimaera.d2k.com.au>
You will need a server side script for this, eg ASP, JSP or PHP. You can not
do this with Client side script.
-----Original Message-----
From: OfficeMgr [mailto:OfficeMgr at NetVA.com]
Sent: Wednesday, 4 September 2002 10:26 PM
To: javascript at LaTech.edu
Subject: [Javascript] Logging referring URLs
This is my first post to this group and hope that I am doing it correctly.
I have seen the following script, which writes the referring URL to
the user's browser window.
Is there some way of writing the document.referrer to a log file on
the host webserver. The webserver in question does not have any raw
logs available and I'm hoping to make up for it with a simple script?
Cheers,
Brent
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript
From iztokp at amis.net Thu Sep 5 04:03:31 2002
From: iztokp at amis.net (Iztok Polanic)
Date: Thu, 5 Sep 2002 11:03:31 +0200
Subject: [Javascript] global variables thru OnClick event
Message-ID: <001b01c254bb$1bc46af0$b02512d4@omega>
Hi!
I'm setting some variables thru OnClick event (Onclick="var test=12"). But I
can't access this variable. So how can I set global variables thru Onclik
event?
Bye
Iztok
From gassinaumasis at hotmail.com Thu Sep 5 04:17:59 2002
From: gassinaumasis at hotmail.com (Peter-Paul Koch)
Date: Thu, 05 Sep 2002 09:17:59 +0000
Subject: [Javascript] global variables thru OnClick event
Message-ID:
>I'm setting some variables thru OnClick event (Onclick="var test=12"). But
>I
>can't access this variable. So how can I set global variables thru Onclik
>event?
Onclick="test=12"
'var' means: make it a local variable.
ppk
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
From LMuchacho at twii.net Thu Sep 5 04:18:52 2002
From: LMuchacho at twii.net (Muchacho, Laurent (TWIi London))
Date: Thu, 5 Sep 2002 10:18:52 +0100
Subject: [Javascript] global variables thru OnClick event
Message-ID: <76A6F0FCCA27D4119DEF00805F5700AC03C5D13F@lon.webmail.twii.net>
Hi
You not making any effort really
if you declare you variable when you do the onclick you will not be able to
access it because the document is already loaded and no variable as been
declared.
try to declare you variable in the head of your document
and on your onclick
something like that
(Onclick="test=12").
Laurent
-----Original Message-----
From: Iztok Polanic [mailto:iztokp at amis.net]
Sent: 05 September 2002 10:04
To: javascript at LaTech.edu
Subject: [Javascript] global variables thru OnClick event
Hi!
I'm setting some variables thru OnClick event (Onclick="var test=12"). But I
can't access this variable. So how can I set global variables thru Onclik
event?
Bye
Iztok
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript
DISCLAIMER - The preceding e-mail message (including any attachments)
contains information that may be confidential, may be protected by the
attorney-client or other applicable privileges, or may constitute non-public
information. It is intended to be conveyed only to the designated
recipient(s) named above. If you are not an intended recipient of this
message, or have otherwise received it in error, please notify the sender by
replying to this message and then delete all copies of it from your computer
system. Any use, dissemination, distribution, or reproduction of this
message by unintended recipients is not authorized and may be unlawful. The
contents of this communication do not necessarily represent the views of
this company.
From saleandro at yahoo.com Thu Sep 5 16:08:35 2002
From: saleandro at yahoo.com (Sabrina Leandro)
Date: Thu, 5 Sep 2002 14:08:35 -0700 (PDT)
Subject: [Javascript] Fwd: Re: Re: Reloading "parent" window...
Message-ID: <20020905210835.17417.qmail@web13908.mail.yahoo.com>
> Hi Peter and all,
>
> > window.opener.frames.frameName.location.reload()
> > should do the trick. Just
> > climb the object model :)
>
> I tried it, but it doesn't seem to work. I just
> changed the framesName for my target's framename.
> Isn't that right?
>
> Well, but I'll try to be more specific about my
> problem.
>
> I usually work with PHP, and use only some jscripts,
> (already done by others or poorly done by me :)) to
> do
> some form info checking, but nothing fancy...
>
> What I want to do now is this: user clicks on a
> buttom
> to select an image. This opens up a new window (with
> the open jscript command). There he selects an image
> and some other data in a form.
>
> I want to know how can I get hold of this
> information
> when he clicks the submit button on the child
> window.
>
> Should I send it over to the other page as a form?
> Or
> can I get hold of the child's form info without
> posting the form?
>
> I'm sure this is an easy (or at least,
> done-a-hundred-times) thing, but I'm quite in a
> hurry,
> and I need some direction :)
>
> Just tell me which solution is best, and I'll learn
> from that.
>
> I promise to read the js tutorials you've mentioned,
> but only after my college's final exams :)
>
> Thanks a lot, - and sorry to bug you :)
> Sabrina
>
__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com
From smile at chello.se Fri Sep 6 04:03:17 2002
From: smile at chello.se (Smile)
Date: Fri, 6 Sep 2002 11:03:17 +0200
Subject: [Javascript] (no subject)
Message-ID: <000801c25584$3dd7c4b0$e0ce59d5@happy>
Hello!
I found you on a Javascript Archives, and i wonder if u can help me.
I want to change the scrollbar Width but i dont know how to do it.
Do you?
very greatfull
Gilda
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From HSenior at twii.net Fri Sep 6 12:06:20 2002
From: HSenior at twii.net (Senior, Henry (TWIi London))
Date: Fri, 6 Sep 2002 18:06:20 +0100
Subject: [Javascript] (no subject) (Smile)
Message-ID: <76A6F0FCCA27D4119DEF00805F5700AC0433845E@lon.webmail.twii.net>
I think this is a system setting - I've never seen a css property for this
but is can be altered as a global window setting (in Windows at least)
-----Original Message-----
From: javascript-request at LaTech.edu
[mailto:javascript-request at LaTech.edu]
Sent: 06 September 2002 18:01
To: javascript at LaTech.edu
Subject: Javascript digest, Vol 1 #744 - 2 msgs
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. Fwd: Re: Re: Reloading "parent" window... (Sabrina Leandro)
2. (no subject) (Smile)
--__--__--
Message: 1
Date: Thu, 5 Sep 2002 14:08:35 -0700 (PDT)
From: Sabrina Leandro
To: javascript at LaTech.edu
Subject: [Javascript] Fwd: Re: Re: Reloading "parent" window...
Reply-To: javascript at LaTech.edu
> Hi Peter and all,
>
> > window.opener.frames.frameName.location.reload()
> > should do the trick. Just
> > climb the object model :)
>
> I tried it, but it doesn't seem to work. I just
> changed the framesName for my target's framename.
> Isn't that right?
>
> Well, but I'll try to be more specific about my
> problem.
>
> I usually work with PHP, and use only some jscripts,
> (already done by others or poorly done by me :)) to
> do
> some form info checking, but nothing fancy...
>
> What I want to do now is this: user clicks on a
> buttom
> to select an image. This opens up a new window (with
> the open jscript command). There he selects an image
> and some other data in a form.
>
> I want to know how can I get hold of this
> information
> when he clicks the submit button on the child
> window.
>
> Should I send it over to the other page as a form?
> Or
> can I get hold of the child's form info without
> posting the form?
>
> I'm sure this is an easy (or at least,
> done-a-hundred-times) thing, but I'm quite in a
> hurry,
> and I need some direction :)
>
> Just tell me which solution is best, and I'll learn
> from that.
>
> I promise to read the js tutorials you've mentioned,
> but only after my college's final exams :)
>
> Thanks a lot, - and sorry to bug you :)
> Sabrina
>
__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com
--__--__--
Message: 2
From: "Smile"
To:
Date: Fri, 6 Sep 2002 11:03:17 +0200
Subject: [Javascript] (no subject)
Reply-To: javascript at LaTech.edu
This is a multi-part message in MIME format.
------=_NextPart_000_0005_01C25595.010D1D80
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hello!
I found you on a Javascript Archives, and i wonder if u can help me.
I want to change the scrollbar Width but i dont know how to do it.
Do you?
very greatfull
Gilda
------=_NextPart_000_0005_01C25595.010D1D80
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hello!
I found you on a Javascript Archives, =
and i wonder=20
if u can help me.
I want to change the scrollbar Width =
but i dont=20
know how to do it.
Do you?
very greatfull
Gilda
------=_NextPart_000_0005_01C25595.010D1D80--
--__--__--
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript
End of Javascript Digest
DISCLAIMER - The preceding e-mail message (including any attachments)
contains information that may be confidential, may be protected by the
attorney-client or other applicable privileges, or may constitute non-public
information. It is intended to be conveyed only to the designated
recipient(s) named above. If you are not an intended recipient of this
message, or have otherwise received it in error, please notify the sender by
replying to this message and then delete all copies of it from your computer
system. Any use, dissemination, distribution, or reproduction of this
message by unintended recipients is not authorized and may be unlawful. The
contents of this communication do not necessarily represent the views of
this company.
From andrew at d2k.com.au Sun Sep 8 19:54:27 2002
From: andrew at d2k.com.au (Andrew Dunn)
Date: Mon, 9 Sep 2002 10:54:27 +1000
Subject: [Javascript] Tab order on web page
Message-ID: <1D0255E75622D51185DB00D0B7E3FF44203A70@chimaera.d2k.com.au>
Is it possible to change the tab order on a web page?
Thanks.
From tutwabee at hotmail.com Sun Sep 8 22:59:16 2002
From: tutwabee at hotmail.com (Trey H)
Date: Mon, 09 Sep 2002 03:59:16 +0000
Subject: [Javascript] Tab order on web page
Message-ID:
No. To change the tab order in forms just add tabindex="" into the element.
Here is an example:
There lowest the tabindex is the first tabed item.
====================================
Trey Hunner: tutwabee at hotmail.com
website: http://www.websiter.biz
AIM, Yahoo, and MSN: tutwabee
ICQ: 155101326
====================================
>From: Andrew Dunn
>Reply-To: javascript at LaTech.edu
>To: "'javascript at LaTech.edu'"
>Subject: [Javascript] Tab order on web page
>Date: Mon, 9 Sep 2002 10:54:27 +1000
>
>Is it possible to change the tab order on a web page?
>
>Thanks.
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
From peter at brunone.com Sun Sep 8 23:06:19 2002
From: peter at brunone.com (Peter Brunone)
Date: Sun, 8 Sep 2002 23:06:19 -0500
Subject: [Javascript] Tab order on web page
In-Reply-To: <1D0255E75622D51185DB00D0B7E3FF44203A70@chimaera.d2k.com.au>
Message-ID:
Sure, but you don't need Javascript; it's just an HTML attribute called
TABINDEX that you set to an integer. The order starts at the lowest and
goes through the highest number, cycling back to the start.
I don't know if earlier browsers support tabindex, but you can probably
find out by checking around.
Cheers,
Peter
|-----Original Message-----
|From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On
|Behalf Of Andrew Dunn
|
|Is it possible to change the tab order on a web page?
|
|Thanks.
|
From javascript at theblades-family.com Mon Sep 9 08:29:58 2002
From: javascript at theblades-family.com (Cutter (javascript list))
Date: Mon, 09 Sep 2002 09:29:58 -0400
Subject: [Javascript] Re: Tab order on web page
In-Reply-To:
References:
Message-ID: <20020909132958.45872.qmail@vpop.dmv.com>
tabindex is a nice feature, but I think it is only supported in IE (5.+?)
Cutter
Peter Brunone writes:
>
> Sure, but you don't need Javascript; it's just an HTML attribute called
> TABINDEX that you set to an integer. The order starts at the lowest and
> goes through the highest number, cycling back to the start.
> I don't know if earlier browsers support tabindex, but you can probably
> find out by checking around.
>
> Cheers,
>
> Peter
>
> |-----Original Message-----
> |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On
> |Behalf Of Andrew Dunn
> |
> |Is it possible to change the tab order on a web page?
> |
> |Thanks.
> |
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
From LHJ at chello.se Mon Sep 9 12:04:31 2002
From: LHJ at chello.se (Lars J)
Date: Mon, 09 Sep 2002 19:04:31 +0200
Subject: [Javascript] Replace button with image
Message-ID: <5.1.1.6.0.20020909190342.009fdec0@pop.chello.se>
Is there a way of replacing the "Browse" button with an image when you
create an upload form?
Regards,
Lars Johansson
From tutwabee at hotmail.com Mon Sep 9 16:50:06 2002
From: tutwabee at hotmail.com (Trey H)
Date: Mon, 09 Sep 2002 21:50:06 +0000
Subject: [Javascript] Replace button with image
Message-ID:
No. The browse button cannot be substituted for an image and you cannot
change the text on the button.
====================================
Trey Hunner: tutwabee at hotmail.com
website: http://www.websiter.biz
AIM, Yahoo, and MSN: tutwabee
ICQ: 155101326
====================================
>From: Lars J
>Reply-To: javascript at LaTech.edu
>To: javascript at latech.edu
>Subject: [Javascript] Replace button with image
>Date: Mon, 09 Sep 2002 19:04:31 +0200
>
>Is there a way of replacing the "Browse" button with an image when you
>create an upload form?
>
>Regards,
>Lars Johansson
>
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
From tsang at interlog.com Mon Sep 9 18:58:36 2002
From: tsang at interlog.com (George Tsang)
Date: Mon, 9 Sep 2002 19:58:36 -0400
Subject: [Javascript] Invoke onclick event of one button from clicking a second button
Message-ID: <000601c2585c$d17841b0$f3e7059a@lvaluep0inby4h>
Greetings,
I have set up the following:
A
B
Result:
By running this on IE5.5 and by clicking the 'B' button, I can invoke
the alert message belonging to the onclick event of the 'A' button.
However, this does not work in Netscape 6. The Netscape Javascript
Console posted the error: "stuff.click is not a function".
I changed the button tag attributes of the 'B' button to:
B
Result:
IE5.5 works. Netscape 6 still does not work. The Netscape Javascript
Console posted the error: "stuff[0].click is not a function".
Is there anything else one can do to resolve this problem.
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From hlove at u.washington.edu Mon Sep 9 19:21:18 2002
From: hlove at u.washington.edu (Harry Love)
Date: Mon, 9 Sep 2002 17:21:18 -0700
Subject: [Javascript] Invoke onclick event of one button from clicking a second button
In-Reply-To: <000601c2585c$d17841b0$f3e7059a@lvaluep0inby4h>
Message-ID: <000801c2585f$fbc11e30$467a5f80@hsl.washington.edu>
-----Original Message-----
From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]
On Behalf Of George Tsang
Sent: Monday, September 09, 2002 4:59 PM
To: Javascript at LaTech.edu
Subject: [Javascript] Invoke onclick event of one button from clicking a
second button
Greetings,
I have set up the following:
A
B
-----------------------
George,
You could try this:
B
Works in Moz1.1.
Regards,
Harry
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From javascript at theblades-family.com Tue Sep 10 07:36:34 2002
From: javascript at theblades-family.com (Cutter (javascript list))
Date: Tue, 10 Sep 2002 08:36:34 -0400
Subject: [Javascript] Re: Invoke onclick event of one button from clicking a second button
In-Reply-To: <000601c2585c$d17841b0$f3e7059a@lvaluep0inby4h>
References: <000601c2585c$d17841b0$f3e7059a@lvaluep0inby4h>
Message-ID: <20020910123634.54244.qmail@vpop.dmv.com>
From Javascript: The Definitive Guide, David Flanagan
The click() method of a form element simulates a mouseclick on the form
element but does not invoke the onclick event handler of the element
Cutter
George Tsang writes:
> Greetings,
>
> I have set up the following:
>
> A
>
> B
>
> Result:
>
> By running this on IE5.5 and by clicking the 'B' button, I can invoke
> the alert message belonging to the onclick event of the 'A' button.
>
> However, this does not work in Netscape 6. The Netscape Javascript
> Console posted the error: "stuff.click is not a function".
>
> I changed the button tag attributes of the 'B' button to:
>
> B
>
> Result:
>
> IE5.5 works. Netscape 6 still does not work. The Netscape Javascript
> Console posted the error: "stuff[0].click is not a function".
>
> Is there anything else one can do to resolve this problem.
>
> Thanks.
From George.Tsang at senecac.on.ca Tue Sep 10 21:17:22 2002
From: George.Tsang at senecac.on.ca (George Tsang)
Date: Tue, 10 Sep 2002 22:17:22 -0400
Subject: [Javascript] RE: Invoke onclick event of one button from clicking a second button
Message-ID: <000001c25939$5dc9cf30$b461cc8e@lvaluep0inby4h>
Thanks Harry for your help.
However, I had tried the same way you'd shown in the past and it did NOT
work on Netscape 6.
I tried again just now and it still does not work on my machine using
Netscape 6. (IE 5.5 works fine.)
If you know another way that works please let me know.
Thanks.
-----Original Message-----
From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]
On Behalf Of George Tsang
Sent: Monday, September 09, 2002 4:59 PM
To: Javascript at LaTech.edu
Subject: [Javascript] Invoke onclick event of one button from clicking a
second button Greetings,
I have set up the following:
A
B
-----------------------
George,
You could try this:
B
Works in Moz1.1.
Regards,
Harry
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From uplate at attbi.com Wed Sep 11 06:19:38 2002
From: uplate at attbi.com (uplate at attbi.com)
Date: Wed, 11 Sep 2002 11:19:38 +0000
Subject: [Javascript] Can you change a style at runtime?
Message-ID: <20020911111938.SWFS10266.rwcrmhc51.attbi.com@rwcrwbc58>
Hi all.
I'm looking for a way to dynamically change a div's class
name that will work in both IE6 and NN6. Does anyone
have any ideas? Thanks much.
Brian M.
From uplate at attbi.com Wed Sep 11 06:19:38 2002
From: uplate at attbi.com (uplate at attbi.com)
Date: Wed, 11 Sep 2002 11:19:38 +0000
Subject: [Javascript] Can you change a style at runtime?
Message-ID: <20020911111938.SWFS10266.rwcrmhc51.attbi.com@rwcrwbc58>
Hi all.
I'm looking for a way to dynamically change a div's class
name that will work in both IE6 and NN6. Does anyone
have any ideas? Thanks much.
Brian M.
From hlove at u.washington.edu Wed Sep 11 16:44:30 2002
From: hlove at u.washington.edu (Harry Love)
Date: Wed, 11 Sep 2002 14:44:30 -0700
Subject: [Javascript] RE: Invoke onclick event of one button from clicking a second button
In-Reply-To: <000001c25939$5dc9cf30$b461cc8e@lvaluep0inby4h>
Message-ID: <000201c259dc$690ca9f0$467a5f80@hsl.washington.edu>
George,
Try this:
This worked for me in IE6, Moz1.1, and NN6.2.
Regards,
Harry
From alex.yap at str.com.au Wed Sep 11 19:27:04 2002
From: alex.yap at str.com.au (Alexander Yap)
Date: Thu, 12 Sep 2002 10:27:04 +1000
Subject: [Javascript] Can you change a style at runtime?
In-Reply-To: <20020911111938.SWFS10266.rwcrmhc51.attbi.com@rwcrwbc58>
References: <20020911111938.SWFS10266.rwcrmhc51.attbi.com@rwcrwbc58>
Message-ID: <20020912002555.8DBED308A1F@LaTech.edu>
Hi,
document.getElementById("mydiv").className="theNewClassName";
--
Alexander Yap
Melbourne, Australia
On Wed, 11 Sep 2002 21:19, you wrote:
> Hi all.
>
> I'm looking for a way to dynamically change a div's class
> name that will work in both IE6 and NN6. Does anyone
> have any ideas? Thanks much.
>
>
> Brian M.
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
From sachinz at dpsl.net Wed Sep 11 23:30:38 2002
From: sachinz at dpsl.net (Sachin Zingade)
Date: Thu, 12 Sep 2002 10:00:38 +0530
Subject: [Javascript] How to disable Print Screen in Netscape
In-Reply-To: <20020912002555.8DBED308A1F@LaTech.edu>
Message-ID:
I want Script to disable the Print Screen Key in Netscape 6 and above
browser
Sachin Zingade
From hieuoz at yahoo.com Thu Sep 12 02:52:51 2002
From: hieuoz at yahoo.com (H Ho)
Date: Thu, 12 Sep 2002 00:52:51 -0700 (PDT)
Subject: [Javascript] (no subject)
Message-ID: <20020912075251.25457.qmail@web40514.mail.yahoo.com>
subcribe javascript
---------------------------------
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From javascript at theblades-family.com Thu Sep 12 07:45:35 2002
From: javascript at theblades-family.com (Cutter (javascript list))
Date: Thu, 12 Sep 2002 08:45:35 -0400
Subject: [Javascript] Disable View Source...
Message-ID: <20020912124535.78647.qmail@vpop.dmv.com>
On a few sites recently I have seen that not only is the View Source
disabled in the context menu but also from the View menu. Now, this may only
happen in IE, but I would still like to know how it was done. Anyone have a
take on this?
Cutter
From merchant at LATECH.EDU Thu Sep 12 14:57:52 2002
From: merchant at LATECH.EDU (David Merchant)
Date: Thu, 12 Sep 2002 14:57:52 -0500
Subject: [Javascript] JavaScript List Unsubscirbe, Subscribe & Posting Info.
Message-ID: <5.1.0.14.2.20020912145734.02776f48@mail.latech.edu>
There are two sets of instructions, first for those who joined the list
directly and second for those who joined the list via egroups (at present I
cannot manually unsubscribe anyone who joined via Yahoo Groups or eGroups).
1. If you wish to subscribe or unsubscribe, visit
https://lists.LaTech.edu/mailman/listinfo/javascript or send a message with
the word `help' in it to the request address,
javascript-request at LaTech.edu, for further instructions.
To post to the list, send your posts to javascript at latech.edu
2. For those who subscribed to the Javascript list via Yahoo Groups
(formally eGroups), here is how to unsubscribe:
To unsubscribe via email:
From your email program, send a blank message to:
javascript-unsubscribe at yahoogroups.com
To unsubscribe via the Web:
* Sign in to Yahoo! Groups and go to the My Groups page.
* Click on the Edit Message Settings link at the top of the page.
* Look for the group you wish to unsubscribe from, and select Unsubscribe
from the pull-down list on the right.
* Click Update to save your changes. The group will no longer be listed on
the My Groups page, and you will no longer receive messages.
Note: If you own a group, you must first give up your ownership in the
Members section of your group before you can unsubscribe on the My Groups
page.
*** I CANNOT manually unsubscribe you if you subscribed to the list via
eGroups or Yahoo Groups. ***
I have complained _repeatedly_ about this to the folks at Yahoo Groups, but
to no avail. I can only manually unsubscribe those who joined via
https://lists.LaTech.edu/mailman/listinfo/javascript.
TTFN,
David
Systems Librarian, Louisiana Tech University
merchant at latech.edu
JavaScript List Administrator (www.mountaindragon.com/javascript/)
Webmaster, HTML Encyclopedia (www.mountaindragon.com/html/)
Webmaster, Memorial Day Page (www.usmemorialday.org/)
Webmaster, Midori Ito Site (www.mountaindragon.com/midori/)
From walter at harder.net Thu Sep 12 15:37:17 2002
From: walter at harder.net (walterash)
Date: Thu, 12 Sep 2002 20:37:17 -0000
Subject: [Javascript] JavaScript error: Class doesn't support Automation
Message-ID:
Each time I open a window without a URL specified and then try to do
anything (like write to it), IE 6 gives me this error. I tried
reverting to the IE version that came with XP and the problem did
not go away. Can this really be a problem with IE6 and Javascript
or is there something I can fix with my version of IE.
Here's some code from another site (I'm sure webshots.com won't mind
if I borrow it for demonstration purposes) that behaves the same way
(just so you know it's not an error in my code):
-----------
function openwin(name,w,h,scrollbars,resizable,url)
{
var left = (screen.width-w)/2;
var top = (screen.height-h)/2;
var win = window.open("",name,"width=" + w + ",height=" + h
+",scrollbars=" + scrollbars +",resizable=" + resizable
+",screenx="+left+",screeny="+top+",left="+left+",top="+top);
if (url)
win.location.href=url;
win.focus();
}
function onClickPoster()
{
document.location.href = "http://www.webshots.com/g/32/596-
sh/17275.html?blockPop=1";
openwin("poster", 640,
430, "yes", "yes", "http://www.webshots.com/g/poster/75/17275_poster.
html");
}
-------------
When onClickPoster is called, IE6 opens "About:Blank" and give the
error message.
Thank you for any assistance.
Walter Harder
From jgordon at directfile.com Thu Sep 12 17:54:33 2002
From: jgordon at directfile.com (Josiah Gordon)
Date: Thu, 12 Sep 2002 15:54:33 -0700
Subject: [Javascript] Disable View Source...
In-Reply-To: <20020912124535.78647.qmail@vpop.dmv.com>
Message-ID:
Cutter,
You cannot disable the option of a client machine reading your code. Period.
HTML is rendered by a browser on a client machine. I think MS scripts their
site using Visual Studio .NET which has a disable_view_source flag (see URL
below).
Any IE-only view source block can be defeated because the client has to
render the code. To see for yourself use a telnet GET request to grab a URL.
You will receive plain-text code not parsed by your web browser. If a site
blocks this HTTP GET request it is no longer a web server, by definition.
http://www.euromind.com/iedelphi/ie5tools.htm
In particular: function DisableViewSource(Disabled: Boolean): Boolean;
//Disable "view source" from View-menu
Hope that clears it up a bit. My personal feeling is that if you block a
user from viewing your code you are only frustrating him or her. There is
nothing you can do to stop a person from getting client-side code (by
design!), so why spend the resources trying? Maybe in the future, maybe in
another markup language, but not in HTML.
--Josiah Gordon
-----Original Message-----
From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On
Behalf Of Cutter (javascript list)
Sent: Thursday, September 12, 2002 5:46 AM
To: javascript at LaTech.edu
Subject: [Javascript] Disable View Source...
On a few sites recently I have seen that not only is the View Source
disabled in the context menu but also from the View menu. Now, this may only
happen in IE, but I would still like to know how it was done. Anyone have a
take on this?
Cutter
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript
From anandkan at vsnl.net Thu Sep 12 20:40:36 2002
From: anandkan at vsnl.net (anand)
Date: Fri, 13 Sep 2002 07:10:36 +0530
Subject: [Javascript] Invoke onclick event of one button from clicking a second button
In-Reply-To: <000601c2585c$d17841b0$f3e7059a@lvaluep0inby4h>
Message-ID:
hi
one simple solution is the following one
HTH
Mohan
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From tsang at interlog.com Thu Sep 12 21:31:25 2002
From: tsang at interlog.com (George Tsang)
Date: Thu, 12 Sep 2002 22:31:25 -0400
Subject: [Javascript] RE: RE: Invoke onclick event of one button from clicking a second button
Message-ID: <000101c25acd$a90ef340$e6af1dd1@lvaluep0inby4h>
Thanks Harry.
It worked for me too.
Can you tell me why it worked when we use the tag and not the
tag.
George
Message: 3
Date: Wed, 11 Sep 2002 14:44:30 -0700
From: "Harry Love"
Subject: RE: RE: Invoke onclick event of one button from clicking a
second button
George,
Try this:
This worked for me in IE6, Moz1.1, and NN6.2.
Regards,
Harry
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From hlove at u.washington.edu Thu Sep 12 22:46:23 2002
From: hlove at u.washington.edu (Harry Love)
Date: Thu, 12 Sep 2002 20:46:23 -0700
Subject: [Javascript] RE: RE: Invoke onclick event of one button from clicking a second button
In-Reply-To: <000101c25acd$a90ef340$e6af1dd1@lvaluep0inby4h>
Message-ID: <000401c25ad8$2123b820$467a5f80@hsl.washington.edu>
Thanks Harry. It worked for me too. Can you tell me why it worked when
we use the tag and not the tag.
George
You're welcome. I couldn't figure that out either. According to the
standards (and I believe Cutter brought this up, too), the click()
method simulates a mouse click, but doesn't invoke the onclick event
handler in most elements. However, in the HTMLInputElement
specification, the click() method simulates a mouse click for an
whose type is "button," "checkbox," "radio," "reset," or "submit." I
haven't read the entire specification, but it obviously invokes the
onclick event handler for another element.
However, why these two elements work in different ways is beyond my
knowledge. Perhaps someone more experienced on the list could answer
that?
Regards,
Harry
From grzegorz.stasica at delphiauto.com Fri Sep 13 08:12:53 2002
From: grzegorz.stasica at delphiauto.com (grzegorz.stasica at delphiauto.com)
Date: Fri, 13 Sep 2002 15:12:53 +0200
Subject: [Javascript] Validate date via Regular Expression
Message-ID: <05256C33.0048A041.00@notes.delphiauto.com>
Hi,
What is wrong with this regular expression:
var re=/\b((19|20)\d{2})[\-](1[0-2]|0?[1-9])[\-](0?[1-9]|[12][0-9]|3[01])/
I'm trying to check if date is correct.Date format should by YYYY-MM-DD but when
I validate somethig like this: 2002-12-54 the test expression doesn't see any
error ?
From andyg at ihug.co.nz Sat Sep 14 04:17:21 2002
From: andyg at ihug.co.nz (Andrew Gibson)
Date: Sat, 14 Sep 2002 21:17:21 +1200
Subject: [Javascript] Disable View Source...
References: <20020912124535.78647.qmail@vpop.dmv.com>
Message-ID: <004701c25bcf$88d9d3d0$68e7adcb@k1n8i8>
Which sites??
> On a few sites recently I have seen that not only is the View Source
> disabled in the context menu but also from the View menu. Now, this may
only
> happen in IE, but I would still like to know how it was done. Anyone have
a
> take on this?
>
> Cutter
From ganz_gescheit at yahoo.co.uk Sat Sep 14 05:47:24 2002
From: ganz_gescheit at yahoo.co.uk (=?iso-8859-1?q?Dan?=)
Date: Sat, 14 Sep 2002 11:47:24 +0100 (BST)
Subject: [Javascript] JavaScript syntax problem?
Message-ID: <20020914104724.80391.qmail@web20308.mail.yahoo.com>
Hi all,
The script below, embedded in html page, is causing me
some grief. While there is no syntax error message
generated, it does say the value passed in by
'filename' is undefined. So, if the value of filename
is "myfile.html", it complains about "myfile.html" not
being defined.
My guess is that I made a mistake in the syntax of the
JavaScript below:
document.write(" ")
Any ideas for correcting my error?
Thanks.
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
From rodney at aflyingstart.net Sat Sep 14 06:13:33 2002
From: rodney at aflyingstart.net (Rodney Myers)
Date: Sat, 14 Sep 2002 12:13:33 +0100
Subject: [Javascript] JavaScript syntax problem?
References: <20020914104724.80391.qmail@web20308.mail.yahoo.com>
Message-ID: <3D8319DD.E4870A34@aflyingstart.net>
Dan,
As written the onClick will be
onclick=launchNow(myfile.html)
Note the absence of quote marks around the file name.
It is this that makes the interpreter react as if myfile.html was a
variable - and as such it is indeed undefined.
Try
document.write(" ")
which will write
onclick=launchNow('myfile.html')
hth
Rodney
Dan wrote:
> Hi all,
>
> The script below, embedded in html page, is causing me
> some grief. While there is no syntax error message
> generated, it does say the value passed in by
> 'filename' is undefined. So, if the value of filename
> is "myfile.html", it complains about "myfile.html" not
> being defined.
>
> My guess is that I made a mistake in the syntax of the
> JavaScript below:
>
> document.write(" value='Launch NOW' class='formButton' onclick
> =launchNow(" + filename + ")>")
>
> Any ideas for correcting my error?
>
> Thanks.
From webmaster at card25.co.kr Sun Sep 15 07:05:49 2002
From: webmaster at card25.co.kr (card25)
Date: Sun, 15 Sep 2002 21:05:49 +0900
Subject: [Javascript] [±¤°í]¹«·á¹ß±Þ,¹«·á»ó´ã!
Message-ID: <200209151205.g8FC5g8Q034229@helius.latech.edu>
An HTML attachment was scrubbed...
URL:
From dnotes at vcu.edu Sun Sep 15 23:11:47 2002
From: dnotes at vcu.edu (Doctor Notes/VCU)
Date: Mon, 16 Sep 2002 00:11:47 -0400
Subject: [Javascript] Symantec Antivirus at VCU has detected a violation in a document using your
return address
Message-ID:
You are receiving this automated mailing because an infected email message
*using your return address* attempted to pass through the VCU Lotus Notes
servers. Please update your antivirus definitions and/or contact your
local PC support staff for assistance.
Date of Message: 09/16/2002 12:11:46 AM EDT
Infected file: Yzb.pif
Virus: W32.Klez.H at mm
Recipients: ammcleod at cedar.vcu.edu
If this is a Klez virus, YOU MAY NOT BE THE AUTHOR of the infected
document. The most common variants of Klez currently circulating are:
http://securityresponse.symantec.com/avcenter/venc/data/w32.klez.h at mm.html
http://securityresponse.symantec.com/avcenter/venc/data/w32.klez.e at mm.html
http://securityresponse.symantec.com/avcenter/venc/data/w32.klez.gen at mm.html
The scanned document was QUARANTINED.
From saleandro at yahoo.com Mon Sep 16 09:51:34 2002
From: saleandro at yahoo.com (Sabrina Leandro)
Date: Mon, 16 Sep 2002 07:51:34 -0700 (PDT)
Subject: [Javascript] how do I know which buttom opened my pop window?
Message-ID: <20020916145134.94738.qmail@web13907.mail.yahoo.com>
Hi all,
I have a page to update information about images. Each
image has its source, size, link, etc. I have a popup
window to change the image source and link. Each image
has its button that opens this popup window.
I generate the form via PHP, reading the info about
the images from a database. So my forms elements are
named like this: "name_of_the_element"+image_number.
So I have name_of_the_element1, name_of_the_element2
and so on.
My problem is that I want to know which button from
which image was clicked to open the popup window, so I
can update the right form element. Does someone know
how can I do that?
Also, can I do something like this in JavaScript:
var name_variable = 'document.formname.elementname' +
number;
and then access name_variable.value?
which would be document.formname.elementname1 or 2 or
according to whichever image was selected?
I hope I could make myself clear :)
If not, ask me and I?ll try to be more specific.
Thanks in advance!
Sabrina
__________________________________________________
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com
From TrippCL at state.gov Mon Sep 16 12:37:45 2002
From: TrippCL at state.gov (Tripp, Candace L)
Date: Mon, 16 Sep 2002 13:37:45 -0400
Subject: [Javascript] how do I know which buttom opened my pop window?
Message-ID: <31EAD63EF127D311A7C500E0290A222D01670C73@imsioopssntsd.irm.state.gov>
Do a search on eval.
-----Original Message-----
From: Sabrina Leandro [mailto:saleandro at yahoo.com]
Sent: Monday, September 16, 2002 10:53 AM
To: javascript at latech.edu
Subject: [Javascript] how do I know which buttom opened my pop window?
Hi all,
I have a page to update information about images. Each
image has its source, size, link, etc. I have a popup
window to change the image source and link. Each image
has its button that opens this popup window.
I generate the form via PHP, reading the info about
the images from a database. So my forms elements are
named like this: "name_of_the_element"+image_number.
So I have name_of_the_element1, name_of_the_element2
and so on.
My problem is that I want to know which button from
which image was clicked to open the popup window, so I
can update the right form element. Does someone know
how can I do that?
Also, can I do something like this in JavaScript:
var name_variable = 'document.formname.elementname' +
number;
and then access name_variable.value?
which would be document.formname.elementname1 or 2 or
according to whichever image was selected?
I hope I could make myself clear :)
If not, ask me and I?ll try to be more specific.
Thanks in advance!
Sabrina
__________________________________________________
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 2598 bytes
Desc: not available
URL:
From ccrane at inxdesign.com Mon Sep 16 18:00:27 2002
From: ccrane at inxdesign.com (Christopher J. Crane)
Date: Mon, 16 Sep 2002 19:00:27 -0400
Subject: [Javascript] Javascript and forms
Message-ID: <000f01c25dd4$d8d3e310$a00a0a0a@INXDESIGN01>
I want to create a popup from a link. That part is simple...
I want the URL of the popup to contain variables from a set of form fields.
For instance, I want to popup a window when the submit button is pressed to go to http://my-server.com/image.php
I want to add the following variables to the end from the 4 form fields that are contained within the form. Not all of the 4 form fields will contain data all the time. The end result should look something like this:
http://my-server.com/image.php?sym=ikn&A=ibm&B=xrx&C=danky&D=rhat
I would like the usual options when the popup is created, no scrollbars, a certain size and no address bar, no status bar ect.... The part I am stuck on is getting JavaScript to write the variables from the form to the end of the URL as it is shown above.
Thank you in advance to anyone that can help me with this.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From peter at brunone.com Mon Sep 16 18:42:03 2002
From: peter at brunone.com (Peter Brunone)
Date: Mon, 16 Sep 2002 18:42:03 -0500
Subject: [Javascript] Javascript and forms
In-Reply-To: <000f01c25dd4$d8d3e310$a00a0a0a@INXDESIGN01>
Message-ID:
var myURL;
myURL = http://myserver.com/image.php?sym= + document.formName.field1.value
+ "&A=" + document.formName.field2.value;
window.open("windowName", myURL, etc);
Cheers,
Peter
-----Original Message-----
From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On
Behalf Of Christopher J. Crane
Sent: Monday, September 16, 2002 6:00 PM
To: javascript at latech.edu
Subject: [Javascript] Javascript and forms
I want to create a popup from a link. That part is simple...
I want the URL of the popup to contain variables from a set of form
fields.
For instance, I want to popup a window when the submit button is pressed
to go to http://my-server.com/image.php
I want to add the following variables to the end from the 4 form fields
that are contained within the form. Not all of the 4 form fields will
contain data all the time. The end result should look something like this:
http://my-server.com/image.php?sym=ikn&A=ibm&B=xrx&C=danky&D=rhat
I would like the usual options when the popup is created, no scrollbars, a
certain size and no address bar, no status bar ect.... The part I am stuck
on is getting JavaScript to write the variables from the form to the end of
the URL as it is shown above.
Thank you in advance to anyone that can help me with this.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From gavcheyne at mac.com Wed Sep 18 06:12:56 2002
From: gavcheyne at mac.com (Gavin Cheyne)
Date: Wed, 18 Sep 2002 12:12:56 +0100
Subject: [Javascript] Another popup question
Message-ID:
Hi,
I've been asked alter a javascript popup so that it triggers when a user
leaves a particular area of the site. This will have to be triggered by
onUnload so that it appears even if the user jumps to another site.
I've got it working with onLoad thus:
if (document.referrer.indexOf("my_directory") >= 0)
{
window.open("url", etc);
}
My question is this: can I grab the url that the browser is going to, rather
than the one its coming from?
I suspect it is something simple, but I've had my nose in (beginners)
javascript books for days with no joy. Any help gratefully received.
Gavin.
From rodney at aflyingstart.net Wed Sep 18 06:38:50 2002
From: rodney at aflyingstart.net (Rodney Myers)
Date: Wed, 18 Sep 2002 12:38:50 +0100
Subject: [Javascript] Another popup question
References:
Message-ID: <3D8865CA.7138360@aflyingstart.net>
> can I grab the url that the browser is going to?
It _is_ really simple: No.
All history data is tainted for privacy reasons.
Many firewalls suppress HTTP_REFERER, without which in the file header I believe
even document.referer will draw a blank.
Rodney
Gavin Cheyne wrote:
> Hi,
>
> I've been asked alter a javascript popup so that it triggers when a user
> leaves a particular area of the site. This will have to be triggered by
> onUnload so that it appears even if the user jumps to another site.
>
> I've got it working with onLoad thus:
>
> if (document.referrer.indexOf("my_directory") >= 0)
> {
> window.open("url", etc);
> }
>
> My question is this: can I grab the url that the browser is going to, rather
> than the one its coming from?
>
> I suspect it is something simple, but I've had my nose in (beginners)
> javascript books for days with no joy. Any help gratefully received.
>
> Gavin.
>
>
From hassan at webtuitive.com Wed Sep 18 09:32:56 2002
From: hassan at webtuitive.com (Hassan Schroeder)
Date: Wed, 18 Sep 2002 07:32:56 -0700
Subject: [Javascript] Another popup question
References:
Message-ID: <3D888E98.3020602@webtuitive.com>
Gavin Cheyne wrote:
> I've been asked alter a javascript popup so that it triggers when a user
> leaves a particular area of the site. This will have to be triggered by
> onUnload so that it appears even if the user jumps to another site.
> My question is this: can I grab the url that the browser is going to, rather
> than the one its coming from?
You can *if* the user is leaving via a link on your page --
Next I'm going to here
If they leave by typing something in the address bar, you won't
know where they're going, but your onunload routine can at least
determine that the unload wasn't preceded by an onclick event.
HTH!
--
H*
Hassan Schroeder ----------------------------- hassan at webtuitive.com
Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com
-- creating dynamic Web sites and applications since 1994 --
From Jamesjackson73 at aol.com Thu Sep 19 17:49:05 2002
From: Jamesjackson73 at aol.com (Jamesjackson73 at aol.com)
Date: Thu, 19 Sep 2002 18:49:05 EDT
Subject: [Javascript] Close the pop-up
Message-ID: <15e.1421b6e3.2abbae61@aol.com>
People,
I'm sure this is very simple, but not entirely sure....
I want to put a link in a pop-up window, that will close that very same
pop-up and return the user to the parent window....
Thanks in advance....
The code would be a great help....
Cheers Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From hlove at u.washington.edu Thu Sep 19 18:00:39 2002
From: hlove at u.washington.edu (Harry Love)
Date: Thu, 19 Sep 2002 16:00:39 -0700
Subject: [Javascript] Close the pop-up
In-Reply-To: <15e.1421b6e3.2abbae61@aol.com>
Message-ID: <000301c26030$5f9a7550$467a5f80@hsl.washington.edu>
Are you looking for something like this?
Close this window
Regards,
Harry
From tutwabee at hotmail.com Thu Sep 19 18:46:36 2002
From: tutwabee at hotmail.com (Trey H)
Date: Thu, 19 Sep 2002 23:46:36 +0000
Subject: [Javascript] Close the pop-up
Message-ID:
Jim,
Just make a link like this:
Close Window
====================================
Trey Hunner: tutwabee at hotmail.com
website: http://www.websiter.biz
AIM, Yahoo, and MSN: tutwabee
ICQ: 155101326
====================================
>From: Jamesjackson73 at aol.com
>Reply-To: javascript at LaTech.edu
>To: javascript at LaTech.edu
>Subject: [Javascript] Close the pop-up
>Date: Thu, 19 Sep 2002 18:49:05 EDT
>
>People,
>I'm sure this is very simple, but not entirely sure....
>I want to put a link in a pop-up window, that will close that very same
>pop-up and return the user to the parent window....
>Thanks in advance....
>The code would be a great help....
>Cheers Jim
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
From LMuchacho at twii.net Fri Sep 20 04:27:18 2002
From: LMuchacho at twii.net (Muchacho, Laurent (TWIi London))
Date: Fri, 20 Sep 2002 10:27:18 +0100
Subject: [Javascript] Close the pop-up
Message-ID: <76A6F0FCCA27D4119DEF00805F5700AC03C5D172@lon.webmail.twii.net>
Hi Jim
Trey was right with
Close Window
this will work to
Close Window
but what you looking is the opener to come back in focus
Close Window
Laurent
ps: the best will be a function
Close Window
function close_window(){
opener.focus();
self.close();
}
-----Original Message-----
From: Trey H [mailto:tutwabee at hotmail.com]
Sent: 20 September 2002 00:47
To: javascript at LaTech.edu
Subject: Re: [Javascript] Close the pop-up
Jim,
Just make a link like this:
Close Window
====================================
Trey Hunner: tutwabee at hotmail.com
website: http://www.websiter.biz
AIM, Yahoo, and MSN: tutwabee
ICQ: 155101326
====================================
>From: Jamesjackson73 at aol.com
>Reply-To: javascript at LaTech.edu
>To: javascript at LaTech.edu
>Subject: [Javascript] Close the pop-up
>Date: Thu, 19 Sep 2002 18:49:05 EDT
>
>People,
>I'm sure this is very simple, but not entirely sure....
>I want to put a link in a pop-up window, that will close that very same
>pop-up and return the user to the parent window....
>Thanks in advance....
>The code would be a great help....
>Cheers Jim
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript
DISCLAIMER - The preceding e-mail message (including any attachments)
contains information that may be confidential, may be protected by the
attorney-client or other applicable privileges, or may constitute non-public
information. It is intended to be conveyed only to the designated
recipient(s) named above. If you are not an intended recipient of this
message, or have otherwise received it in error, please notify the sender by
replying to this message and then delete all copies of it from your computer
system. Any use, dissemination, distribution, or reproduction of this
message by unintended recipients is not authorized and may be unlawful. The
contents of this communication do not necessarily represent the views of
this company.
From Murugan.Selvaraj at geind.ge.com Fri Sep 20 04:29:56 2002
From: Murugan.Selvaraj at geind.ge.com (Selvaraj, Murugan (Indsys))
Date: Fri, 20 Sep 2002 14:59:56 +0530
Subject: [Javascript] How do i find out the path of the client side browser temporary d
irectory in java script?
Message-ID: <05C613689F01D611AC820002A54177C002B9E23E@GIAHYDMSX2.SGE.INDSYS.GE.COM>
Hi all
Is it possible to find out the path of the client side browser temporary
directory in java script?
Regards
Morgan
"THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system."
From javascript at theblades-family.com Fri Sep 20 08:21:42 2002
From: javascript at theblades-family.com (Cutter (javascript list))
Date: Fri, 20 Sep 2002 09:21:42 -0400
Subject: [Javascript] Re: How do i find out the path of the client side browser temporary d irectory in java script?
In-Reply-To: <05C613689F01D611AC820002A54177C002B9E23E@GIAHYDMSX2.SGE.INDSYS.GE.COM>
References: <05C613689F01D611AC820002A54177C002B9E23E@GIAHYDMSX2.SGE.INDSYS.GE.COM>
Message-ID: <20020920132143.40231.qmail@vpop.dmv.com>
No. JavaScript is made to only function with the Browser Window container.
It intentionally does not have access to the operating system or other
applications on a user's system. This is one of the built in security
features of the scripting language. However you may be able to use JScript
(a Micro$oft scripting knockoff) to access the user's system, if it is a
Windows based system.
Cutter
Selvaraj, Murugan (Indsys) writes:
> Hi all
>
> Is it possible to find out the path of the client side browser temporary
> directory in java script?
>
> Regards
> Morgan
>
>
> "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
> ADDRESSEE and may contain confidential and privileged information.
> If the reader of this message is not the intended recipient,
> you are notified that any dissemination, distribution or copy of this
> communication is strictly Prohibited.
> If you have received this message by error, please notify us
> immediately, return the original mail to the sender and delete the
> message from your system."
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
From Murugan.Selvaraj at geind.ge.com Fri Sep 20 10:54:37 2002
From: Murugan.Selvaraj at geind.ge.com (Selvaraj, Murugan (Indsys))
Date: Fri, 20 Sep 2002 21:24:37 +0530
Subject: [Javascript] Re: How do i find out the path of the client sid
e browser temporary d irectory in java script?
Message-ID: <05C613689F01D611AC820002A54177C002BBBB60@GIAHYDMSX2.SGE.INDSYS.GE.COM>
Thanks Cutter
-----Original Message-----
From: Cutter (javascript list) [mailto:javascript at theblades-family.com]
Sent: Friday, September 20, 2002 6:52 PM
To: javascript at LaTech.edu
Subject: [Javascript] Re: How do i find out the path of the client side
browser temporary d irectory in java script?
No. JavaScript is made to only function with the Browser Window container.
It intentionally does not have access to the operating system or other
applications on a user's system. This is one of the built in security
features of the scripting language. However you may be able to use JScript
(a Micro$oft scripting knockoff) to access the user's system, if it is a
Windows based system.
Cutter
Selvaraj, Murugan (Indsys) writes:
> Hi all
>
> Is it possible to find out the path of the client side browser temporary
> directory in java script?
>
> Regards
> Morgan
>
>
> "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
> ADDRESSEE and may contain confidential and privileged information.
> If the reader of this message is not the intended recipient,
> you are notified that any dissemination, distribution or copy of this
> communication is strictly Prohibited.
> If you have received this message by error, please notify us
> immediately, return the original mail to the sender and delete the
> message from your system."
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript
"THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system."
From sandy at psyknet.dk Sat Sep 21 01:59:27 2002
From: sandy at psyknet.dk (Sandra Delgado)
Date: Sat, 21 Sep 2002 02:59:27 -0400
Subject: [Javascript] Felicidades!!!!
Message-ID: <200209210654.g8L6sH8Q075861@helius.latech.edu>
An HTML attachment was scrubbed...
URL:
From sebastian.lahajnar at pris-inz.si Mon Sep 23 02:09:48 2002
From: sebastian.lahajnar at pris-inz.si (sebastian)
Date: Mon, 23 Sep 2002 09:09:48 +0200
Subject: [Javascript] hyperlinks to documents
Message-ID:
Hi.
Firs question:
Is it possible to control how a file (for example word or excel document) is
processed after clicking on a proper hyperlink?
I have a table of links to word's documents (from an ASP query) on my web
server. Depending of the settings in different browsers (I thnink), when I
click on the hyperlink the document opens:
1. directly in the browser
2. I'm asked to open or to download
Is it possible to achive that the user is always asked or that the download
automaticly begin.
Second question:
If I change the code so that a hyperlink opens a document in a new window,
but then I choose not to open but rather download a document, then the
window opens as blank, what I don't wont (how to automaticly close the
window in no document is shown?).
Thanks, Sebastian
From greg at krieser.com Tue Sep 24 08:52:29 2002
From: greg at krieser.com (greg at krieser.com)
Date: Tue, 24 Sep 2002 08:52:29 -0500
Subject: [Javascript] Control IE "text size"
Message-ID: <200209241352.IAA22962@ppk.siteprotect.com>
Internet Explorer provides the user the ability to adjust text size using the View menu, then Text Size. I noticed that some site have format problems (particularly in closely cropped table) when 'larger' and 'largest' sizes are specified. The 'medium' setting is the default. Is it possible to temporarily control this setting using JavaScript? Is the best solution to make graphics of text that could be a problem?
Thanks,
Greg Krieser
greg at krieser.com
From LMuchacho at twii.net Tue Sep 24 09:01:16 2002
From: LMuchacho at twii.net (Muchacho, Laurent (TWIi London))
Date: Tue, 24 Sep 2002 15:01:16 +0100
Subject: [Javascript] Control IE "text size"
Message-ID: <76A6F0FCCA27D4119DEF00805F5700AC03C5D180@lon.webmail.twii.net>
Hi Greg
I don't think you can control this setting in internet explorer or other
browser but you can use CSS to set style to your text and the setting will
not overide the size you specified to your font
Laurent
-----Original Message-----
From: greg at krieser.com [mailto:greg at krieser.com]
Sent: 24 September 2002 14:52
To: javascript at latech.edu
Subject: [Javascript] Control IE "text size"
Internet Explorer provides the user the ability to adjust text size using
the View menu, then Text Size. I noticed that some site have format problems
(particularly in closely cropped table) when 'larger' and 'largest' sizes
are specified. The 'medium' setting is the default. Is it possible to
temporarily control this setting using JavaScript? Is the best solution to
make graphics of text that could be a problem?
Thanks,
Greg Krieser
greg at krieser.com
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript
DISCLAIMER - The preceding e-mail message (including any attachments)
contains information that may be confidential, may be protected by the
attorney-client or other applicable privileges, or may constitute non-public
information. It is intended to be conveyed only to the designated
recipient(s) named above. If you are not an intended recipient of this
message, or have otherwise received it in error, please notify the sender by
replying to this message and then delete all copies of it from your computer
system. Any use, dissemination, distribution, or reproduction of this
message by unintended recipients is not authorized and may be unlawful. The
contents of this communication do not necessarily represent the views of
this company.
From costea.dan at ssi-schaefer.ro Tue Sep 24 09:01:42 2002
From: costea.dan at ssi-schaefer.ro (Dan Costea)
Date: Tue, 24 Sep 2002 17:01:42 +0300
Subject: [Javascript] Control IE "text size"
References: <200209241352.IAA22962@ppk.siteprotect.com>
Message-ID: <006801c263d2$e933c000$dfdea8c0@PCCostea>
You can set fixed font size by using Cascading Style Sheets (css). For
example:
asdfasdfasd
or
asdfasdfasd
So, you can change the font size to depend on the rezolution (px) or not
(pt).
----- Original Message -----
From:
To:
Sent: Tuesday, September 24, 2002 4:52 PM
Subject: [Javascript] Control IE "text size"
> Internet Explorer provides the user the ability to adjust text size using
the View menu, then Text Size. I noticed that some site have format problems
(particularly in closely cropped table) when 'larger' and 'largest' sizes
are specified. The 'medium' setting is the default. Is it possible to
temporarily control this setting using JavaScript? Is the best solution to
make graphics of text that could be a problem?
>
> Thanks,
>
> Greg Krieser
> greg at krieser.com
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
From greg at krieser.com Tue Sep 24 10:47:29 2002
From: greg at krieser.com (greg at krieser.com)
Date: Tue, 24 Sep 2002 10:47:29 -0500
Subject: [Javascript] Control IE "text size"
Message-ID: <200209241547.KAA15305@ppk.siteprotect.com>
GREAT solution! Thanks.?
?
The following message was sent by "Dan Costea" on Tue, 24 Sep 2002 17:01:42 +0300.
> You can set fixed font size by using Cascading Style Sheets (css). For
> example:
>
> asdfasdfasd
> or
> asdfasdfasd
>
> So, you can change the font size to depend on the rezolution (px) or not
> (pt).
>
> ----- Original Message -----
> From:
> To:
> Sent: Tuesday, September 24, 2002 4:52 PM
> Subject: [Javascript] Control IE "text size"
>
>
> > Internet Explorer provides the user the ability to adjust text size using
> the View menu, then Text Size. I noticed that some site have format problems
> (particularly in closely cropped table) when 'larger' and 'largest' sizes
> are specified. The 'medium' setting is the default. Is it possible to
> temporarily control this setting using JavaScript? Is the best solution
> to
> make graphics of text that could be a problem?
> >
> > Thanks,
> >
> > Greg Krieser
> > greg at krieser.com
> > _______________________________________________
> > Javascript mailing list
> > Javascript at LaTech.edu
> > https://lists.LaTech.edu/mailman/listinfo/javascript
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
From jgordon at directfile.com Tue Sep 24 12:10:39 2002
From: jgordon at directfile.com (Josiah Gordon)
Date: Tue, 24 Sep 2002 10:10:39 -0700
Subject: [Javascript] Control IE "text size"
In-Reply-To: <200209241547.KAA15305@ppk.siteprotect.com>
Message-ID:
<>
Just a heads up and my $0.02.
This is a workaround, not a solution.
In Netscape 7.0+, Mozilla, and Opera (as well as others) the browser does
not allow a page author to hijack the user's browser by forcing an explicit
text size. IE is wrong to do it, and designing a page that insists on this
behavior will only frustrate your users with bad eyes or hi-res laptop
screens and will only break when IE changes to the correct implementation of
style sheets. You have been warned. Any page designed like this will break
on all current browsers in a short time.
--Josiah Gordon
From Esther_Strom at hmco.com Tue Sep 24 12:11:28 2002
From: Esther_Strom at hmco.com (Esther_Strom at hmco.com)
Date: Tue, 24 Sep 2002 12:11:28 -0500
Subject: [Javascript] Control IE "text size"
Message-ID:
I agree in theory, but have to say that this line:
"...will only break when IE changes to the correct implementation"
is rather naive. When has Microsoft ever changed to the correct
implementation of anything?
|------------------------------|
| E S T H E R S T R O M, CLPP |
| Notes Application Development|
| McDougal Littell |
| 909 Davis Street |
| Evanston, IL 60201 USA |
| w: 847.424.3209 |
| e: esther_strom at hmco.com |
|------------------------------|
"Josiah Gordon"
ile.com> cc:
Sent by: Subject: RE: [Javascript] Control IE "text size"
javascript-admin
@LaTech.edu
09/24/2002 12:10
PM
Please respond
to javascript
<>
Just a heads up and my $0.02.
This is a workaround, not a solution.
In Netscape 7.0+, Mozilla, and Opera (as well as others) the browser does
not allow a page author to hijack the user's browser by forcing an explicit
text size. IE is wrong to do it, and designing a page that insists on this
behavior will only frustrate your users with bad eyes or hi-res laptop
screens and will only break when IE changes to the correct implementation
of
style sheets. You have been warned. Any page designed like this will break
on all current browsers in a short time.
--Josiah Gordon
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript
From jgordon at directfile.com Tue Sep 24 12:28:59 2002
From: jgordon at directfile.com (Josiah Gordon)
Date: Tue, 24 Sep 2002 10:28:59 -0700
Subject: [Javascript] Control IE "text size"
In-Reply-To:
Message-ID:
<<<
I agree in theory, but have to say that this line:
"...will only break when IE changes to the correct implementation"
is rather naive. When has Microsoft ever changed to the correct
implementation of anything?
>>>
IE version 7.0 beta :-)
When I last checked, MS IE used a compliant implementation of CSS text size.
I haven't kept up on the betas, but I would guess that they will grudgingly
correct their CSS in the final release.
If you have tried reading Arial 8pt on a UXGA+ laptop screen (1600x1200) you
know that IE's current implementation of CSS text size is flawed. 8pt text
at that resolution is like reading a car loan contract -- the real font size
is 3-4pt. Resolutions are only going to increase in the future...
--Josiah Gordon
From cheryl at leo.scsl.state.sc.us Tue Sep 24 12:40:03 2002
From: cheryl at leo.scsl.state.sc.us (Cheryl Kirkpatrick)
Date: Tue, 24 Sep 2002 13:40:03 -0400
Subject: [Javascript] Control IE "text size"
References: <20020924170101.5BCE2308C5F@LaTech.edu>
Message-ID: <3D90A373.E0121B68@leo.scsl.state.sc.us>
Please consider the reason Internet Explorer gives the user
the ability to adjust text size. Some users have vision problems and need to set
text to a size they can see. You are doing a disservice to those users when you
override their preferences. Accessibility of Web sites is a big issue at this time
and the W3C recommends using relative font sizes.
Cheryl Kirkpatrick
Web Administrator
South Carolina State Library
javascript-request at LaTech.edu wrote:
> 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. Control IE "text size" (greg at krieser.com)
> 2. RE: Control IE "text size" (Muchacho, Laurent (TWIi London))
> 3. Re: Control IE "text size" (Dan Costea)
> 4. Re: Control IE "text size" (greg at krieser.com)
>
> --__--__--
>
> Message: 1
> To: javascript at latech.edu
> From: "greg at krieser.com"
> Date: Tue, 24 Sep 2002 08:52:29 -0500
> Subject: [Javascript] Control IE "text size"
> Reply-To: javascript at LaTech.edu
>
> Internet Explorer provides the user the ability to adjust text size using the View menu, then Text Size. I noticed that some site have format problems (particularly in closely cropped table) when 'larger' and 'largest' sizes are specified. The 'medium' se
> tting is the default. Is it possible to temporarily control this setting using JavaScript? Is the best solution to make graphics of text that could be a problem?
>
> Thanks,
>
> Greg Krieser
> greg at krieser.com
>
> --__--__--
>
> Message: 2
> From: "Muchacho, Laurent (TWIi London)"
> To: "'javascript at LaTech.edu'"
> Subject: RE: [Javascript] Control IE "text size"
> Date: Tue, 24 Sep 2002 15:01:16 +0100
> Reply-To: javascript at LaTech.edu
>
> Hi Greg
>
> I don't think you can control this setting in internet explorer or other
> browser but you can use CSS to set style to your text and the setting will
> not overide the size you specified to your font
>
> Laurent
>
> -----Original Message-----
> From: greg at krieser.com [mailto:greg at krieser.com]
> Sent: 24 September 2002 14:52
> To: javascript at latech.edu
> Subject: [Javascript] Control IE "text size"
>
> Internet Explorer provides the user the ability to adjust text size using
> the View menu, then Text Size. I noticed that some site have format problems
> (particularly in closely cropped table) when 'larger' and 'largest' sizes
> are specified. The 'medium' setting is the default. Is it possible to
> temporarily control this setting using JavaScript? Is the best solution to
> make graphics of text that could be a problem?
>
> Thanks,
>
> Greg Krieser
> greg at krieser.com
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
> DISCLAIMER - The preceding e-mail message (including any attachments)
> contains information that may be confidential, may be protected by the
> attorney-client or other applicable privileges, or may constitute non-public
> information. It is intended to be conveyed only to the designated
> recipient(s) named above. If you are not an intended recipient of this
> message, or have otherwise received it in error, please notify the sender by
> replying to this message and then delete all copies of it from your computer
> system. Any use, dissemination, distribution, or reproduction of this
> message by unintended recipients is not authorized and may be unlawful. The
> contents of this communication do not necessarily represent the views of
> this company.
>
> --__--__--
>
> Message: 3
> From: "Dan Costea"
> To:
> Subject: Re: [Javascript] Control IE "text size"
> Date: Tue, 24 Sep 2002 17:01:42 +0300
> Reply-To: javascript at LaTech.edu
>
> You can set fixed font size by using Cascading Style Sheets (css). For
> example:
>
> asdfasdfasd
> or
> asdfasdfasd
>
> So, you can change the font size to depend on the rezolution (px) or not
> (pt).
>
> ----- Original Message -----
> From:
> To:
> Sent: Tuesday, September 24, 2002 4:52 PM
> Subject: [Javascript] Control IE "text size"
>
> > Internet Explorer provides the user the ability to adjust text size using
> the View menu, then Text Size. I noticed that some site have format problems
> (particularly in closely cropped table) when 'larger' and 'largest' sizes
> are specified. The 'medium' setting is the default. Is it possible to
> temporarily control this setting using JavaScript? Is the best solution to
> make graphics of text that could be a problem?
> >
> > Thanks,
> >
> > Greg Krieser
> > greg at krieser.com
> > _______________________________________________
> > Javascript mailing list
> > Javascript at LaTech.edu
> > https://lists.LaTech.edu/mailman/listinfo/javascript
>
> --__--__--
>
> Message: 4
> To: javascript at LaTech.edu,
> From: "greg at krieser.com"
> Cc: costea.dan at ssi-schaefer.ro, javascript-admin at LaTech.edu
> Subject: Re: [Javascript] Control IE "text size"
> Date: Tue, 24 Sep 2002 10:47:29 -0500
> Reply-To: javascript at LaTech.edu
>
> GREAT solution! Thanks.
>
> The following message was sent by "Dan Costea" on Tue, 24 Sep 2002 17:01:42 +0300.
>
> > You can set fixed font size by using Cascading Style Sheets (css). For
> > example:
> >
> > asdfasdfasd
> > or
> > asdfasdfasd
> >
> > So, you can change the font size to depend on the rezolution (px) or not
> > (pt).
> >
> > ----- Original Message -----
> > From:
> > To:
> > Sent: Tuesday, September 24, 2002 4:52 PM
> > Subject: [Javascript] Control IE "text size"
> >
> >
> > > Internet Explorer provides the user the ability to adjust text size using
> > the View menu, then Text Size. I noticed that some site have format problems
> > (particularly in closely cropped table) when 'larger' and 'largest' sizes
> > are specified. The 'medium' setting is the default. Is it possible to
> > temporarily control this setting using JavaScript? Is the best solution
> > to
> > make graphics of text that could be a problem?
> > >
> > > Thanks,
> > >
> > > Greg Krieser
> > > greg at krieser.com
> > > _______________________________________________
> > > Javascript mailing list
> > > Javascript at LaTech.edu
> > > https://lists.LaTech.edu/mailman/listinfo/javascript
> >
> > _______________________________________________
> > Javascript mailing list
> > Javascript at LaTech.edu
> > https://lists.LaTech.edu/mailman/listinfo/javascript
> >
>
> --__--__--
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
> End of Javascript Digest
--
Cheryl Kirkpatrick
Web Administrator/
Information Technology Librarian
South Carolina State Library
http://www.state.sc.us/scsl/
Telephone: 803.734.5831
From andrew at d2k.com.au Tue Sep 24 20:13:04 2002
From: andrew at d2k.com.au (Andrew Dunn)
Date: Wed, 25 Sep 2002 11:13:04 +1000
Subject: [Javascript] Add 10 working days.
Message-ID: <1D0255E75622D51185DB00D0B7E3FF44203B18@chimaera.d2k.com.au>
I need to add 10 working days to a date the user enters in to a text box. At
the moment I'm using this function:
function addDays(myDate,days) {
return new Date(myDate.getTime() +
days*24*60*60*1000);
}
This adds the number of days, but it doesn't exclude weekends. Anyone have
any suggestions for this?
Thanks.
From trojani2000 at hotmail.com Tue Sep 24 20:40:21 2002
From: trojani2000 at hotmail.com (BEKIM BACAJ)
Date: Wed, 25 Sep 2002 01:40:21 +0000
Subject: [Javascript] Add 10 working days.
Message-ID:
If I understood the problem correctly, you have to extract the weekends or
ad the number of days that fallitno the weekend of this 10 day prolongation.
The number wary from 2 - 4 so you have to find out what day of the week the
user entered the textbox so you can decide how many days to add. (hollyday
date may also cause some additional probs)
this would be all for now. Cheers!
>From: Andrew Dunn
>Reply-To: javascript at LaTech.edu
>To: "'javascript at LaTech.edu'"
>Subject: [Javascript] Add 10 working days.
>Date: Wed, 25 Sep 2002 11:13:04 +1000
>
>I need to add 10 working days to a date the user enters in to a text box.
>At
>the moment I'm using this function:
>
>function addDays(myDate,days) {
> return new Date(myDate.getTime() +
>days*24*60*60*1000);
> }
>
>This adds the number of days, but it doesn't exclude weekends. Anyone have
>any suggestions for this?
>
>Thanks.
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript
_________________________________________________________________
Join the world?s largest e-mail service with MSN Hotmail.
http://www.hotmail.com
From andrew at d2k.com.au Tue Sep 24 22:36:04 2002
From: andrew at d2k.com.au (Andrew Dunn)
Date: Wed, 25 Sep 2002 13:36:04 +1000
Subject: [Javascript] Add 10 working days.
Message-ID: <1D0255E75622D51185DB00D0B7E3FF44203B1C@chimaera.d2k.com.au>
I made my own solution to the problem, here is the function:
function addWorkingDays(myDate,days) { //myDate = starting
date, days = no. working days to add.
var temp_date = new Date();
var i = 0;
var days_to_add = 0;
while (i < (days)){
temp_date = new Date(myDate.getTime() +
(days_to_add*24*60*60*1000));
//0 = Sunday, 6 = Saturday, if the date not
equals a weekend day then increase by 1
if ((temp_date.getDay() != 0) &&
(temp_date.getDay() != 6)){
i+=1;
}
days_to_add += 1;
}
return new Date(myDate.getTime() +
days_to_add*24*60*60*1000);
}
-----Original Message-----
From: BEKIM BACAJ [mailto:trojani2000 at hotmail.com]
Sent: Wednesday, 25 September 2002 11:40 AM
To: javascript at LaTech.edu
Subject: Re: [Javascript] Add 10 working days.
If I understood the problem correctly, you have to extract the weekends or
ad the number of days that fallitno the weekend of this 10 day prolongation.
The number wary from 2 - 4 so you have to find out what day of the week the
user entered the textbox so you can decide how many days to add. (hollyday
date may also cause some additional probs)
this would be all for now. Cheers!
>From: Andrew Dunn
>Reply-To: javascript at LaTech.edu
>To: "'javascript at LaTech.edu'"
>Subject: [Javascript] Add 10 working days.
>Date: Wed, 25 Sep 2002 11:13:04 +1000
>
>I need to add 10 working days to a date the user enters in to a text
>box.
>At
>the moment I'm using this function:
>
>function addDays(myDate,days) {
> return new Date(myDate.getTime() +
>days*24*60*60*1000);
> }
>
>This adds the number of days, but it doesn't exclude weekends. Anyone
>have any suggestions for this?
>
>Thanks.
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript
_________________________________________________________________
Join the world's largest e-mail service with MSN Hotmail.
http://www.hotmail.com
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript
From trojani2000 at hotmail.com Tue Sep 24 22:59:05 2002
From: trojani2000 at hotmail.com (BEKIM BACAJ)
Date: Wed, 25 Sep 2002 03:59:05 +0000
Subject: [Javascript] Add 10 working days.
Message-ID:
Well,
very nice solution. Fast and creative - I like that!
thank's for repply. (keep on the good work, it will pay back:)
>From: Andrew Dunn
>Reply-To: javascript at LaTech.edu
>To: "'javascript at LaTech.edu'"
>Subject: RE: [Javascript] Add 10 working days.
>Date: Wed, 25 Sep 2002 13:36:04 +1000
>
>I made my own solution to the problem, here is the function:
>
> function addWorkingDays(myDate,days) { //myDate = starting
>date, days = no. working days to add.
> var temp_date = new Date();
> var i = 0;
> var days_to_add = 0;
> while (i < (days)){
> temp_date = new Date(myDate.getTime() +
>(days_to_add*24*60*60*1000));
> //0 = Sunday, 6 = Saturday, if the date not
>equals a weekend day then increase by 1
> if ((temp_date.getDay() != 0) &&
>(temp_date.getDay() != 6)){
> i+=1;
> }
> days_to_add += 1;
> }
> return new Date(myDate.getTime() +
>days_to_add*24*60*60*1000);
> }
>
>
>
>-----Original Message-----
>From: BEKIM BACAJ [mailto:trojani2000 at hotmail.com]
>Sent: Wednesday, 25 September 2002 11:40 AM
>To: javascript at LaTech.edu
>Subject: Re: [Javascript] Add 10 working days.
>
>
>If I understood the problem correctly, you have to extract the weekends or
>ad the number of days that fallitno the weekend of this 10 day
>prolongation.
>
>The number wary from 2 - 4 so you have to find out what day of the week the
>user entered the textbox so you can decide how many days to add. (hollyday
>date may also cause some additional probs)
>this would be all for now. Cheers!
>
>
> >From: Andrew Dunn
> >Reply-To: javascript at LaTech.edu
> >To: "'javascript at LaTech.edu'"
> >Subject: [Javascript] Add 10 working days.
> >Date: Wed, 25 Sep 2002 11:13:04 +1000
> >
> >I need to add 10 working days to a date the user enters in to a text
> >box.
> >At
> >the moment I'm using this function:
> >
> >function addDays(myDate,days) {
> > return new Date(myDate.getTime() +
> >days*24*60*60*1000);
> > }
> >
> >This adds the number of days, but it doesn't exclude weekends. Anyone
> >have any suggestions for this?
> >
> >Thanks.
> >_______________________________________________
> >Javascript mailing list
> >Javascript at LaTech.edu
> >https://lists.LaTech.edu/mailman/listinfo/javascript
>
>
>
>
>_________________________________________________________________
>Join the world's largest e-mail service with MSN Hotmail.
>http://www.hotmail.com
>
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
From mbushman at RPU.ORG Wed Sep 25 15:53:34 2002
From: mbushman at RPU.ORG (Matt Bushman)
Date: Wed, 25 Sep 2002 15:53:34 -0500
Subject: [Javascript] Javascript Question
Message-ID:
Did you ever figure out how to get the cursor position in a textarea
field????
Let me know...
Your message below:
Dan- I just tried it and it actually gives the position of the mouse and not
the blinking text cursor (sorry I didn't make that clear).
David > -----Original Message----- > From: Dan Costea [mailto:HYPERLINK
"mailto:costea.dan at ssi-schaefer.ro"costea.dan at ssi-schaefer.ro
] > Sent: Tuesday, January 29, 2002 10:28 PM > To:
javascript at LaTech.edu > Subject: Re:
[Javascript] Get the position of the cursor in a > textarea? > > > Yes, it
is possible. I didn't made the code for NS, but with > IE4+ you can > run
the following code: > > >
>
> >
> > > > > > > Hi all. Is it possible to get the position of the cursor > in
a textarea? > > E.g. let's say I have: > > > > Hello there, Welcome to 12345
company. > > > > in a textarea, and the cursor is currently after the word >
Hello. So I > would > > like a value of 6 returned by such a javascript
function. Thanks! > > > > David
Matt Bushman, IT Analyst
Rochester Public Utilities
4000 East River Road NE
Rochester, MN 55906
Phone: 507-280-1536
Email: msbushman at rpu.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From greg at krieser.com Fri Sep 27 11:51:03 2002
From: greg at krieser.com (greg at krieser.com)
Date: Fri, 27 Sep 2002 11:51:03 -0500
Subject: [Javascript] Passing Selection Data
Message-ID: <200209271651.LAA32478@ppk.siteprotect.com>
Is it possible to pass selections from a pop-up window to a main page with JavaScript? On the following page
http://www.cbshome.com/IRP/listing/ListingSearch.asp?ListingType=1&SearchType=Geographic
a map link provides a pop-up window with a map. When you click on sections of the map, the information of the selection is passed back to the main page. How is this done? I've got a file with a map that fills in form data when a selection is made, but it is all on one page. I like the pop-up idea. Can't seem to understand how they did it?
Anyone have experience with this?
Thanks,
Greg
From peter at brunone.com Fri Sep 27 12:22:06 2002
From: peter at brunone.com (Peter Brunone)
Date: Fri, 27 Sep 2002 12:22:06 -0500
Subject: [Javascript] Passing Selection Data
References: <200209271651.LAA32478@ppk.siteprotect.com>
Message-ID: <240001c2664a$679fe3a0$3995210a@pbrunonePC>
Greg,
I guess you answered your first question already :)
From the child window, you can refer to the parent window as
window.opener and from there, everything is pretty much accessible. For
example, if the main window has a form named "mainForm" with a text input
named "cityName", you could change cityName to whatever you want with the
following line of script:
window.opener.document.forms.mainForm.cityName.value = "Dallas";
Just about all the objects in the main page can be accessed through the
opener object. For older browsers you may have to explicity set the opener
property when you open the window, i.e.
var newWin = window.open("whatever, etc.".....)
newWin.opener = window;
but most modern browsers (IE and NN 4.0 and up) take care of that so you
don't have to worry about it. Let me know if any of this is confusing...
Cheers,
Peter
----- Original Message -----
From:
| Is it possible to pass selections from a pop-up window to a main page with
JavaScript? On the following page
|
|
http://www.cbshome.com/IRP/listing/ListingSearch.asp?ListingType=1&SearchTyp
e=Geographic
|
| a map link provides a pop-up window with a map. When you click on
sections of the map, the information of the selection is passed back to the
main page. How is this done? I've got a file with a map that fills in form
data when a selection is made, but it is all on one page. I like the pop-up
idea. Can't seem to understand how they did it?
|
| Anyone have experience with this?
|
| Thanks,
|
| Greg
From greg at krieser.com Fri Sep 27 12:50:42 2002
From: greg at krieser.com (greg at krieser.com)
Date: Fri, 27 Sep 2002 12:50:42 -0500
Subject: [Javascript] Passing Selection Data
Message-ID: <200209271750.MAA13459@ppk.siteprotect.com>
Peter,
That is amazing! It works perfectly. Thank you very much!
Greg
The following message was sent by "Peter Brunone" on Fri, 27 Sep 2002 12:22:06 -0500.
> Greg,
>
> I guess you answered your first question already :)
>
> From the child window, you can refer to the parent window as
> window.opener and from there, everything is pretty much accessible. For
> example, if the main window has a form named "mainForm" with a text input
> named "cityName", you could change cityName to whatever you want with the
> following line of script:
>
> window.opener.document.forms.mainForm.cityName.value = "Dallas";
>
> Just about all the objects in the main page can be accessed through
> the
> opener object. For older browsers you may have to explicity set the opener
> property when you open the window, i.e.
>
> var newWin = window.open("whatever, etc.".....)
> newWin.opener = window;
>
> but most modern browsers (IE and NN 4.0 and up) take care of that so you
> don't have to worry about it. Let me know if any of this is confusing...
>
> Cheers,
>
> Peter
>
> ----- Original Message -----
> From:
>
>
> | Is it possible to pass selections from a pop-up window to a main page
> with
> JavaScript? On the following page
> |
> |
> http://www.cbshome.com/IRP/listing/ListingSearch.asp?ListingType=1&SearchTyp
> e=Geographic
> |
> | a map link provides a pop-up window with a map. When you click on
> sections of the map, the information of the selection is passed back to
> the
> main page. How is this done? I've got a file with a map that fills in
> form
> data when a selection is made, but it is all on one page. I like the pop-up
> idea. Can't seem to understand how they did it?
> |
> | Anyone have experience with this?
> |
> | Thanks,
> |
> | Greg
>
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
From HSenior at twii.net Fri Sep 27 13:15:01 2002
From: HSenior at twii.net (Senior, Henry (TWIi London))
Date: Fri, 27 Sep 2002 19:15:01 +0100
Subject: [Javascript] Passing Selection Data
Message-ID: <76A6F0FCCA27D4119DEF00805F5700AC043384D0@lon.webmail.twii.net>
if the opened window was opened from your main page (and is from the same
domain) you can do something like:
opener.document.forms['your form name'].elements['your element
name'].value='your value';
this will work x-browser
-----Original Message-----
From: javascript-request at LaTech.edu
[mailto:javascript-request at LaTech.edu]
Sent: 27 September 2002 18:01
To: javascript at LaTech.edu
Subject: Javascript digest, Vol 1 #762 - 1 msg
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. Passing Selection Data (greg at krieser.com)
--__--__--
Message: 1
To: "e-mail_list javascript"
From: "greg at krieser.com"
Date: Fri, 27 Sep 2002 11:51:03 -0500
Subject: [Javascript] Passing Selection Data
Reply-To: javascript at LaTech.edu
Is it possible to pass selections from a pop-up window to a main page with
JavaScript? On the following page
http://www.cbshome.com/IRP/listing/ListingSearch.asp?ListingType=1&SearchTyp
e=Geographic
a map link provides a pop-up window with a map. When you click on sections
of the map, the information of the selection is passed back to the main
page. How is this done? I've got a file with a map that fills in form data
when a selection is made, but it is all on one page. I like the pop-up
idea. Can't seem to understand how they did it?
Anyone have experience with this?
Thanks,
Greg
--__--__--
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript
End of Javascript Digest
DISCLAIMER - The preceding e-mail message (including any attachments)
contains information that may be confidential, may be protected by the
attorney-client or other applicable privileges, or may constitute non-public
information. It is intended to be conveyed only to the designated
recipient(s) named above. If you are not an intended recipient of this
message, or have otherwise received it in error, please notify the sender by
replying to this message and then delete all copies of it from your computer
system. Any use, dissemination, distribution, or reproduction of this
message by unintended recipients is not authorized and may be unlawful. The
contents of this communication do not necessarily represent the views of
this company.
From jefferis at petersonsales.net Fri Sep 27 15:43:22 2002
From: jefferis at petersonsales.net (Jefferis Peterson)
Date: Fri, 27 Sep 2002 16:43:22 -0400
Subject: [Javascript] New window open with properties and loaded php variables
Message-ID:
I'm trying to do something with a combination of php and javascript:
Click on an image that is created dynamically in a page from a database,
open a larger version of the image in a small pop up window. The problem is
I'm not sure how to transfer the variable of the larger picture to the new
window:
In Header I have:
>
In Body:
> href="javascript:newWindow()">
>
But it's opening a blank black page. Can I put a php variable in the
newWindow function?
~~~~~~~~~~~~
Jefferis Peterson, Pres.
Web Design and Marketing
http://www.PetersonSales.net
Tel . 724-458-7169
ICQ 19112253
http://www.Slippery-Rock.com - 7,000 hits per year
From nancybv at idirect.ca Fri Sep 27 17:03:25 2002
From: nancybv at idirect.ca (Nancy Burton-Vulovic)
Date: Fri, 27 Sep 2002 18:03:25 -0400
Subject: [Javascript] New window open with properties and loaded php variables
References:
Message-ID: <076b01c26671$b43bc9f0$6401a8c0@Nancy>
Are you saying that your script in the body is working, in that the
thumbnail field is displaying? If it were me, I'd check a couple of things:
1. [pictures] is not [picture] or [Pictures] or something
2. I thought you needed quotes around whatever you were echoing. (I always
use them). But if it's working in the second example, I suppose you don't.
3. Aren't you calling things twice? I mean, you call the contents of
$row_viewall[pictures] in the window definition, and then you write it again
in the document.write. Perhaps comment out the newWindow.document.write
line, and see if it works.
4. If you are going to leave it in, you can't just get that variable, it's a
picture, yes? Don't you need to call it within an img src, or something?
Just my .02 as I'm very tired on a Friday evening
N
----- Original Message -----
From: "Jefferis Peterson"
To: "Javascript Mail"
Sent: Friday, September 27, 2002 4:43 PM
Subject: [Javascript] New window open with properties and loaded php
variables
> I'm trying to do something with a combination of php and javascript:
>
> Click on an image that is created dynamically in a page from a database,
> open a larger version of the image in a small pop up window. The problem
is
> I'm not sure how to transfer the variable of the larger picture to the new
> window:
> In Header I have:
>
> >
> In Body:
> > > href="javascript:newWindow()">
> >
>
> But it's opening a blank black page. Can I put a php variable in the
> newWindow function?
> ~~~~~~~~~~~~
> Jefferis Peterson, Pres.
> Web Design and Marketing
> http://www.PetersonSales.net
> Tel . 724-458-7169
> ICQ 19112253
>
> http://www.Slippery-Rock.com - 7,000 hits per year
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
From jefferis at petersonsales.net Sat Sep 28 18:42:38 2002
From: jefferis at petersonsales.net (Jefferis Peterson)
Date: Sat, 28 Sep 2002 19:42:38 -0400
Subject: [Javascript] New window open with properties and loaded php
variables
In-Reply-To: <076b01c26671$b43bc9f0$6401a8c0@Nancy>
Message-ID:
On 9/27/02 6:03 PM, "Nancy Burton-Vulovic" wrote:
> Are you saying that your script in the body is working, in that the
> thumbnail field is displaying? If it were me, I'd check a couple of things:
>
> 1. [pictures] is not [picture] or [Pictures] or something
> 2. I thought you needed quotes around whatever you were echoing. (I always
> use them). But if it's working in the second example, I suppose you don't.
> 3. Aren't you calling things twice? I mean, you call the contents of
> $row_viewall[pictures] in the window definition, and then you write it again
> in the document.write. Perhaps comment out the newWindow.document.write
> line, and see if it works.
I was putting it in various places to test it. In php, a single quote is
used to set off html elements. I'm not sure it is correct for a function
script. The image will show if I put the pictures in the row in place of the
the thumnail. I may need to add an image source as you suggest.:
> 4. If you are going to leave it in, you can't just get that variable, it's a
> picture, yes? Don't you need to call it within an img src, or something?
~~~~~~~~~~~~
Jefferis Peterson, Pres.
Web Design and Marketing
http://www.PetersonSales.net
Tel . 724-458-7169
ICQ 19112253
http://www.Slippery-Rock.com - 7,000 hits per year
From javascript at theblades-family.com Mon Sep 30 08:03:09 2002
From: javascript at theblades-family.com (Cutter (javascript list))
Date: Mon, 30 Sep 2002 09:03:09 -0400
Subject: [Javascript] Re: New window open with properties and loaded php variables
In-Reply-To:
References:
Message-ID: <20020930130309.18161.qmail@vpop.dmv.com>
I did a similar implementation using ColdFusion. I named all of my images
sm.[imagename].jpg and lg.[imagename].jpg, I passed [imagename] to my script
for the links ( ). In my picdisp.html I wrote:
Cutter
Jefferis Peterson writes:
> I'm trying to do something with a combination of php and javascript:
>
> Click on an image that is created dynamically in a page from a database,
> open a larger version of the image in a small pop up window. The problem is
> I'm not sure how to transfer the variable of the larger picture to the new
> window:
> In Header I have:
>
>>
> In Body:
>> > href="javascript:newWindow()">
>>
>
> But it's opening a blank black page. Can I put a php variable in the
> newWindow function?
> ~~~~~~~~~~~~
> Jefferis Peterson, Pres.
> Web Design and Marketing
> http://www.PetersonSales.net
> Tel . 724-458-7169
> ICQ 19112253
>
> http://www.Slippery-Rock.com - 7,000 hits per year
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
From ma287 at columbia.edu Mon Sep 30 11:58:44 2002
From: ma287 at columbia.edu (Maneesha Aggarwal)
Date: Mon, 30 Sep 2002 12:58:44 -0400
Subject: [Javascript] Help : writting to message box in iframe
Message-ID: <3D9882C4.9040102@columbia.edu>
Hello,
I have a form with the following set in the page
On selecting an appropriate parameter, I need to append the value in
the above form field with the 'code' using Javascript. However I am
having trouble referring it. The code that I am currently looking at is
document.all.styled_text_message.value += '\n' + code + '\n';
Any suggestions?
Thanks
Maneesha
From hlove at u.washington.edu Mon Sep 30 14:02:39 2002
From: hlove at u.washington.edu (Harry Love)
Date: Mon, 30 Sep 2002 12:02:39 -0700
Subject: [Javascript] Help : writting to message box in iframe
In-Reply-To: <3D9882C4.9040102@columbia.edu>
Message-ID: <000301c268b3$f2af13b0$467a5f80@hsl.washington.edu>
On selecting an appropriate parameter, I need to append the value in
the above form field with the 'code' using Javascript. However I am
having trouble referring it. The code that I am currently looking at is
document.all.styled_text_message.value += '\n' + code + '\n';
Are you looking for something like this?
document.getElementById("styled_text_message").value += ...
Note: the success of this solution depends on the browsers you're trying
to support. Your original message did not indicate a preference, so I'm
using a DOM reference to the object.
HTH,
Harry
From ma287 at columbia.edu Mon Sep 30 14:18:33 2002
From: ma287 at columbia.edu (Maneesha Aggarwal)
Date: Mon, 30 Sep 2002 15:18:33 -0400
Subject: [Javascript] Help : writting to message box in iframe
References: <000301c268b3$f2af13b0$467a5f80@hsl.washington.edu>
Message-ID: <3D98A389.2030209@columbia.edu>
Hi,
I am using IE 5.5 and 6.0. I tried your version of code and still no
luck. What could be going wrong?
Thanks
Maneesha
Harry Love wrote:
>
> style="background-color:white;position:relative;top:-2px;">
>
>
>
>
>On selecting an appropriate parameter, I need to append the value in
>the above form field with the 'code' using Javascript. However I am
>having trouble referring it. The code that I am currently looking at is
>
>document.all.styled_text_message.value += '\n' + code + '\n';
>
>
>
>Are you looking for something like this?
>document.getElementById("styled_text_message").value += ...
>
>Note: the success of this solution depends on the browsers you're trying
>to support. Your original message did not indicate a preference, so I'm
>using a DOM reference to the object.
>
>HTH,
>Harry
>
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript
>
From hlove at u.washington.edu Mon Sep 30 14:25:20 2002
From: hlove at u.washington.edu (Harry Love)
Date: Mon, 30 Sep 2002 12:25:20 -0700
Subject: [Javascript] Help : writting to message box in iframe
In-Reply-To: <3D98A389.2030209@columbia.edu>
Message-ID: <000201c268b7$1d9f2cb0$467a5f80@hsl.washington.edu>
Maneesha,
What are the details of your problem? What are you trying to reference
within the iframe? Do you have a URL that we could look at? This
usually helps solve the problem in the least amount of time.
Harry
-----Original Message-----
From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]
On Behalf Of Maneesha Aggarwal
Sent: Monday, September 30, 2002 12:19 PM
To: javascript at LaTech.edu
Subject: Re: [Javascript] Help : writting to message box in iframe
Hi,
I am using IE 5.5 and 6.0. I tried your version of code and still no
luck. What could be going wrong?
Thanks
Maneesha
From ma287 at columbia.edu Mon Sep 30 14:32:32 2002
From: ma287 at columbia.edu (Maneesha Aggarwal)
Date: Mon, 30 Sep 2002 15:32:32 -0400
Subject: [Javascript] Help : writting to message box in iframe
References: <000201c268b7$1d9f2cb0$467a5f80@hsl.washington.edu>
Message-ID: <3D98A6D0.8030600@columbia.edu>
Will it be okay if I email you on your washington.edu email add. I
can then email you a temp login and password for my secure site.
Thanks
Maneesha
Harry Love wrote:
>Maneesha,
>What are the details of your problem? What are you trying to reference
>within the iframe? Do you have a URL that we could look at? This
>usually helps solve the problem in the least amount of time.
>
>Harry
>
>-----Original Message-----
>From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]
>On Behalf Of Maneesha Aggarwal
>Sent: Monday, September 30, 2002 12:19 PM
>To: javascript at LaTech.edu
>Subject: Re: [Javascript] Help : writting to message box in iframe
>
>
>Hi,
>
>I am using IE 5.5 and 6.0. I tried your version of code and still no
>luck. What could be going wrong?
>
>
>Thanks
>Maneesha
>
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript
>
From tom at wheelercreek.com Mon Sep 30 19:44:34 2002
From: tom at wheelercreek.com (Tom Wheeler)
Date: Mon, 30 Sep 2002 17:44:34 -0700
Subject: [Javascript] check for flash?
Message-ID: <200210010032.g910WZS38987@eris.domainnameservers.net>
Anyone know of a javascript way to check to see if flash is installed? I
would like to show a graphic in its place if its not.
tommy