问题标签 [alertify]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
154 浏览

javascript - 输入密码后需要帮助重定向到 index.html

它可以使用 Alertify,但是在 OK 之后,需要一些代码来打开页面索引。

0 投票
4 回答
235 浏览

javascript - 如何等到一个函数完成并循环

这是我的代码的一部分:

哪里<? $row["item_id"]; ?>会返回一些东西(忽略它,这不是真正的问题)

但问题是我需要等到alertify.prompt()getsstr然后把它放到

(对不起这个凌乱的代码)

我能做些什么来解决这个问题?

PS 如果可能,最好不要使用 jQuery 解决方案,因为它已经给出。请使用仅限 Javascript 的解决方案。

0 投票
2 回答
1245 浏览

javascript - 如何捕获点击 alertify.js 通知

我需要捕获 alertify.js 事件的单击(或隐藏)事件。我将时间设置为 0,以便等待用户点击消息。有没有办法为这个事件附加一个函数?

0 投票
2 回答
1742 浏览

javascript - 在页面加载 1 次而不是单击按钮时发出警报/显示消息

这是我目前的设置。我想在主页上显示一次消息而不是 href 链接。最新更新。我相信听众没有运气:

0 投票
1 回答
3234 浏览

jquery - 警报在确认之前执行?

我决定用 Alertify 修改和设计我的代码。我的旧代码:

当我按下确定时,一个 php 脚本运行并删除记录。Javascript 返回真或假。

我对 Alertify 的问题是我什至无法按确定或取消,我的 php 脚本在此之前运行。这是代码:

});

我看到一些人有类似的问题,我看到我需要使用防止默认值(这是有道理的)代码:

});

在这种情况下,php 脚本在我按下确定/取消之前不会运行,但是当我按下其中一个按钮时它也不会运行。什么都没发生。请问有什么帮助吗?

0 投票
1 回答
1961 浏览

javascript - Alertify 不会因提示而停止

所以我有这些代码行:

当系统运行时,它会在提示符处停止,除非用户交互,否则不会继续执行 if 语句。但是,我想自定义警报框,所以我决定使用 alertify.js 。

所以我现在结束了这段代码:

我的问题是,当系统运行时,它并没有在提示符处停止;它只是进入 if 语句而不做其余的事情。这是为什么?为什么它不会在提示符处停止以便用户可以输入内容?我怎样才能解决这个问题?谢谢!

0 投票
2 回答
172 浏览

javascript - Assign event to button from external library

Every time I press a button, there is a random chance that a alertify alert window popups. The alertify alert popup is something I use instead of javascript Alert, just to get a nicer design.

Alertify library

And here is a screenshot of the current situation:

enter image description here

I want to assign a event to the OK button. When I use the "inspect element" function in google chrome, I see that this green OK button has an id called "alertify-ok", so I want to assign an event when this button is pressed.

I've tried to add this part to my HTML document in the script part:

But nothing happens. The reason why I need this to work, is that the youtube popupmodal should come up right after I've pressed the OK button. I belive the error comes because the alertify window with HTML is from an external library, so how can i do this?

0 投票
1 回答
568 浏览

javascript - 通过'this'来提醒

我想在具有类 .removeRow 的 div 中“找到”一个按钮后使用 alertify.js

问题是在我调用 alertify 之后,我失去了“this”的值。如何将“this”传递给 alertify 函数?

0 投票
1 回答
85 浏览

html - 身体 100% 高度在某些动作上移动

我有一个身高为 100% 的网页。我正在使用用于漂亮对话框的 alertify 插件。当我单击该对话框中的按钮时,整个页面将移动到顶部大约 -70px。当我单击使用 Select2 插件的选择菜单时,我遇到了同样的问题。

当我删除 100% 高度时,我没有问题,但我需要那个高度。

有没有人熟悉这个问题或知道如何解决它?

0 投票
1 回答
819 浏览

javascript - 将函数传递给 alertify.js

我对这个脚本一头雾水,我无法让我的函数显示在 Aletify.js 警报中。

一些帮助将非常有帮助;-)

功能:

我通常不会在运行时收到消息,但是这样,但我相信我在某个地方很近:-)