<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: ie6 code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Mon, 08 Sep 2008 04:05:25 GMT</pubDate>
    <description>DZone Snippets: ie6 code</description>
    <item>
      <title>internet explorer - operation aborted - mootools</title>
      <link>http://snippets.dzone.com/posts/show/5908</link>
      <description>http://clientside.cnet.com/code-snippets/manipulating-the-dom/ie-and-operation-aborted/&lt;br /&gt;&lt;br /&gt;move mootools loader into head section as you're probably trying to fire a function before the library is loaded, loads head first then body in ie6&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;    &lt;script language="javascript" type="text/javascript"src="http://www.google.com/jsapi"&gt;&lt;/script&gt;&lt;br /&gt;    &lt;script language="javascript" type="text/javascript"&gt;&lt;br /&gt;    google.load("mootools", "1.11");&lt;br /&gt;    &lt;/script&gt;&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Wed, 13 Aug 2008 09:39:11 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/5908</guid>
      <author>indiehead (John)</author>
    </item>
    <item>
      <title>JavaScript Fill Textarea from HTML Select not working with FireFox or Opera but does in IE6</title>
      <link>http://snippets.dzone.com/posts/show/4465</link>
      <description>//&lt;br /&gt;//  Fill textarea with keywords from HTML Select element&lt;br /&gt;//&lt;br /&gt;&lt;br /&gt;This code DOES work in I.E6 (on my machine (XP pro), but doesn't work in Firefox 2.0.0.4 or Opera 9.0.2&lt;br /&gt;&lt;br /&gt;The idea is to be able to either type in the text area directly or choose from a list of saved words in the select box. When a new choice is made from the select, it automatically gets inserted into the text area.&lt;br /&gt;&lt;br /&gt;With Firefox , when the page is first loaded, I can choose from the select control and it works until I type something in the text area, and then it stops working.&lt;br /&gt;&lt;br /&gt;With Opera 9.02, the select control doesn't work at all.&lt;br /&gt;&lt;br /&gt;IE6, works fine.&lt;br /&gt;&lt;br /&gt;Any hints tips, appreciated, as I'm a novice with javascript / DOM programming.&lt;br /&gt;&lt;br /&gt;I quite possibly am not using the most correct / efficient document.XXX calls here.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Mike&lt;br /&gt;&lt;br /&gt;You can test it at http://mstramba.com/fb5.html&lt;br /&gt;&lt;br /&gt;///////////////&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;html&gt;&lt;br /&gt;&lt;head&gt;&lt;br /&gt;  &lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /&gt;&lt;br /&gt;  &lt;style type="text/css"&gt;textarea {  height:200px; width:50%;}&lt;/style&gt;&lt;br /&gt;&lt;br /&gt;&lt;script type="text/javascript"&gt;&lt;br /&gt;&lt;br /&gt;function htmlData(selectValue,targetTextArea)&lt;br /&gt;{&lt;br /&gt;//   alert("select box changed to : '" + selectValue + "'");&lt;br /&gt;&lt;br /&gt;   var txtNode=document.createTextNode(selectValue);&lt;br /&gt;   var textArea=document.getElementById(targetTextArea);&lt;br /&gt;   textArea.appendChild(txtNode);&lt;br /&gt;}&lt;br /&gt;&lt;/script&gt;&lt;br /&gt;&lt;/head&gt;&lt;br /&gt;&lt;br /&gt;&lt;body&gt;&lt;br /&gt; &lt;form method="post"&gt;&lt;br /&gt; &lt;select name="country" id="selbox" onchange="htmlData(this.value,'content')" /&gt;&lt;br /&gt;   &lt;option value="#"&gt;-Select-&lt;/option&gt;&lt;br /&gt;   &lt;option value="SuperCaliFragilisticExpiAliDocius"&gt;SuperCaliFragilisticExpiAliDocius&lt;/option&gt;&lt;br /&gt;   &lt;option value="Discombombulatively"&gt;Discombombulatively&lt;/option&gt;&lt;br /&gt;   &lt;option value="I don't understand how this can be happening"&gt;I don't understand how this can be happening&lt;/option&gt;&lt;br /&gt; &lt;/select&gt;&lt;br /&gt;&lt;br /&gt; &lt;textarea name="content" id="content"&gt;Type some text or choose words from the select control&lt;/textarea&gt;&lt;br /&gt;&lt;br /&gt; &lt;input type="submit" /&gt;&lt;br /&gt;&lt;/form&gt;&lt;br /&gt;&lt;/body&gt;&lt;br /&gt;&lt;/html&gt;&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Fri, 24 Aug 2007 23:38:44 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4465</guid>
      <author>mstram (Mike Stramba)</author>
    </item>
    <item>
      <title>Dom created - cant attach event</title>
      <link>http://snippets.dzone.com/posts/show/3726</link>
      <description>// description of your code here&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;br /&gt;function yearAdd(){&lt;br /&gt;    $.log("add");&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;dayDel = function dayDel(t){&lt;br /&gt;    $.log(this);&lt;br /&gt;    $.log(t.target);&lt;br /&gt;    $.log('del');&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;$(document).ready(function(){&lt;br /&gt;    var b = $("&lt;b class='del'&gt;x&lt;/b&gt;").click(dayDel);&lt;br /&gt;    $("div.day").append(b);&lt;br /&gt;//   b = $("&lt;b class='add'&gt;+&lt;/b&gt;").click(yearAdd)&lt;br /&gt;//    $("div.year center").append(b);&lt;br /&gt;});&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Sun, 25 Mar 2007 11:41:12 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/3726</guid>
      <author>iogan18tm (Iogan)</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>
  </channel>
</rss>
