Wow... I still am having a hard time getting my head around this. So I made a demo available here:
http://fashdax.com/gallery_deleteme.php I installed Firebug, and don't see any requests being made... I also turned on all the error options on. So something might be amiss in my structure? I don't think that the ajax event is trigering at all.... Can you think of why that would be?? NEW PAGE CODE: <? $host = "###"; $user = "###"; $pass = "###"; $dbase = "###"; mysql_connect("$host","$user","$pass") or die("Database connections error"); mysql_select_db("$dbase") or die("Database unavailable"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head> <title>Fashdax | Your Fashion Connection</title> <script type="text/javascript" src="http://fashdax.com/inc/script/scriptaculous/prototype.js"></script> <script type="text/javascript" src="http://fashdax.com/inc/script/scriptaculous/scriptaculous.js"></script> <link rel="stylesheet" type="text/css" href="http://fashdax.com/inc/css_source/space.css" /> </head> <body> <div id="imageFloatContainer"> <? $a = mysql_query("SELECT * FROM `main` WHERE `user` = 'webgodjj' ORDER BY `displayOrder` ASC"); while ($b = mysql_fetch_array($a)) { $i++; echo '<img src="http://www.fashdax.com/gallery/I/2005/01/01/thumb/'.$b['id'].'.jpg" id="'.$b['id'].'">'."\n"; } ?> </div> <script type="text/javascript"> function updateOrder(){ var options = { method : 'post', parameters : Sortable.serialize('imageFloatContainer') }; new Ajax.Request('http://www.fashdax.com/gallery_update.php', options); } Sortable.create('imageFloatContainer', {tag:'img',overlap:'horizontal',constraint: false, onUpdate : updateOrder}); </script> </body> </html> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs -~----------~----~----~----~------~----~------~--~---
