<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Scriptaculous Sortables with Ajax Callback</title>
	<atom:link href="http://www.gregphoto.net/index.php/2007/01/16/scriptaculous-sortables-with-ajax-callback/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gregphoto.net/index.php/2007/01/16/scriptaculous-sortables-with-ajax-callback/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 27 Dec 2011 06:48:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Riley</title>
		<link>http://www.gregphoto.net/index.php/2007/01/16/scriptaculous-sortables-with-ajax-callback/comment-page-1/#comment-300739</link>
		<dc:creator>Riley</dc:creator>
		<pubDate>Mon, 01 Mar 2010 16:14:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.gregphoto.net/index.php/2007/01/16/scriptaculous-sortables-with-ajax-callback/#comment-300739</guid>
		<description>Hey, I&#039;ve got this setup and working in an iFrame page. When I try to drag the elements to the edge of the visible page I&#039;d like it to scroll for me... if I have a very long lists (which I do). Anyone know how this is possible?</description>
		<content:encoded><![CDATA[<p>Hey, I&#8217;ve got this setup and working in an iFrame page. When I try to drag the elements to the edge of the visible page I&#8217;d like it to scroll for me&#8230; if I have a very long lists (which I do). Anyone know how this is possible?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Boy</title>
		<link>http://www.gregphoto.net/index.php/2007/01/16/scriptaculous-sortables-with-ajax-callback/comment-page-1/#comment-296830</link>
		<dc:creator>John Boy</dc:creator>
		<pubDate>Thu, 28 Jan 2010 03:56:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.gregphoto.net/index.php/2007/01/16/scriptaculous-sortables-with-ajax-callback/#comment-296830</guid>
		<description>Thanks for the script it works great. Is there a way to have it update the database onload. I am creating items for the list on a different page, when done the list appears with your new item in it. But the new item&#039;s order # is 0 until you drag something. The order is displayed so i would like it to drop in and be number 1 not 0.  I tried a couple things with no luck. 
Thanks for your Help.</description>
		<content:encoded><![CDATA[<p>Thanks for the script it works great. Is there a way to have it update the database onload. I am creating items for the list on a different page, when done the list appears with your new item in it. But the new item&#8217;s order # is 0 until you drag something. The order is displayed so i would like it to drop in and be number 1 not 0.  I tried a couple things with no luck.<br />
Thanks for your Help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://www.gregphoto.net/index.php/2007/01/16/scriptaculous-sortables-with-ajax-callback/comment-page-1/#comment-278215</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Tue, 15 Sep 2009 02:16:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.gregphoto.net/index.php/2007/01/16/scriptaculous-sortables-with-ajax-callback/#comment-278215</guid>
		<description>Sorry i dont know wy he dont show in the post the html code.
But i hope you know what i mean.</description>
		<content:encoded><![CDATA[<p>Sorry i dont know wy he dont show in the post the html code.<br />
But i hope you know what i mean.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://www.gregphoto.net/index.php/2007/01/16/scriptaculous-sortables-with-ajax-callback/comment-page-1/#comment-278213</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Tue, 15 Sep 2009 02:12:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.gregphoto.net/index.php/2007/01/16/scriptaculous-sortables-with-ajax-callback/#comment-278213</guid>
		<description>All works fine buty

there is just one question. I want that the Sortable List looks like that 

&#124;                     Sortable List                      &#124;
&#124;                                                                   &#124;
&#124;   [ Box 1  div to Drag  the Box 1  ]    &#124;
&#124;   &#124;             Box 1  div content         &#124;    &#124;
&#124;   [             Box 1  div footer             ]    &#124;
&#124;                                                                   &#124;
&#124;                                                                   &#124;
&#124;   [ Box 2  div to Drag  the Box 2  ]   &#124;
&#124;   &#124;             Box 2  div content         &#124;    &#124;
&#124;   [             Box 2  div footer             ]    &#124;
&#124;                                                                   &#124;
&#124;                                                                   &#124;
&#124;   [ Box 3  div to Drag  the Box 3  ]   &#124;
&#124;   &#124;             Box 3  div content         &#124;    &#124;
&#124;   [             Box 3  div footer             ]    &#124;
 

I don&#039;t know how to edit the code:

	
	
        &lt;div id=&quot;item_&quot;&gt;
		


I tryed like that:


	
	
        Content box 4 the Shoubox Snippet codeFooter
        Content box 4 the User Online Snippet codeFooter
        Content box 4 ....Footer
		


But it didn&#039;t work. 

It is also importent for me that I can give each content div a Individuel Text,
because I use a Content Managment System that use Snippets for the content.

It would be very nice if someone could help me Thx.</description>
		<content:encoded><![CDATA[<p>All works fine buty</p>
<p>there is just one question. I want that the Sortable List looks like that </p>
<p>|                     Sortable List                      |<br />
|                                                                   |<br />
|   [ Box 1  div to Drag  the Box 1  ]    |<br />
|   |             Box 1  div content         |    |<br />
|   [             Box 1  div footer             ]    |<br />
|                                                                   |<br />
|                                                                   |<br />
|   [ Box 2  div to Drag  the Box 2  ]   |<br />
|   |             Box 2  div content         |    |<br />
|   [             Box 2  div footer             ]    |<br />
|                                                                   |<br />
|                                                                   |<br />
|   [ Box 3  div to Drag  the Box 3  ]   |<br />
|   |             Box 3  div content         |    |<br />
|   [             Box 3  div footer             ]    |</p>
<p>I don&#8217;t know how to edit the code:</p>
<p>        &lt;div id=&quot;item_&#8221;&gt;</p>
<p>I tryed like that:</p>
<p>        Content box 4 the Shoubox Snippet codeFooter<br />
        Content box 4 the User Online Snippet codeFooter<br />
        Content box 4 &#8230;.Footer</p>
<p>But it didn&#8217;t work. </p>
<p>It is also importent for me that I can give each content div a Individuel Text,<br />
because I use a Content Managment System that use Snippets for the content.</p>
<p>It would be very nice if someone could help me Thx.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sandbird</title>
		<link>http://www.gregphoto.net/index.php/2007/01/16/scriptaculous-sortables-with-ajax-callback/comment-page-1/#comment-272754</link>
		<dc:creator>Sandbird</dc:creator>
		<pubDate>Mon, 24 Aug 2009 09:28:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.gregphoto.net/index.php/2007/01/16/scriptaculous-sortables-with-ajax-callback/#comment-272754</guid>
		<description>Nice script! 

mibo:

Read up and do the : onLoaded: setTimeout(function(){$(&#039;workingMsg&#039;).hide()},1000)

thingy. That will fix your glitch</description>
		<content:encoded><![CDATA[<p>Nice script! </p>
<p>mibo:</p>
<p>Read up and do the : onLoaded: setTimeout(function(){$(&#8216;workingMsg&#8217;).hide()},1000)</p>
<p>thingy. That will fix your glitch</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cyianite</title>
		<link>http://www.gregphoto.net/index.php/2007/01/16/scriptaculous-sortables-with-ajax-callback/comment-page-1/#comment-271504</link>
		<dc:creator>cyianite</dc:creator>
		<pubDate>Wed, 19 Aug 2009 10:54:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.gregphoto.net/index.php/2007/01/16/scriptaculous-sortables-with-ajax-callback/#comment-271504</guid>
		<description>Nice sample pal, keep it up</description>
		<content:encoded><![CDATA[<p>Nice sample pal, keep it up</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mibo</title>
		<link>http://www.gregphoto.net/index.php/2007/01/16/scriptaculous-sortables-with-ajax-callback/comment-page-1/#comment-266307</link>
		<dc:creator>mibo</dc:creator>
		<pubDate>Sun, 26 Jul 2009 17:54:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.gregphoto.net/index.php/2007/01/16/scriptaculous-sortables-with-ajax-callback/#comment-266307</guid>
		<description>Hi, i was trying this example and is awesome, :D  the only problem is that i get the update database... sometimes and it not hide :/ anyone have any idea how can i fix this?.  thanks</description>
		<content:encoded><![CDATA[<p>Hi, i was trying this example and is awesome, <img src='http://www.gregphoto.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />   the only problem is that i get the update database&#8230; sometimes and it not hide :/ anyone have any idea how can i fix this?.  thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leandro</title>
		<link>http://www.gregphoto.net/index.php/2007/01/16/scriptaculous-sortables-with-ajax-callback/comment-page-1/#comment-263882</link>
		<dc:creator>Leandro</dc:creator>
		<pubDate>Sun, 28 Jun 2009 04:04:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.gregphoto.net/index.php/2007/01/16/scriptaculous-sortables-with-ajax-callback/#comment-263882</guid>
		<description>I used long time ago this script and it works perfectly...  now I tried in another server and I had problems with the php5 code... the error was

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in db.php on line 3

After burn me brain out for hours... I found the solution.

I went to this page http://php7.org/tools/5to4/ and It transform the code php5 to php4

conn = mysql_connect($this-&gt;host, $this-&gt;user, $this-&gt;pass);
        mysql_select_db($this-&gt;dbname,$this-&gt;conn);
    }

    function getList() {
        
        $sql = &quot;SELECT * FROM tablename ORDER BY porder ASC&quot;;
        $recordSet = mysql_query($sql,$this-&gt;conn);
        $results = array();
        while($row = mysql_fetch_assoc($recordSet)) {
            $results[] = $row;
        }
        return $results;
    }

    function updateList($orderArray) {
        $porder = 1;
        foreach($orderArray as $id) {
            $id = (int) $id;
            $sql = &quot;UPDATE tablename SET porder={$porder} WHERE id={$id}&quot;;
            $recordSet = mysql_query($sql,$this-&gt;conn);
            $porder++;
        }
    }

    function SortableExample()  /* PHP 4 constructor */
    {
        // call php5 constructor
        $args = func_get_args();
        call_user_func_array(array(&amp;$this, &#039;__construct&#039;), $args);
    }
}
?&gt;

This scritpt is excellent! thank you!</description>
		<content:encoded><![CDATA[<p>I used long time ago this script and it works perfectly&#8230;  now I tried in another server and I had problems with the php5 code&#8230; the error was</p>
<p>Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in db.php on line 3</p>
<p>After burn me brain out for hours&#8230; I found the solution.</p>
<p>I went to this page <a href="http://php7.org/tools/5to4/" rel="nofollow">http://php7.org/tools/5to4/</a> and It transform the code php5 to php4</p>
<p>conn = mysql_connect($this-&gt;host, $this-&gt;user, $this-&gt;pass);<br />
        mysql_select_db($this-&gt;dbname,$this-&gt;conn);<br />
    }</p>
<p>    function getList() {</p>
<p>        $sql = &#8220;SELECT * FROM tablename ORDER BY porder ASC&#8221;;<br />
        $recordSet = mysql_query($sql,$this-&gt;conn);<br />
        $results = array();<br />
        while($row = mysql_fetch_assoc($recordSet)) {<br />
            $results[] = $row;<br />
        }<br />
        return $results;<br />
    }</p>
<p>    function updateList($orderArray) {<br />
        $porder = 1;<br />
        foreach($orderArray as $id) {<br />
            $id = (int) $id;<br />
            $sql = &#8220;UPDATE tablename SET porder={$porder} WHERE id={$id}&#8221;;<br />
            $recordSet = mysql_query($sql,$this-&gt;conn);<br />
            $porder++;<br />
        }<br />
    }</p>
<p>    function SortableExample()  /* PHP 4 constructor */<br />
    {<br />
        // call php5 constructor<br />
        $args = func_get_args();<br />
        call_user_func_array(array(&amp;$this, &#8216;__construct&#8217;), $args);<br />
    }<br />
}<br />
?&gt;</p>
<p>This scritpt is excellent! thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Banana</title>
		<link>http://www.gregphoto.net/index.php/2007/01/16/scriptaculous-sortables-with-ajax-callback/comment-page-1/#comment-258352</link>
		<dc:creator>Banana</dc:creator>
		<pubDate>Mon, 27 Apr 2009 16:16:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.gregphoto.net/index.php/2007/01/16/scriptaculous-sortables-with-ajax-callback/#comment-258352</guid>
		<description>I just wanted to give you a big thanks! works great!</description>
		<content:encoded><![CDATA[<p>I just wanted to give you a big thanks! works great!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: davit</title>
		<link>http://www.gregphoto.net/index.php/2007/01/16/scriptaculous-sortables-with-ajax-callback/comment-page-1/#comment-257619</link>
		<dc:creator>davit</dc:creator>
		<pubDate>Wed, 15 Apr 2009 14:40:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.gregphoto.net/index.php/2007/01/16/scriptaculous-sortables-with-ajax-callback/#comment-257619</guid>
		<description>when I alter a category into a link in a data base  
e.g.this link &quot;&lt;a href=&quot;registracia.php&quot; rel=&quot;nofollow&quot;&gt;Galleries&lt;/a&gt;&quot;  then everything works perfectly in every broser except the internet explorer 7 , would you please help me to improve this problem or advice me anything ?
I would be very grateful if you coontact me  on the following address: davit.agniashvili@gmail.com</description>
		<content:encoded><![CDATA[<p>when I alter a category into a link in a data base<br />
e.g.this link &#8220;<a href="registracia.php" rel="nofollow">Galleries</a>&#8221;  then everything works perfectly in every broser except the internet explorer 7 , would you please help me to improve this problem or advice me anything ?<br />
I would be very grateful if you coontact me  on the following address: <a href="mailto:davit.agniashvili@gmail.com">davit.agniashvili@gmail.com</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

