I am working on an innerHtml script, but I am having problems in fine tuning and debugging. Can anyone share some debugging tips for innerHtml and DHTML.
I generally have a fairly good eye for detail. Therefore when debugging my standard HTML, I will often perform a view > source to see the HTML that is being served up by the HTTP server. When I do a view source immediately after some innerHTML has been written by a script, then I can not see the code that I feel should have been written. Am I dead wrong or am I missing something here?
The following javascript alert will throw a not defined error.
<script>
alert('html is: ' + document.getElementById(id).innerHTML);
</script>
I generally have a fairly good eye for detail. Therefore when debugging my standard HTML, I will often perform a view > source to see the HTML that is being served up by the HTTP server. When I do a view source immediately after some innerHTML has been written by a script, then I can not see the code that I feel should have been written. Am I dead wrong or am I missing something here?
The following javascript alert will throw a not defined error.
<script>
alert('html is: ' + document.getElementById(id).innerHTML);
</script>