<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>Recent Posts in 'Advice on clonePosition and creating a new DOM element.' | Pragmatic Forums</title>
    <link>http://forums.pragprog.com/forums/45/topics/155</link>
    <language>en-us</language>
    <ttl>60</ttl>
    <description></description>
    <item>
      <title>Advice on clonePosition and creating a new DOM element. posted by Paul Ramos @ Wed, 05 Dec 2007 23:19:25 -0000</title>
      <description>&lt;p&gt;Sorry for the multi post. I wasn&amp;#8217;t sure where I&amp;#8217;d get my answer from. &lt;br /&gt;But, yes Kangax did solve my problem. :)&lt;/p&gt;


	&lt;p&gt;I&amp;#8217;ll keep my support questions to the official ML , and book edition questions here. :) &lt;br /&gt;Thanks again for being an invaluable resource!&lt;/p&gt;


	&lt;p&gt;-Paul&lt;/p&gt;</description>
      <pubDate>Wed, 05 Dec 2007 23:19:25 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:45:155:1991</guid>
      <author>Paul Ramos</author>
      <link>http://forums.pragprog.com/forums/45/topics/155</link>
    </item>
    <item>
      <title>Advice on clonePosition and creating a new DOM element. posted by Christophe Porteneuve @ Sat, 01 Dec 2007 01:16:24 -0000</title>
      <description>&lt;p&gt;Hey Paul,&lt;/p&gt;


	&lt;p&gt;I&amp;#8217;m not so sure I&amp;#8217;d like this book&amp;#8217;s forums to turn into a forked support forum.  The &lt;a href="http://groups.google.com/group/rubyonrails-spinoffs"&gt;official ML&lt;/a&gt; is very good at that, and when I want to spend some time fielding support requests, I go there.  So do you, apparently, as you &lt;a href="http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/thread/38e8e2a4b4f2176c"&gt;posted that same question&lt;/a&gt; there just one hour before you posted here.  Our beloved Kangax &lt;a href="http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/thread/38e8e2a4b4f2176c/0d0e7814c850c864#0d0e7814c850c864"&gt;answered you&lt;/a&gt; 30 minutes later, suggesting something: follow up on that.&lt;/p&gt;


	&lt;p&gt;These forums are, from my humble point of view, more about discussing the book itself, its contents, its direction, philosophy, wishlist for future editions, etc. and asking about clarifications on examples or such.&lt;/p&gt;


	&lt;p&gt;As for your question, I would have answered pretty much like &lt;a href="http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/thread/38e8e2a4b4f2176c/0d0e7814c850c864#0d0e7814c850c864"&gt;Kangax did&lt;/a&gt;.  Try it out!&lt;/p&gt;


	&lt;p&gt;Best,&lt;/p&gt;


	&lt;p&gt;Christophe&lt;/p&gt;</description>
      <pubDate>Sat, 01 Dec 2007 01:16:24 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:45:155:1981</guid>
      <author>Christophe Porteneuve</author>
      <link>http://forums.pragprog.com/forums/45/topics/155</link>
    </item>
    <item>
      <title>Advice on clonePosition and creating a new DOM element. posted by Paul Ramos @ Fri, 30 Nov 2007 22:25:42 -0000</title>
      <description>&lt;p&gt;Hi Christophe,&lt;br /&gt;First, thanks you so much for writing the prototype/scriptaculous book. I purchased it 2 days ago, and have so far found it&lt;br /&gt;quite invaluable!&lt;/p&gt;


	&lt;p&gt;I do have a question though that I thought you might be able to help me with.  &lt;br /&gt;I&amp;#8217;m currently trying to solve the IE hover issue where if you have a&lt;br /&gt;hover div that appears over a&lt;br /&gt;form element, it pops through. The best solution I&amp;#8217;ve found is to shim&lt;br /&gt;in an &amp;lt;iframe&gt; under my hover&lt;br /&gt;for IE browsers and it will block the form element. (you are probably very familiar with this technique).&lt;br /&gt;I&amp;#8217;ve written this out in the &amp;#8216;non&amp;#8217; prototype way which isn&amp;#8217;t very elegant. It works but I&amp;#8217;d like to make it &lt;br /&gt;more robust and use prototype. So,.... 
 I&amp;#8217;m trying to use clonePosition to match the location and&lt;br /&gt;size of my hover (the object &amp;#8216;elmnt&amp;#8217; in the function below) for my iframe only it&amp;#8217;s not working.&lt;br /&gt;It will apply the size to my iframe, but not the location attributes.&lt;br /&gt;I am creating this iframe on the fly with the Element function. Is the&lt;br /&gt;issue that I am creating the iframe incorrectly?  Is it my usage of&lt;br /&gt;clonePosition?&lt;br /&gt;I&amp;#8217;m using the latest prototype and scriptaculous framework. Any help with what I&amp;#8217;m doing wrong would be&lt;br /&gt;great, or if there is something out there that you could point me&lt;br /&gt;to that has already solved this that&amp;#8217;d be great too.&lt;br /&gt;Much thanks in advance again to you Christophe for the book and to anyone who reads this and can help.&lt;/p&gt;


	&lt;p&gt;-Paul&lt;/p&gt;


&lt;code&gt;
function ieShimFix(elmnt){
                        var body = document.getElementsByTagName("body")[0];
                        var ieFixframe = new Element('iframe',{id:'ieFixframe',className:'ieFix',zIndex:'50'});
                        $(body).appendChild(ieFixframe);
                        Element.clonePosition(ieFixframe,elmnt);
                        $('ieFixframe').style.display = "block";

}
&lt;/code&gt;</description>
      <pubDate>Fri, 30 Nov 2007 22:25:42 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:45:155:1980</guid>
      <author>Paul Ramos</author>
      <link>http://forums.pragprog.com/forums/45/topics/155</link>
    </item>
  </channel>
</rss>
