问题标签 [alertifyjs]
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.
alertifyjs - 未触发 Alertify.js 通知的回调
我在调用回调时遇到了一些问题。我的前缀是我已经关注了这个链接,但它现在不起作用。
我需要做的是在通知单击时打开一个新页面。目前,即使是简单的警报也没有显示。
我的代码如下
我究竟做错了什么?谢谢
更新#1
我仍然面临传递价值“楼下”的问题
考虑这个片段
我得到了 null 作为 id,在回调之外没关系,我做错了什么?再次感谢
javascript - 登录对话框未正确显示 - alertifyjs
我正在按照示例使用 alertifyjs 创建登录表单,但是,即使遵循完全相同的代码,我也会得到不同的输出,这与我在 alertify 网站本身上运行示例时显示的内容相反。
https://alertifyjs.com/examples.html - 无按钮通用对话框
请有人帮助我,因为我不太确定我错过了什么
我把它粘贴到我的 HTML 中
这在我的javascript中
我得到的输出:
我正在使用以下链接将 alertify 库加载到我的项目中
javascript - 当单击关闭按钮时,它应该停止使用 alertify 进行重定向?
当我单击关闭按钮时,它正在重定向到个人资料页面。但它进入onclose
事件部分,它不应该像它一样刷新页面,returns false
而是重定向到配置文件页面。
错误:当我单击Ok
或Close(X)
两个事件都在触发时。
谢谢。
angular - Angular 6 中的警报错误“ReferenceError:未定义警报”
我尝试在我的项目中使用 alertify.js。所以我遵循了这个材料https://signl.uk/tutorial/index/notify-service-with-angular-5。但是ReferenceError: alertify is not defined
在我的应用程序中单击按钮时出现错误。
我添加到angular.json文件中的alertifyjs css 和 js文件。
alertify.service.ts
帮助我找出我的错误。
编辑
我在 component.ts 文件中将 AlertifyService 导入为private alertify: AlertifyService
和在 app 模块 import { AlertifyService } from './services/alertify.service';
中,并在提供程序中添加 AlertifyService 作为 providers: [AlertifyService]
我在我的登录组件中使用 alertify
登录组件.ts
css - 在全屏模式下使用 Google 地图看不到警报对话框
我正在使用 Alertify 提示来确认 Google 地图上的事件的网站。这适用于定位在 div 中的地图,但在全屏模式下,提示会被地图遮挡。
Alertify 提示仍然存在,尺寸正确,但似乎在地图后面。我试过强制地图和 alertify div 的 z-index ,但没有效果。
如果我对地图 div 强制 display:none 规则,它会消失并且对话框再次可见,但是当可见时,地图似乎以某种方式被强制到前面?
使用谷歌地图 Javascript API v3。
更新:我找到了一种解决方法,但并不理想。调用库时,Alertify 会在结束 body 标记之前动态插入一个 .alertify 类的 div。如果此 div 立即移动到地图画布中的第一个 div 内,它将显示在地图上。幸运的是,这可以使用 alertify 的 onshow 钩子强制执行,如下所示:
不漂亮,但它可以代替适当的解决方案。
angular6 - Angular 6 component inside the alertifyjs
I want to use the alertifyjs with angular 6. And want to embed angular component into the alertifyjs body.
Example code:
or
Example image with Devextreme datagrid
How can I do embed the angular component into the alertifyjs? Or, can I do?
Thanks.
jquery - 显示对话框时设置 AlertifyJS 回调
我正在使用 AlertifyJS 显示自定义表单并调用更改多条记录。我已经定义了一个显示对话框的函数:
此函数会导致出现“alertify.dialog:名称已存在”的问题。我只是将对话框声明移到了该函数之外的 document.ready 函数中,但我不知道如何传递回调函数:
谢谢
alertify - 提醒确认多个提交表单按钮
我想确定使用警报确认对话框单击了哪个按钮。这是我的表格:
和我的 javascript:
表单已提交,但后端缺少单击按钮的 $_POST。如何使用包含单击哪个按钮的 Alertify 提交表单?
javascript - 使用 Webpack Encore Symfony 4 找不到警报
我在尝试在我的项目中使用 Alertify 时遇到了麻烦。我正在使用 symfony 4 中的 webpack encore。
我已安装使用:
npm install alertifyjs --save
这是我的 app.js
在我尝试使用的对象上,您可以看到我正在将窗口、jQuery 和 alertify 传递给闭包以在内部使用它们,但只是我收到了这个错误:
GMExplotations.js:37 未捕获的 ReferenceError:alertify 未在对象中定义。(GMExplotations.js:37) 在 Object../assets/js/explotations/GMExplotations.js (app.js:327) 在webpack_require (bootstrap:78) 在模块。(app.js:1) 在 Module../assets/js/app.js (app.js:23) 在webpack_require (bootstrap:78) 在 checkDeferredModules (bootstrap:45) 在 bootstrap:151 在 bootstrap:151
Alertifyjs 在我的 vendor~app.js 上,但我不知道为什么它找不到 alertify,知道吗?