FYI,
here is a slide show that i did on a site if you or anyone else needs it.
http://www.shieldssurfacec
or
http://www.shieldssurfacec
view source and grab the code.
Main Topics
Browse All TopicsHi,
What appears (to me) to be a simple javascript design is generating an error. The error is "document.getElementById is not a function."
Here's the offending code:
var roomCell = document.getElementByID('r
document.roomPicture.src=r
roomCell.innerHTML = "my new caption";
The first line is the one that creates the error. Can anyone tell me a) why and b) how to fix it?
I want the caption of the picture to change. It (the caption) is in a table whose row looks like:
<tr>
<td width='10%'><a href="javascript:chgSlide(
<td id='roomCaption' width='80%' align='center' ><font size="-7">Select
Back or Next to View Drawings</font></td>
<td width='10%' align='right'><a href="javascript:chgSlide(
</tr>
Thanks.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
FYI,
here is a slide show that i did on a site if you or anyone else needs it.
http://www.shieldssurfacec
or
http://www.shieldssurfacec
view source and grab the code.
The document.getElementById & document.getElementByID error is incredibly difficult to spot if you have not suffered it before, so do not feel bad. (you have now been initiated :-) ) It is up there with this one, easily spotted here but put it in frontPage and see what it looks like
<script>
TotalsSum1=TotalsSuml+3
</script>
Thx for the points, :-)
x=10O0 in frontpage is very very tough to spot as well . Does any one know what font frontpage uses for the html view?
(moral of the story:- do not use frontpage, apart from possibly some thing like this http://www.turkmenistanair
Business Accounts
Answer for Membership
by: GwynforWebPosted on 2004-07-17 at 06:05:40ID: 11574347
var roomCell = document.getElementById('r oomCaption '); oomCaption ');
not
var roomCell = document.getElementByID('r