Still stuck with this... :P

I've changed the $ajax->sortable( ) call to simplify it a bit. I had to
change a line in ajaxhelper to make it pass the Sortable.serialize() in
'postBody' and not in 'parameters' or it wouldn't work.

The call now looks like:

<?=$ajax->sortable('nsortable',array('url'=>"sort",'update'=>'noticias','loading'=>"new
Effect.Appear('feedback');",'loaded'=>"new
Effect.Fade('feedback');"))?>

And the full updated block:
-----------------------------------------------------------------------
<div id="noticias">
<?php if (count($news)==0) { ?>
        <p>No hay noticias publicadas</p>
<? } else { ?>
        <ul id="nsortable">
        <?php foreach ($news as $n): ?>
        <li class="noticia<?=$n['News']['hidden']?' borrador':''?>"
id="noticia_<?=$n['News']['id']?>">
                <div 
class="noticia_header"><h1><?=$n['News']['title']?></h1></div>
                <div class="noticia_body"
id="body_<?=$n['News']['id']?>"><p><?=$n['News']['body']?></p></div>
                <div class="noticia_footer"></div>
        </li>
        <?php endforeach; ?>
        </ul>
<? } ?>
<?=$ajax->sortable('nsortable',array('url'=>"sort",'update'=>'noticias','loading'=>"new
Effect.Appear('feedback');",'loaded'=>"new
Effect.Fade('feedback');"))?>
</div>
-----------------------------------------------------------------------

Still, after the first update it keeps working for FF but not for IE,
what makes me think it is somehow related to evalScripts. It can't be
bad javascript for IE because the JS code is exactly the same both
times.

Honestly, I'm absolutely confused about this.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to