List Info

Thread: Changing InnerHTML fails




Changing InnerHTML fails
country flaguser name
United States
2007-10-06 22:57:23
Hi,

I put up a demo ultimately intended to dynamically display
counts of
ULs in the document,  LIs in each UL, etc.

I want to make sure I could display results in an area with
ID =
"Counts".    At first, I just tried to display the
text "count" in the
target area.  That failed.  I put up the code at
http://home.comcast.net/~CaptQueeg/JavaScriptDemo.html.

Any ideas would be gratefully received.

Regards,
Richard


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "JavaScript Forum" group.
To post to this group, send email to
JavaScript-Informationgooglegroups.com
To unsubscribe from this group, send email to
JavaScript-Information-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/JavaScript-Information
?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Changing InnerHTML fails
country flaguser name
United States
2007-10-07 13:35:19


On Oct 6, 11:57 pm, Richard
<RichardDummyMailbox58...USComputerGurus.com>
wrote:
> Hi,
>
> I put up a demo ultimately intended to dynamically
display counts of
> ULs in the document,  LIs in each UL, etc.
>
> I want to make sure I could display results in an area
with ID =
> "Counts".    At first, I just tried to
display the text "count" in the
> target area.  That failed.  I put up the code athttp://home.comcast.net/~CaptQueeg/JavaScriptDemo.html.

It's javascript's case-sensitivity that's causing you
problems.
Change 'getElementByID' to 'getElementById' and 'InnerHTML'
to
'innerHTML' and it should work.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "JavaScript Forum" group.
To post to this group, send email to
JavaScript-Informationgooglegroups.com
To unsubscribe from this group, send email to
JavaScript-Information-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/JavaScript-Information
?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Changing InnerHTML fails
country flaguser name
United States
2007-10-07 20:52:20
Hi Jambalaya,

> It's javascript's case-sensitivity that's causing you
problems.
Change 'getElementByID' to 'getElementById' and 'InnerHTML'
to
'innerHTML' and it should work.

Many thanks,
Richard

On Oct 7, 2:35 pm, Jambalaya <chris.ak...gmail.com> wrote:
> On Oct 6, 11:57 pm, Richard
>
> <RichardDummyMailbox58...USComputerGurus.com>
wrote:
> > Hi,
>
> > I put up a demo ultimately intended to dynamically
display counts of
> > ULs in the document,  LIs in each UL, etc.
>
> > I want to make sure I could display results in an
area with ID =
> > "Counts".    At first, I just tried to
display the text "count" in the
> > target area.  That failed.  I put up the code athttp://home.comcast.net/~CaptQueeg/JavaScriptDemo.html.
>
> It's javascript's case-sensitivity that's causing you
problems.
> Change 'getElementByID' to 'getElementById' and
'InnerHTML' to
> 'innerHTML' and it should work.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "JavaScript Forum" group.
To post to this group, send email to
JavaScript-Informationgooglegroups.com
To unsubscribe from this group, send email to
JavaScript-Information-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/JavaScript-Information
?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )