Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] dynamic variables names
- From: christ at saeweb.com (Chris Tifer)
- Subject: [Javascript] dynamic variables names
- Date: Tue Jun 24 15:14:00 2003
Standards is the short answer.
I assume when you were switching an image's source before, you
were using an ID of the image and changing that, right?
I'm not sure of the exact browser where that first started working,
but the document.images collection has been around for a long time.
Now if you prefer the ID route, I would at least set a reference to it
by using:
var objImg = document.getElementById("IDOfImage")
Chris Tifer
http://emailajoke.com
----- Original Message -----
From: "Marcelo Simon" <grillo@xxxxxxxxxxxxxx>
To: "[JavaScript List]" <javascript@xxxxxxxxxx>
Sent: Tuesday, June 24, 2003 4:04 PM
Subject: Re: [Javascript] dynamic variables names
> Just one more question, to Chris Tifer, can you elaborate why should I
> preffer the image collection and should avoid eval() ? So I can understand
?
> TIA
>
>
> Marcelo Simon
- Follow-Ups:
- [Javascript] dynamic variables names
- From: Marcelo Simon
- [Javascript] dynamic variables names
- References:
- [Javascript] dynamic variables names
- From: Peter Brunone
- [Javascript] dynamic variables names
- From: Marcelo Simon
- [Javascript] dynamic variables names
- From: Chris Tifer
- [Javascript] dynamic variables names
- From: Marcelo Simon
- [Javascript] dynamic variables names
- Prev by Date: [Javascript] dynamic variables names
- Next by Date: [Javascript] dynamic variables names
- Previous by thread: [Javascript] dynamic variables names
- Next by thread: [Javascript] dynamic variables names
- Index(es):