         resetFrame    : no
         stopFrame     : no
         renderFrame   : yes
+
         html          : html
         htmlType      : "html"
+        htmlClass     : codeshare.classesHTML
+        htmlExtras    : codeshare.extrasHTML
+
         css           : css
         cssType       : "css"
         cssPrefix     : yes unless codeshare.prefixCSS is not "on"
+        cssExternals  : codeshare.externalCSS
+
         js            : js
         jsType        : "javascript"
-
-      @$(".result-frame")[0].contentWindow.postMessage(JSON.stringify(resultObject),"*")
+        jsLibs        : codeshare.libsJS
+        jsExternals   : codeshare.externalJS
+        jsModernizr   : yes unless codeshare.modernizeJS is not "on"
+
+      @$(".result-frame")[0].contentWindow.postMessage(JSON.stringify(resultObject),@iframeURL)
 
   resetResultFrame:=>
-    @$(".result-frame")[0].contentWindow.postMessage(JSON.stringify({resetFrame:yes}),"*")
+    @$(".result-frame")[0].contentWindow.postMessage(JSON.stringify({resetFrame:yes}),@iframeURL)
 
   stopResultFrame:=>
-     @$(".result-frame")[0].contentWindow.postMessage(JSON.stringify({stopFrame:yes}),"*")
+     @$(".result-frame")[0].contentWindow.postMessage(JSON.stringify({stopFrame:yes}),@iframeURL)
 
   appendResultFrame:(url)=>
 

    super options, data
    data = @getData()

    @codeViewContainer = new KDCustomHTMLView
      cssClass : "result-frame-container"


    @on "CodeShareSourceHasChanges",(data)=>

      codeshare = data

      html= Encoder.htmlDecode(codeshare.attachments[0].content)
      css = Encoder.htmlDecode(codeshare.attachments[1].content)
