Thank you!
This has definitely shed some light on this for
me. It turns out that the DynAPI does actually write the <DIV> tag
contents to the browser, which is what I've seen done before. Just looking
at specificCreate, this isn't entirely obvious...I had thought the DynAPI was
using Javascript to manipulate/add to the DOM directly, and not through adding
the <DIV> tags through some sort of document.write or
innerHTML.
Here's my trace through on how the DynAPI creates
layers:
1) It calls the line
parentElement.insertAdjacentHTML("beforeEnd",this.getOuterHTML()); or
some other such variant for other browsers.
2) This will build a string which contains the
<DIV> or <LAYER> (ns4) tags
3) This string is appended to the parent.
This is the equivalent of doing a document.write("<DIV
props>...</DIV>") in the parent element.
This is great! Thanks!
--JC
|
- [Dynapi-Help] Re: Question about "hand" cursor Robelix
- Re: [Dynapi-Help] How the Dynapi writes layers/divs to... Doug Melvin
- Re: [Dynapi-Help] How the Dynapi writes layers/div... Josh Chu
- Re: [Dynapi-Help] How the Dynapi writes layers... Doug Melvin
- RE: [Dynapi-Help] How the Dynapi writes la... Josh Chu
- RE: [Dynapi-Help] How the Dynapi writ... martin ström
- Re: [Dynapi-Help] How the Dynapi writes layers... Colin Thompson