<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1042640" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1042640</link>
    <description></description>
    <language>en</language>
          <item>
    <title>Ben,
It&#039;s pretty difficult</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/using-scriptaculous-draggable-find-id-getelementsbyclassname#comment-1236690</link>
    <description> &lt;p&gt;Ben,&lt;/p&gt;
&lt;p&gt;It&#039;s pretty difficult to troubleshoot without seeing it all together.&lt;/p&gt;
&lt;p&gt;If you can&#039;t provide a URL, you can attach an html file&lt;br /&gt;
(if it&#039;s not an html page, eg PHP, you can attach the generated source as html)&lt;/p&gt;
 </description>
     <pubDate>Sat, 03 Jan 2009 11:44:21 +0000</pubDate>
 <dc:creator>decibel.places</dc:creator>
 <guid isPermaLink="false">comment 1236690 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Hi Decibel, 
I change the</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/using-scriptaculous-draggable-find-id-getelementsbyclassname#comment-1236683</link>
    <description> &lt;p&gt;Hi Decibel, &lt;/p&gt;
&lt;p&gt;I change the status of the display when i rollover a link attached to each newdiv element.&lt;/p&gt;
&lt;p&gt;This works - if i loop through all the newdivs which i have given a className and add the onmouseover event:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;var drag = document.getElementsByClassName(&amp;#039;elm&amp;#039;);&lt;br /&gt;	for(var j=0;j&amp;lt;drag.length;j++){&lt;br /&gt;			drag[j].onmouseover = function(){&lt;br /&gt;				&lt;br /&gt;									new Draggable(this.id, { &lt;br /&gt;											&amp;nbsp; 		scroll: window ,&lt;br /&gt;													ghosting: false&lt;br /&gt;											&amp;nbsp; });&lt;br /&gt;								}&lt;br /&gt;			drag[j].style.cursor = &amp;#039;move&amp;#039;;&lt;br /&gt;	}&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;I added this to the end of the function that loads up first on onload.&lt;/p&gt;
&lt;p&gt;One additional problem i encountered is that when i move the element the space where it had been sitting still exists and will not close up.&lt;/p&gt;
 </description>
     <pubDate>Sat, 03 Jan 2009 01:34:58 +0000</pubDate>
 <dc:creator>benf</dc:creator>
 <guid isPermaLink="false">comment 1236683 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Hi Ben,
Try declaring the</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/using-scriptaculous-draggable-find-id-getelementsbyclassname#comment-1236678</link>
    <description> &lt;p&gt;Hi Ben,&lt;/p&gt;
&lt;p&gt;Try declaring the variable randint globally (not inside the function) - and newdiv as well...&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;var randint;&lt;br /&gt;var newdiv;&lt;br /&gt;&lt;br /&gt;function div(){&lt;br /&gt;randint = Math.floor(Math.random()*100);&lt;br /&gt;newdiv = document.createElement(&amp;quot;div&amp;quot;);&lt;br /&gt;newdiv.className = &amp;#039;elm&amp;#039;;&lt;br /&gt;newdiv.id = randint;&lt;br /&gt;newdiv.style.display = &amp;#039;none&amp;#039;;&lt;br /&gt;newdiv.style.padding = &amp;#039;5px&amp;#039;;&lt;br /&gt;newdiv.innerHTML = content();&lt;br /&gt;&lt;br /&gt;return newdiv;&lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;a link to your page or attached file would help -&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;[EDIT]&lt;/strong&gt;&lt;br /&gt;
I just noticed you are not displaying the newdiv &lt;code&gt;newdiv.style.display = &amp;#039;none&amp;#039;;&lt;/code&gt; - so unless you are changing this property elsewhere, the newdiv will not be displayed...&lt;/p&gt;
 </description>
     <pubDate>Fri, 02 Jan 2009 23:47:31 +0000</pubDate>
 <dc:creator>decibel.places</dc:creator>
 <guid isPermaLink="false">comment 1236678 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
