私の質問は、確認用ポップアップにユーザー名をプルする方法です。私のPHPがユーザーのリストを生成する方法を変更する必要がありますか、または親とユーザー名...もしそうなら、私はそれをどのように達成できますか?PHPとmootoolsに関する質問
私はcodeigniterを使用してPHPコードを作成し、基本的にユーザー名とユーザーを削除するリンクを一覧表示しています。
<div class='item'>
<a href="http://localhost/nstrust/index.php/admin/users/delete/9" class="delete">Delete</a> <a href="http://localhost/nstrust/index.php/admin/users/view/9" class="view">Jamalia</a>
</div>
<div class='item'>
<a href="http://localhost/nstrust/index.php/admin/users/delete/13" class="delete">Delete</a> <a href="http://localhost/nstrust/index.php/admin/users/view/13" class="view">Timothy</a>
</div>
私は、ユーザーが本当にあなたのHTMLは、常に上記のマークアップに続くと仮定すると、ユーザー
window.addEvent('domready', function()
{
$$('a.delete').addEvent('click', function(event)
{
if (!confirm("Are you sure you want to remove this user?"))
{
event.stop();
}
});
});
getNext()を使用しないでください。get( "text")? –
** @ Dimitar:**はい、訂正しました...昨日、多くのjQueryの質問に答えました。私はそれを私に中毒させました(私は通常、MooToolsの開発者です)。 –