a naive question? 
Author Message
 a naive question?

after I am done changing the innerhtml of some <div id=..>  </div>,
 how do I get IE to show the change? it is reload, or is it?


Sun, 02 Oct 2005 10:38:17 GMT  
 a naive question?


Quote:
> after I am done changing the innerhtml of some <div id=..>  </div>,
>  how do I get IE to show the change? it is reload, or is it?

After setting innerHTML = "new div content", the contents of the div should
be updated automatically.


Sun, 02 Oct 2005 15:23:45 GMT  
 a naive question?
gg wrote on 16 apr 2003 in microsoft.public.scripting.jscript:

Quote:
> after I am done changing the innerhtml of some <div id=..>  </div>,
>  how do I get IE to show the change? it is reload, or is it?

It will show realtime.
innerHTML in j(ava)script is case sensitive!!
Try this:

<div id="x">Hello</div>
<script>
  setTimeout('x.innerHTML="World"',1000)
</script>

tested on IE6

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)



Sun, 02 Oct 2005 16:21:18 GMT  
 a naive question?
thank you. I had innerHtml.  I'd better remember this, so I don't get
"bitten" again.


Quote:
> gg wrote on 16 apr 2003 in microsoft.public.scripting.jscript:
> > after I am done changing the innerhtml of some <div id=..>  </div>,
> >  how do I get IE to show the change? it is reload, or is it?

> It will show realtime.
> innerHTML in j(ava)script is case sensitive!!
> Try this:

> <div id="x">Hello</div>
> <script>
>   setTimeout('x.innerHTML="World"',1000)
> </script>

> tested on IE6

> --
> Evertjan.
> The Netherlands.
> (Please change the x'es to dots in my emailaddress)



Mon, 03 Oct 2005 00:30:22 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. naive questions: GhostScript, StyleScript, fonts?

2. a naive question

3. a naive question on clipboard

4. naive question about PostScript

5. very naive question

6. possibly another naive question

7. naive question?: how can one open another intenet explorer application from a script within hta?

8. fonts: naive query

9. Frame movement question and tree view question

10. Newbie question: Session_OnEnd question

11. HTA Question and GetObject Question

12. A strategy question, and then a tactics question, for WSH based Windows Admin

 

 
Powered by phpBB® Forum Software