JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 4th, 2002, 05:33 PM
Pupeno Pupeno is offline
Give peace a chance.
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Location: Buenos Aires, Argentina
Posts: 83 Pupeno User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 39 sec
Reputation Power: 13
Send a message via ICQ to Pupeno Send a message via AIM to Pupeno Send a message via MSN to Pupeno Send a message via Yahoo to Pupeno
Unhappy writing div contents from javascript (dynamic)

I have been trying to do this, and looking for how to do it, couldn't find it, can anybody tell me how, from javascript, I can change the contents of a specific (I know the id) div tag on my html file ?
Please, using DOM, and not propieatry systems for NS4 or IE4, I have already found that but I would like to make it standard.
Thank you

Reply With Quote
  #2  
Old June 4th, 2002, 10:59 PM
sunnychan's Avatar
sunnychan sunnychan is offline
a lazy guy
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Location: Hong Kong
Posts: 99 sunnychan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 12
<script>
ABC.innerHTML = '<font color="red">hello world</font>';
</script>

<div ID='ABC'>
</div>

Reply With Quote
  #3  
Old June 5th, 2002, 02:57 AM
Pupeno Pupeno is offline
Give peace a chance.
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Location: Buenos Aires, Argentina
Posts: 83 Pupeno User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 39 sec
Reputation Power: 13
Send a message via ICQ to Pupeno Send a message via AIM to Pupeno Send a message via MSN to Pupeno Send a message via Yahoo to Pupeno
Unhappy but....

but, innerHTML, AFAIK, is not DOM, is it ?

Reply With Quote
  #4  
Old June 5th, 2002, 10:03 AM
degsy degsy is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2001
Posts: 1,882 degsy User rank is Sergeant (500 - 2000 Reputation Level)degsy User rank is Sergeant (500 - 2000 Reputation Level)degsy User rank is Sergeant (500 - 2000 Reputation Level)degsy User rank is Sergeant (500 - 2000 Reputation Level)degsy User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 Days 21 h 19 m 30 sec
Reputation Power: 18

Reply With Quote
  #5  
Old June 5th, 2002, 11:23 AM
adios adios is offline
Senior Citizen
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2001
Location: leftcoast
Posts: 2,019 adios User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 15

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignJavaScript Development > writing div contents from javascript (dynamic)

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap