- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用 Adobe Livecycle Designer ES2 制作自定义对话框,但我不知道如何或是否可以获取两个 type:"ok"- 元素在其中执行不同的操作事物。
我想在底部有一个常规的“确定”按钮,并且我想在顶部有一个指向网站的超链接。
这已经阻止我使用“ok_cancel
”等,因为据我所知,这些按钮在布局中是不可分离的。
我不知道如何为启动 URL 的按钮创建事件处理程序,或者是否可以处理“ok”-“commit”之外的元素的单击事件。
另外,我不明白“提交”函数如何选择其确定按钮,因为在我的另一个对话框中,它是由位于代码底部的下部确定按钮触发的,与本例中上部按钮触发的情况不同“提交”功能。
这是我的代码,让它更清楚 - 我不希望“link”元素触发“commit”,而是“okbo”元素。我想为“link”的 clickEvent
创建一个新函数。
var dialogBox =
{
description:
{
elements:
[{
type: "static_text",
name: "Text about the link",
},
{
type: "ok",
item_id: "link",
ok_name: "Go to Link",
},
{
type: "static_text",
name: "Some more Information",
},
{
type: "ok",
item_id: "okbo"
}]
},
commit: function(dialog)
{
app.alert("This is triggered by the OK-Button with the ID 'link' \n and I don't know why!");
}
};
app.execDialog(dialogBox);
如果不可能在一个对话框中使用不同的“ok”元素,我愿意就如何以不同的方式在我的对话框中获取超链接提供建议!
这是我的第一个 StackOverflow 问题,所以请不要杀了我 :P ;)
最佳答案
请参阅下面更新的代码和我的评论。有关 Dialog 和 execDialog 函数的更多详细信息,请参阅 here .
一些控件没有记录,例如:
• link_text: a hyper link control
• mclv: a multi-column list view (or grid)
• slider: a slider
• ok_help, ok_cancel_help, ok_other_help, ok_other_cancel_help controls
• separator: draw a line horizontal or vertical with optional caption
• Heading and Title fonts about 10pt and 12pt respectively
• margin_width, margin_height properties for the view control
• back_color, gradient_direction, gradient_type for the view control
• A Dialog.setForeColorRed() method
• A Dialog.visible() method to show/hide controls
查看更多详细信息 source
var dialogBox =
{
description:
{
elements:
[{
name: "Link to google",
type: "link_text", // add a hyperlink
item_id: "lnk1",
alignment: "align_center",
},
{
type: "static_text",
name: "Text about the link",
},
{
type: "button", // add a custom button
item_id: "link",
name: "Go to Link",
alignment: "align_center",
},
{
type: "static_text",
name: "Some more Information",
},
{
type: "ok",
item_id: "okbo"
}]
},
commit: function(dialog)
{
app.alert("okbo!"); //executed only for first ok type
},
"link": function () // handler of the custom component by id name
{
xfa.host.gotoURL("http://www.yahoo.com");
},
"lnk1": function ()
{
xfa.host.gotoURL("http://www.google.com");
}
};
app.execDialog(dialogBox);
关于javascript - 如何在 Adobe-JS 自定义对话框中使用多个“确定”按钮?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26252701/
我是 Adobe InDesign Server 的新手,我很难找到一个好的厨房水槽应用程序。我从 SDK 获得的所有示例似乎都部分起作用。我想要做的就是从服务器端使用 InDesign 的母版页
关闭。这个问题不满足Stack Overflow guidelines .它目前不接受答案。 想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。 6年前关闭。 Improve thi
我有一个带有完整设计页面的 xd adobe 链接。我想在 adobe xd windows 桌面应用程序中打开这些设计页面,但我不能。如何在 adobe xd windows 桌面应用程序中打开此链
activeDocument.fitArtboardToSelectedArt() 调用此命令时,AI 在 AI 5.1/6 32 位和 64 位版本上崩溃。我可以使用菜单中的命令。有没有人遇到过这个
activeDocument.fitArtboardToSelectedArt() 调用此命令时,AI 在 AI 5.1/6 32 位和 64 位版本上崩溃。我可以使用菜单中的命令。有没有人遇到过这个
如果可以,应该在哪里配置? 从文档中,所有提到的忽略文件都是关于从 SVN 提交 中排除 .vlt,但我们面临相反的问题 — 我们想排除来自 VLT 提交 的文件系统上的文件——例如.DS_Store
我正在 AdobeXD 中制作移动下拉菜单。 除了我的主页,我还有另外两个画板;菜单本身和一个按钮。 我想要做的就是触发菜单向下滑动,并将退出按钮覆盖在首先触发效果的按钮顶部。 它会覆盖退出按钮,
Javascript 的 setTimeout函数是window的一个方法目的。此对象在 ExtendScript 中不存在,因此不可用于为 Adobe InDesign 或 Illustrato
有人可能会争论它是否与摄影有关,但由于它与 DNG 格式有关,所以在这里问。 我正在尝试构建一个 Adobe DNG SDK,以便我能够将许多不同的相机原始格式转换为 *.dng 格式。 我为 h
我正在 Adobe CQ5.5 中开发一个自定义容器组件,我想要一个自定义消息作为占位符,而不是默认的“将组件或 Assets 拖到此处”。 到目前为止,我发现我必须添加 cq:emptyText
我想在导入 XML 时使用 Internet URL 将图像加载到 InDesign 模板中。 这可能吗?或者图片是否需要存储在本地机器上? 最佳答案 这可能吗?不需要。镜像需要存储在本地机器上吗?是
在 Adobe Edge Animate 中,如何获取 Symbol 的当前时间? 我混合使用 jQuery 和 Adobe Edge 代码来编程我的页面。我想检查一个符号的时间是否停留在第一
如果我将 adobe xd 文档放置在本地计算机上的任何位置。 示例:C:\doc\adobe-xd\brand\brand.xd 打开它并运行插件 是否可以检索 adobe xd 文档位置。 P.S
我正在使用 AEM 6.1 和 Maven 来管理依赖项。我可以看到 bundle com.adobe.granite.poi 版本 2.0.0 随 AEM 实例一起提供。但我似乎无法在 Adob
我正在使用 adobe labs magic selection 工具,但它要求用户进行 adobe 登录。有什么办法可以不让用户登录,但仍然使用 magic selection 工具?我听说过这个,
我们有 Adobe PDF writer,希望能够使用它而不是 ghostscript。 SaveAs() 函数是否锁定在 ghostscript 中,如果是,我该如何使用 adobe pdf w
我想知道 Adobe Experience Manager (AEM) 6.2/6.3 使用哪个版本的 Apache Sling?我在各种网站上进行了搜索,包括 Adobe 自己的文档,但似乎
还在努力探索动作剧本。有没有办法访问Android手机的接近感应器?想要使用传感器的输出关闭探测器。找到了里查多松/接近感应器(https://github.com/richardolsson/pro
我对 Day Cq5 还很陌生。我的对话框中有一个复选框,我想在用户选择或取消选择它时在我的 jsp 中检索它的 bool 值。请帮忙 最佳答案 如果要从组件的 JSP 中检索值,请执行以下操作: b
http://helpx.adobe.com/experience-manager/kb/HowToDefineComponentListDynamically.html 我在上面尝试过,但由于文章的
我是一名优秀的程序员,十分优秀!