Original Post
Whats the best way to go about creating html/javascript components? Ive thought to do this: where we create an iframe, and then let the component write out its contents to it. however, it would be cooler to do something like this: where the component will write out its own iframe and then its components. The problem here though is that the page would refresh and start some strange recursion. How are html/javascript components normally done?
<iframe id="ifcomponent1"></iframe>
<script language="javascript">
component1= new Component( "ifcomponent1", params );
</script>
<script language="javascript>
component1 = new Component( params );
</script>