title: Transcrypt and TranscryptFrame
body: <p>Right now I am working on a wrapper for common functions for transcrypt called TranscryptFrame. I get a compiler error and I like to know if we can solve this in any way, maybe it is just a little change in the code to get things working.</p>
  
  <p>You need to have the latest TranscryptFrame.py file in the working directory for compiling. You find it here: <a href="https://github.com/bunkahle/Transcrypt-Examples/blob/master/dom/TranscryptFrame.py" rel="nofollow noreferrer">https://github.com/bunkahle/Transcrypt-Examples/blob/master/dom/TranscryptFrame.py</a> - please feel free to suggest changes or improvements on this file or bug reports. It might be available sometime as a library in the future.</p>
  
  <p>So here is the code which doesn't even compile, I get the error can't assign to function call.</p>
  
  <pre><code># change_text2a_tf.py
  import TranscryptFrame as tf
  
  def insert():
      # working:
      # myElement = tf.S("#intro")
      # tf.S("#demo").innerHTML = "The text from the intro paragraph is " + myElement.innerHTML
  
      # working:
      # myElement_htm = tf.S("#intro", "htm")
      # tf.S("#demo").innerHTML = "The text from the intro paragraph is " + myElement_htm
  
      # working:
      # tf.S("#demo").innerHTML = "The text from the intro paragraph is " + tf.S("#intro", "htm")
  
      # not working: can't assign to function call on compiling
      tf.S("#demo", "htm") = "The text from the intro paragraph is " + tf.S("#intro", "htm")
  </code></pre>
  
  <p>and this is the html for running it:</p>
  
  <pre><code>&lt;html lang="en"&gt;
    &lt;head&gt;
      &lt;meta charset="utf-8" /&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1.0" /&gt;
      &lt;script src="__javascript__/change_text2a_tf.js"&gt;&lt;/script&gt;
      &lt;title&gt;Change Text with TranscryptFrame&lt;/title&gt;
    &lt;/head&gt;
    &lt;body onload=change_text2a_tf.insert()&gt;
      &lt;p id="intro"&gt;&lt;b&gt;Hello World!&lt;/b&gt;&lt;/p&gt;
      &lt;p&gt;This example demonstrates the &lt;b&gt;getElementById&lt;/b&gt; method!&lt;/p&gt;
      &lt;p id="demo"&gt;&lt;/p&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>