<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: Ahoyhere's Code Snippets</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Wed, 23 Jul 2008 03:18:18 GMT</pubDate>
    <description>DZone Snippets: Ahoyhere's Code Snippets</description>
    <item>
      <title>Debugging SimpleXML Objects</title>
      <link>http://snippets.dzone.com/posts/show/493</link>
      <description>AGRH@!! SimpleXML bites the big one -- you can't even var_dump it to examine the contents and the controls are terrible. Luckily, you can convert it for debugging:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;$sxml = simplexml_load_string($data);&lt;br /&gt;// .. much hate between then and now... //&lt;br /&gt;debugsxml($sxml);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;function debugsxml($sxml) {&lt;br /&gt;    $dom = dom_import_simplexml($sxml);&lt;br /&gt;    printArray($dom);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function printArray($array){&lt;br /&gt;    echo '&lt;pre&gt;';&lt;br /&gt;    print_r($array);&lt;br /&gt;    echo '&lt;/pre&gt;';&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;</description>
      <pubDate>Sat, 23 Jul 2005 04:59:27 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/493</guid>
      <author>ahoyhere (Amy Hoy)</author>
    </item>
    <item>
      <title>Fix table width weirdness in IE6</title>
      <link>http://snippets.dzone.com/posts/show/215</link>
      <description>If you have a table with rowspans and colspans, it's especially likely that IE6 will begin to ignore your width settings (even if they all add up to the right number) and create a monster table that spreads off into the distance. If your tables work perfectly in FF/Safari/etc, and in IE6 your content is positioned properly but the invisible elements of the table (visible only with borders on) extends to the side so that you get a horizontal scroll bar no matter what you do, you might want to try this drastic CSS tweak:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;html {&lt;br /&gt;    overflow-y: hidden;&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;If that doesn't work, try it in body:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;body {&lt;br /&gt;    overflow-y: hidden;&lt;br /&gt;}&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;disclaimer&gt;Note that this is somewhat hackish, as a last resort if you *know* your tables are *fine* and IE6 is screwing up, and that overflow-x/y are IE6-only and not real CSS. &lt;/disclaimer&gt;</description>
      <pubDate>Fri, 22 Apr 2005 04:48:45 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/215</guid>
      <author>ahoyhere (Amy Hoy)</author>
    </item>
    <item>
      <title>set tinymce to use relative links</title>
      <link>http://snippets.dzone.com/posts/show/210</link>
      <description>If installed under Mambo, edit:&lt;br /&gt;&lt;code&gt;mambots/editors/tinymce_exp.php&lt;/code&gt;&lt;br /&gt;Lines 157-158:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;  relative_urls : true,&lt;br /&gt;  remove_script_host : true,&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Fri, 22 Apr 2005 03:40:35 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/210</guid>
      <author>ahoyhere (Amy Hoy)</author>
    </item>
    <item>
      <title>fix tinymce link editor default of target:_new</title>
      <link>http://snippets.dzone.com/posts/show/209</link>
      <description>When installed in Mambo, edit &lt;code&gt;mambos/editors/tinymce_exp/jscripts/tiny_mce/plugins/advlink/link.php&lt;/code&gt; lines 253-258:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;select name="target" id="target"&gt;&lt;br /&gt;          &lt;option value="_self" selected&gt;_self&amp;nbsp;(&lt;?php echo _insert_link_target_same ?&gt;)&lt;/option&gt;&lt;br /&gt;          &lt;option value="_blank"&gt;_blank&amp;nbsp;(&lt;?php echo _insert_link_target_blank ?&gt;)&lt;/option&gt;&lt;br /&gt;          &lt;!--&lt;option value="_parent"&gt;_parent&amp;nbsp;(&lt;?php echo _insert_link_target_parent ?&gt;)&lt;/option&gt;&lt;br /&gt;          &lt;option value="_top"&gt;_top&amp;nbsp;(&lt;?php echo _insert_link_target_top ?&gt;)&lt;/option&gt;--&gt;&lt;br /&gt;&lt;/select&gt;&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Fri, 22 Apr 2005 03:04:43 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/209</guid>
      <author>ahoyhere (Amy Hoy)</author>
    </item>
  </channel>
</rss>
