Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Weird HTML/JavaScript Problem

2 views
Skip to first unread message

Franklin Thatcher

unread,
Jul 13, 2007, 8:44:06 PM7/13/07
to
I'm having a weird problem accessing a named anchor. Any help would be
appreciated.

Here is the relevant code:
...
<tr>
<td width="125" align="left" valign="top"><a
name="ad_left_link"><img width="125"
name="ad_left_image" border="0"></a></td>
</tr>
...
</table>
<script language="JavaScript">
var objAd = GetAd("Category",125)

document.ad_left_image.src = objAd.src
document.ad_left_image.alt = objAd.alt
document.ad_left_link.href = objAd.href
</script>

</body>
</html>

The problem is that, while I can access the properties of
document.ad_left_image just fine, document.ad_left_link comes up undefined.

I built the following work-around:
for (var i=0; i<document.anchors.length; i++)
{
if (document.anchors[i].name == "ad_left_link")
{
document.anchors[i].href = objAd.href
break;
}
}

The work-around does the trick, but is a major kludge.

What am I missing here?


Thanks in advance for your help,

Bruce Thatcher
btha...@starlight-prod.com


Adrienne Boswell

unread,
Jul 13, 2007, 9:36:17 PM7/13/07
to
Gazing into my crystal ball I observed "Franklin Thatcher"
<franklin...@comcast.net> writing in
news:9Kqdnd0Na7DQgQXb...@comcast.com:

How about

<div><img src="someimage.png" id="ad_left_image" width="125" alt="Who
knows"></div>

Then you could use getelementbyid .


--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Franklin Thatcher

unread,
Jul 13, 2007, 10:31:34 PM7/13/07
to
Good suggestion. Thanks!

"Adrienne Boswell" <arb...@yahoo.com> wrote in message
news:Xns996CBD41ECF0...@69.28.186.121...

Franklin Thatcher

unread,
Jan 24, 2008, 3:09:44 PM1/24/08
to
them; and yet they have expressed
themselves much amazed at their own insensibility and sottishness at
such an extraordinary time.

Persons are sometimes brought to the borders of despair, and it looks as
black as midnight to them a little before the day dawns in their souls.
Some few instances there have been, of persons who have had such a sense
of God's wrath for sin, that they have been overborne; and made to cry
out under an astonishing sense of their guilt, wondering that God
suffers such guilty wretches to live upon earth, and that he doth not
immediately send them to hell. Sometimes their guilt doth so stare them
in the face, that they are in exceeding terror for fear that God will
instantly do it; but more commonly their distresses under legal
awakenings have not been to such a degree. In some, these terrors do not
seem to be so sharp, when near comfort, as before; their convictions
have not seemed to work so much that way, but to be led further down
into their own hearts, to a further sen


Adrienne Boswell

unread,
Jan 24, 2008, 3:16:05 PM1/24/08
to
be said to be the whole body of Jesus Christ. The union of two things
without change does not enable us to say that one becomes the other; the
soul thus being united to the body, the fire to the timber, without change.
But change is necessary to make the form of the one become the form of the
other; thus the union of the Word to man. Because my body without my soul
would not make the body of a man; therefore my soul united to any matter
whatsoever will make my body. It does not distinguish the necessary
condition from the sufficient condition; the union is necessary, but not
sufficient. The left arm is not the right.

Impenetrability is a property of matter.

Identity de numero in regard to the same time requires the identity of
matter.

Thus if God united my soul to a body in China, the same body, idem numero
would be in China.

The same river which runs there is idem numero as that which runs at the
same time in China.

513. Why God has established prayer.

1. To communicate to His creatures the dignity of causality.

2. To teach us from whom our virtue comes.

3. To make us deserve other virtues by work.

(But to keep His own pre-eminence, He grants prayer to whom He pleases.)

Objection: But we believe that we hold prayer of ourselves.

This is absurd; for since, though having faith, we cannot have virtues, how
should we have faith? Is there a greater distance between infidelity and
faith than between faith and virtue?

Merit. This word is ambiguous.

Meruit habere Redemptorem.78

Meruit tam sacra membra tangere.79

Digno tam sacra membra tang


0 new messages