Ext.NET弹出确认窗口
我们正在使用 Ext.Net,我们遇到了一个问题,表面上看起来很微不足道,但实际上,它似乎需要一些内部知识。
我们正在实施一个注册表单,其中一个字段是电子邮件地址,它将用于唯一标识用户。
因此,当用户注册时,系统会查询数据库以检查该电子邮件地址是否已存在于系统中。如果电子邮件存在,我们将检查该电子邮件是否已激活。如果尚未激活,那么我们希望向前端发送一条消息,表明我们输入的电子邮件是未激活的电子邮件地址。
在这种情况下,我们希望弹出一个确认窗口,询问用户是否想要激活帐户。我们遇到的问题是何时弹出确认窗口取决于电子邮件地址是否激活。
任何人都可以提供有关如何执行此操作的任何建议吗?
We are using Ext.Net and we have run into an issue which on the surface seems quite trivial but in practice, it would appear, requires some inside knowledge.
We are implementing a sign up form and one of the fields is the email address which will be used to uniquely identify the user.
So when the user signs up, a query is made to the database to check if the email address already exists in the system. If the email exists then we check if the email has been activated or not. If it hasn't been activated, then we want to send a message back to the front end that we the email entered was an unactivated email address.
In that case we want to pop up a confirmation window which will ask the user if the wants to activate the account or not. What we are struggling with is when to pop up the confirmation window depending upon whether the email address is activated or not.
Can anyone provide any suggestion on how to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
@DavidS - 我认为以下示例演示了您描述的整个场景。
示例
干杯!
@DavidS - I think the following sample demonstrates the entire scenario you describe.
Example
Cheers!
有时最好使用客户端确认
http:// /docs.sencha.com/ext-js/3-4/#!/api/Ext.MessageBox-confirm
sometimes better to use client side confirmation
http://docs.sencha.com/ext-js/3-4/#!/api/Ext.MessageBox-confirm