Hi,

What does writediv do?  Does it eval scripts?  If not...

Try putting together a complete, but very small, example showing the
problem and posting it to Pastie[1].  You'll probably figure out the
problem in the process of doing that.  If not, it gives people
something to look at.  I'd be very surprised if it's not as simple as
just recreating the Sortable, you just have to be sure the code doing
it gets executed.  Ajax.Updater[2] or Element.update[3] might help.

[1] http://pastie.org
[2] http://prototypejs.org/api/ajax/updater
[3] http://prototypejs.org/api/element/update

FWIW,
--
T.J. Crowder
tj / crowder software / com

On Oct 28, 1:57 pm, Benjamin <[EMAIL PROTECTED]> wrote:
> Well I also tried it earlier, but I tried again and it's not working :
>
> function reload()
> {
>         text = file('ajax.php?action=reload');
>         if (text != 0)
>                 writediv(texte, 'my_ul');
>
> }
>
> and the ajax.php file :
>
> if ($_GET['action'] == 'test')
> {
>         echo '<li id="li_3">test 3</li><li id="li_4">test 4</li>';
>         echo '<script type="text/javascript">';
>         echo "Sortable.create('my_ul', {
>                         onChange:function(){
>                         alert(Sortable.sequence('my_ul').join(''));
>                 }
>                 });";
>         echo '</script>';
>
> }
>
> any other guesses?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to