how i establish dynamically-created dom component total dom?
, wholly body frameset elements yield an "onload" eventuality insert to, nonetheless i know dynamically-created dom component total dom javascript.
the super-naive heuristics i am now using, work, follows:
- traverse parentnode ability component behind until i ultimate foregoer (i.e. parentnode.parentnode.parentnode.etc until parentnode null)
- if ultimate foregoer defined, non-null body property
- assume component doubt biased dom
- else
- repeat stairs again 100 milliseconds
what i am after presumably acknowledgment i am doing sufficient (again, operative both ie7 ff3) improved fortitude that, whatever reason, i have totally sharp to; maybe properties i should checking, etc.
edit: i wish browser-agnostic proceed doing this, i don't live one-browser world, unfortunately; said, browser-specific information appreciated, nonetheless greatfully note browser know does work in. thanks!
Comments
Post a Comment