问题标签 [object-tag]

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 投票
0 回答
140 浏览

primefaces - PDF下方的值列表(selectOneMenu)

我正在使用 ap:selectOneMenu 来呈现值列表。当用户单击 p:selectOneMenu 时,值列表将绘制在用于显示 PDF 的“html 对象标记”下方。在我附上的图片中可以看到我的问题。

这是代码:

我该怎么做才能看到 p:selectOneMenu 在“html 对象标签”上的值列表?

谢谢

在此处输入图像描述

0 投票
1 回答
442 浏览

html - 当 flash 不可用时显示替代内容(图像/文本)?对于来自包含 Flash 的额外来源的 iframe 页面

我有这个链接:http ://www.qe.com.qa/QECharts/English/Trading%20Company%20Graph/CompanyTradeGraph.html?CompanyCode= QIMD 我想在新网站上显示它以显示股票价格同一家公司。我能够通过 iFrame 或 Object html 标记来实现这一点。

此链接的内容似乎是顶部的 javascript 控件和下方的动态 Flash 图。

我的问题是,当在 iPhone 或非 Flash 浏览器上查看这个 iframe/对象时,JS 控件下会出现一个空白,仅代替 Flash 图(这是合乎逻辑的,因为没有 Flash)。

没有安装 Flash 时,是否可以在 iframe 内容(Flash 图)的这一部分显示图像(后备)?

我搜索了几个论坛,但没有运气。

请问有什么帮助吗?

非常感谢您!

0 投票
2 回答
16440 浏览

javascript - 读取 HTML 对象标签中的数据

我有一个存储在服务器上的文本文件和一个 HTML 中的对象,如下所示:

如何阅读test.txtJavascript 中的内容?到目前为止,我所拥有的是:

但我不知道如何读取对象标签内的 HTML 文档。

0 投票
2 回答
766 浏览

html - 无法在 iframe 中嵌入包含 svg 元素的 html 页面

流程图.js

我在 html 页面中绘制了一个圆圈,该圆圈源自另一个页面上的 iframe。iframe 显示对齐的所有内容,除了那些不可见的圆圈。我必须使用其他东西而不是 iframe 吗?流程图.js

HTML 流程图

HTML 另一个.aspx

也试过这个

当我直接访问流程图.aspx 时,它会正确显示整个流程图,但不在 iframe 或对象中

在此处输入图像描述

此外,如果我删除 svg 圆圈,即:开始和结束节点,则 iframe 可以很好地显示流程图。

这是 iframe 或对象标记中的结果

在此处输入图像描述

0 投票
2 回答
1096 浏览

javascript - 如何打印pdf作品集 tag using javascript or jQuery or ajax

Below is my code in xhtml to embed the PDF portfolio:

    <h:panelGroup layout="block">
                    <object id="pdfViewer" type="application/pdf"


Below is my code in xhtml to embed the PDF portfolio:

Could anybody please let me know how to print the PDF portfolio using javascript or jQuery or ajax on button click? I have the Print option over my embedded PDF but I am not able to use it since I have requirement to mark the entry in database once someone tried to print it. So I will have to make a back-end call from the same JS function. If you know anyway through primefaces then it would be great but I think there is none.

If there is any way I can call embedded Adobe Portfolio's default Print functionality from my application through Javascript or something then that would also do for me.


First off, the C standard says nothing about stacks and heaps. Those are implementation details of a given compiler. That being said, most compilers for desktop applications use both of these.

You are correct that pa is local to the main function and therefore resides on the stack. *pa however is not a local variable. It is an expression which evaluates to an instance of struct A.

In this case, the malloc function returns a pointer to a block of memory big enough for a struct A and the value of that pointer is stored in pa.

Generally speaking, anything returned by malloc, realloc, or calloc lives in the heap, while variables declared local to a function (even pointer variables which may point to the heap) reside on the stack.

0 投票
0 回答
29 浏览

pdf - Google Analytics 是否指示对象标签

在我的网站上,我将通过对象标签包含一些 PDF 文件,如下例所示。Google Analytics 是否指示对象标签内的 pdf 文件。那么当我在谷歌中搜索它时,我是否有可能找到该pdf文件。还是有更常见的方法来做到这一点?

0 投票
1 回答
374 浏览

javascript - 将 Velocity.js 用于 SVG 动画,其中包含作为 HTML 对象标记的图形

您如何将 Velocity.js 与包含在 HTML 对象标记中的 SVG 图形一起使用(这实际上是使用复杂图形的方式)。

基本上,包括图形:

然后,以下方法不起作用:

我正在使用 Velocity.js v1.4.3 和 jQuery v3.1.1 最新版本。我已经广泛搜索了解决方案,Velocity 文档仅包含内联 SVG 的示例(蹩脚!)。

0 投票
2 回答
12522 浏览

javascript - 直接为 Object 标签提供数据

我想在我的网站中嵌入一个 PDF 文件,它看起来像这样:

但后来我想先用 ajax 获取文件(在一个 javascript 文件中),用 JavaScript 编辑它的源代码,然后创建一个<object>并给它结果数据。问题是 Object 在其data属性中需要一个 url,并且不直接接受实际数据。我该如何处理?

例如,有没有办法在 javascript 中创建“假网址”?

或者我可以以其他方式将数据传递给对象吗?

或者我应该使用其他标签吗?

在此先感谢并为我的英语感到抱歉。

0 投票
2 回答
3108 浏览

angular - 发生angular2动作时重新加载Html对象标签

我正在通过 html 对象标签将 pdf 加载到视图中。由于某种原因,任何时候在 dom 中的其他任何地方发生 angular2 操作(mouseenter、mouseout、单击)都会导致对象/pdf 重新加载。我注意到 internalInstanceId 在对象标签上不断变化,但我无法控制。

这是一个显示正在发生的事情的 plunkr。当一个角度事件发生(鼠标悬停在标题之外)时,它会导致对象标签重新加载。

https://plnkr.co/edit/sovRUOn79LTJRDhaellf?p=preview

0 投票
1 回答
31 浏览

keyboard - 以编程方式按下键盘

我一直在尝试通过输入用户名和密码来自动化网站,输入用户名很好,因为它只是一个输入标签,但密码是一个对象标签,SendKeys 不起作用。它仅在我实际直接从键盘上按下键时才起作用。

我的问题是,无论如何以编程方式按下键盘而不使用任何编程语言的 SendKeys?

对不起,我的英语不好。
提前致谢。