<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: content code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Fri, 25 Jul 2008 15:44:57 GMT</pubDate>
    <description>DZone Snippets: content code</description>
    <item>
      <title>setting tinymce editor content via javascript</title>
      <link>http://snippets.dzone.com/posts/show/5768</link>
      <description>setting tinymce editor content via javascript&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;script type="text/javascript"&gt;&lt;br /&gt;    tinyMCE.get(mceId).execCommand('mceSetContent',false, '&lt;p&gt;some text&lt;table&gt;&lt;/table&gt;&lt;/p&gt;' );&lt;br /&gt;&lt;/script&gt;     &lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Tue, 15 Jul 2008 06:07:44 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/5768</guid>
      <author>deostroll (Arun Jayapal)</author>
    </item>
    <item>
      <title>Open another app as content handler</title>
      <link>http://snippets.dzone.com/posts/show/131</link>
      <description>Current python for series 60 (version 1) doesn't support graphics drawing on screen. But it still allows you to open an image file or other content file using external content handler. Here is the short and shorter versions to demonstrate.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;# this version wait for external app to exit, then it continue.&lt;br /&gt;import e32&lt;br /&gt;lock = e32.Ao_lock()&lt;br /&gt;handler = appuifw.Content_handler(lock.signal)&lt;br /&gt;hander.open(filename)  # eg. an image file&lt;br /&gt;lock.wait()	# wait for lock.signal to unlock&lt;br /&gt;&lt;br /&gt;# this is a short, one-line version which doesn't wait&lt;br /&gt;appuifw.Content_handler().open(filename)&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Mon, 11 Apr 2005 04:44:37 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/131</guid>
      <author>korakot (Korakot Chaovavanich)</author>
    </item>
    <item>
      <title>Read remote content</title>
      <link>http://snippets.dzone.com/posts/show/119</link>
      <description>Reading remote data is easy in python.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;from urllib import *&lt;br /&gt;url = 'http://example.com/index.html'&lt;br /&gt;html = urlretrieve(url).read()&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Mon, 11 Apr 2005 03:21:06 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/119</guid>
      <author>korakot (Korakot Chaovavanich)</author>
    </item>
  </channel>
</rss>
