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
-~----------~----~----~----~------~----~------~--~---