No it created the sortable and I can move the li tags around but the
only time it calls the onUpdate command is when I have ghostly set to
true.

I don't want to have ghostly set to true. 

Here is my code.

<table width="100%" cellpadding="2" cellspaing="0" border="0">
<tr><td>
<ul id="orderable">
        <li>039100035000 :: tank top</li>
        <li>03911003006 :: schedule t</li>
        <li>03911034000 :: orange t</li>
        <li>03911036000 :: t- shirt embroidered 36000</li>
        <li>03914002000 :: hooded sweatshirt 2000</li>
        <li>03917004000 :: polo 4000</li>
        <li>03961001000 :: danica 1000</li>
        <li>31700280 :: Shirt-IRL Officials Polo White -
Adult:Medium:White</li>
        <li>3911001000 :: IndyCar Series 2 Sided T-Shirt, Silk
Screened.</li>
        <li>3911032000 :: indycar gray</li>
        <li>3911033200 :: 3000 ics 2xl</li>
        <li>3911037300 :: shirt 37000</li>
        <li>3911038000 :: shirt 38000</li>
        <li>3911039000 :: shirt 39000</li>
        <li>3961016000 :: 2004 Indy Racing League Tomas Scheckter 2
Sided T-Shirt, Silk Screened.</li>
        <li>3961022000 :: helio</li>
        <li>3961023000 :: Hornish</li>
        <li>3961024000 :: patrick blue</li>
        <li>3961025000 :: Carpenter</li>
        <li>3961026000 :: Wheldon</li>
        <li>3961028305 :: patrick sil screened black</li>
        <li>3961029405 :: patrick 9005</li>
        <li>3961030005 :: wheldon champion</li>
        <li>5911011005 :: winners wheldon 3xl</li>
</ul>
<div id="debug"></div>
</td></tr>
</table>

<script type="text/javascript">
Sortable.create('orderable', {onUpdate: doAlert});
 
 function doAlert() {
        $('debug').innerHTML += "hello<br />";
 }
</script>

Jon Whitcraft
Web Application Developer
Online Services - Indianapolis Motor Speedway
(317) 492-8623
 
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Claudio Gamboa
Sent: Monday, March 20, 2006 12:52 PM
To: rails-spinoffs@lists.rubyonrails.org
Subject: Re: [Rails-spinoffs] Sortabls onUpdate function

May be you forgot the LI ID in your HTML


On Mon, 2006-03-20 at 12:43 -0500, Whitcraft, Jon wrote:
> I have this code.
> 
>  
> 
> <script type="text/javascript">
> 
> Sortable.create('orderable', {onUpdate: doAlert});
> 
>                                      
> 
>             function doAlert() {
> 
>                         alert("Hello");
> 
>             }
> 
> </script>
> 
>  
> 
>  
> 
> But when I move an item it doesn't fire the doAlert command, am I
> missing something?
> 
>  
> 
> Thanks
> 
>  
> 
> 
> 
> 
> Jon Whitcraft
> Indianapolis Motor Speedway
> [EMAIL PROTECTED]
> 
> 
> Phone: (317) 492-8623 :: Fax: (317)
>              492-6419
> 
> 
> 
>  
> 
> 
> ********************
> ********************
> This E-mail (and attachments) may contain confidential/privileged
> information intended only for the named addressee(s). If you are not
> an intended recipient, do not read, copy, disseminate or take any
> action based on the content of this E-mail. Please notify the sender
> by reply E-mail and erase this E-mail from your system. Your
> assistance is appreciated. E-mail transmission may not be secure or
> error-free. The company is not responsible for any loss/damage arising
> from any virus transmitted.
> ********************
> ********************
> _______________________________________________
> Rails-spinoffs mailing list
> Rails-spinoffs@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to