如何输入Js删除确认 [英] How Do I Input A Js Delete Confirmation

查看:97
本文介绍了如何输入Js删除确认的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


<td><?php echo '<a href="delete.php?id=' . $row['id'] . '">Delete</a>';?></td



>


>

推荐答案

row [' id']。 ' >删除< / a>'; ? > < / td
row['id'] . '">Delete</a>';?></td



>


>


请参阅我的文章从零开始的模态弹出窗口 [ ^ ]。



您不需要使用我的项目(但您可以)。在本文中,我还讨论了替代方法,例如 confirm (其中不能推荐用于生产级软件)和jQuery插件,以及一般的模态。



这个想法是:你不需要确认相反,你进入模态模式并在模态对话框元素上放置一些控件。在这个元素上,你可以使用删除控件,立即你做了你需要的删除。从模态弹出窗口或对话框返回任何数据毫无意义。 JavaScript事件模型是不同的。我也在文章中解释了它。



-SA
Please see my article Modal Popup From Scratch[^].

You don't need to use my project (but you can). In this article, I also discuss alternative approaches, such as confirm (which cannot be recommended as for production-level software) and jQuery plug-ins, and modality in general.

The idea is: you don't need to "confirm". Instead, you enter the modal mode and put some controls on your modal "dialog" element. On this element, you can use "delete" control, which immediately does the deletion you need. It's pointless to return any data from the "modal popup" or dialog. The JavaScript event model is different. I also explain it in my article.

—SA


这篇关于如何输入Js删除确认的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆