<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Wed, 10 Jun 2026 18:38:05 +0000</lastBuildDate>
    <item>
      <title>(JavaScript) jQuery Delay Plugin - jamesming</title>
      <link>https://snipplr.com/view/9912/jquery-delay-plugin</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 19 Nov 2008 05:36:53 UTC</pubDate>
      <guid>https://snipplr.com/view/9912/jquery-delay-plugin</guid>
    </item>
    <item>
      <title>(JavaScript) jquery does google maps! - jamesming</title>
      <link>https://snipplr.com/view/9721/jquery-does-google-maps</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 13 Nov 2008 17:23:44 UTC</pubDate>
      <guid>https://snipplr.com/view/9721/jquery-does-google-maps</guid>
    </item>
    <item>
      <title>(JavaScript) Smooth Scroll without any heavy javascript framework - jamesming</title>
      <link>https://snipplr.com/view/9080/smooth-scroll-without-any-heavy-javascript-framework</link>
      <description>&lt;p&gt;/*--------------------------------------------------------------------------&#13;
 *  Smooth Scroller Script, version 1.0.1&#13;
 *  (c) 2007 Dezinerfolio Inc. &lt;midart@gmail.com&gt;&#13;
 *&#13;
 *  For details, please check the website : http://dezinerfolio.com/&#13;
 *&#13;
/*--------------------------------------------------------------------------*/&lt;/p&gt;</description>
      <pubDate>Fri, 17 Oct 2008 10:56:58 UTC</pubDate>
      <guid>https://snipplr.com/view/9080/smooth-scroll-without-any-heavy-javascript-framework</guid>
    </item>
    <item>
      <title>(JavaScript) Count lines in textarea - jamesming</title>
      <link>https://snipplr.com/view/9029/count-lines-in-textarea</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 15 Oct 2008 10:23:00 UTC</pubDate>
      <guid>https://snipplr.com/view/9029/count-lines-in-textarea</guid>
    </item>
    <item>
      <title>(JavaScript) Resizing an iframe according to its contents - jamesming</title>
      <link>https://snipplr.com/view/9000/resizing-an-iframe-according-to-its-contents</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 14 Oct 2008 13:16:09 UTC</pubDate>
      <guid>https://snipplr.com/view/9000/resizing-an-iframe-according-to-its-contents</guid>
    </item>
    <item>
      <title>(JavaScript) Auto Resize div according to windows size. - jamesming</title>
      <link>https://snipplr.com/view/8983/auto-resize-div-according-to-windows-size</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 13 Oct 2008 17:48:35 UTC</pubDate>
      <guid>https://snipplr.com/view/8983/auto-resize-div-according-to-windows-size</guid>
    </item>
    <item>
      <title>(JavaScript) Speech bubble, rounder corners, no image needed. - jamesming</title>
      <link>https://snipplr.com/view/8936/speech-bubble-rounder-corners-no-image-needed</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 10 Oct 2008 12:00:06 UTC</pubDate>
      <guid>https://snipplr.com/view/8936/speech-bubble-rounder-corners-no-image-needed</guid>
    </item>
    <item>
      <title>(JavaScript) How to replace selected textarea value using javascript - jamesming</title>
      <link>https://snipplr.com/view/8406/how-to-replace-selected-textarea-value-using-javascript</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 15 Sep 2008 14:04:58 UTC</pubDate>
      <guid>https://snipplr.com/view/8406/how-to-replace-selected-textarea-value-using-javascript</guid>
    </item>
    <item>
      <title>(JavaScript) open new configurable window using javascript - jamesming</title>
      <link>https://snipplr.com/view/8220/open-new-configurable-window-using-javascript</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Sat, 06 Sep 2008 09:30:04 UTC</pubDate>
      <guid>https://snipplr.com/view/8220/open-new-configurable-window-using-javascript</guid>
    </item>
    <item>
      <title>(JavaScript) iframe resize to match frame source using javascript and div innerhtml - jamesming</title>
      <link>https://snipplr.com/view/8084/iframe-resize-to-match-frame-source-using-javascript-and-div-innerhtml</link>
      <description>&lt;p&gt;Post a stripped down version of the page if you can. One that shows exactly how the iframe fits into the structure of the page.&#13;
&#13;
The solution I settled on works like this:&#13;
The parent page has a javascript function like this:&#13;
&#13;
function insertIt() {&#13;
var _y = document.getElementById('framediv');&#13;
var _x = window.frames[0].document.body.innerHTML;&#13;
_y.innerHTML = _x&#13;
}&#13;
Then, the parent page has a div with the id "framediv" which is placed where the contents of the iframe should appear on the page.&#13;
The iframe element is then placed inside the div, like this:&#13;
&#13;
&lt;div&gt;&#13;
&lt;iframe&gt;&#13;
&lt;/div&gt;&#13;
&#13;
As you can see, there's onload="insertIt()" inside the iframe element. So when the iframe loads, the parent page immediately takes the contents of the body of the document contained in the iframe and actually replaces the iframe element with that content.&#13;
&#13;
It's a little tricky to comprehend, but it works great.&#13;
&#13;
You said you're a newbie, does this make any sense to you?&#13;
&#13;
also, is the iframe document located on the same server and the same domain as the parent page?&#13;
That will play a part.&lt;/p&gt;</description>
      <pubDate>Fri, 29 Aug 2008 10:07:57 UTC</pubDate>
      <guid>https://snipplr.com/view/8084/iframe-resize-to-match-frame-source-using-javascript-and-div-innerhtml</guid>
    </item>
    <item>
      <title>(JavaScript) get date range from week number in year - jamesming</title>
      <link>https://snipplr.com/view/7540/get-date-range-from-week-number-in-year</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Sun, 27 Jul 2008 20:07:39 UTC</pubDate>
      <guid>https://snipplr.com/view/7540/get-date-range-from-week-number-in-year</guid>
    </item>
    <item>
      <title>(JavaScript) Get Selected Value - jamesming</title>
      <link>https://snipplr.com/view/7461/get-selected-value</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 23 Jul 2008 11:00:25 UTC</pubDate>
      <guid>https://snipplr.com/view/7461/get-selected-value</guid>
    </item>
    <item>
      <title>(JavaScript) Multidimensional Array - jamesming</title>
      <link>https://snipplr.com/view/7418/multidimensional-array</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 21 Jul 2008 10:35:12 UTC</pubDate>
      <guid>https://snipplr.com/view/7418/multidimensional-array</guid>
    </item>
  </channel>
</rss>
