iframe-app 相关问题


CloudRun 上托管的 iframe 未在 React JS 中触发 onLoad 事件

我在网页中嵌入了一个 iframe。有时 iframe 需要一段时间才能加载,有时会立即加载。我想在加载 iframe 时显示旋转的轮子动画。我是


Stripe Checkout 无法在 iFrame 中运行。请重定向至顶层结账

我正在尝试在 iframe 中加载 checkout.stripe,但它不起作用,我收到以下消息: Stripe Checkout 无法在 iFrame 中运行。请重定向到顶层的结帐。 我读过...


如何将已安装的 React 组件“移植”到另一个组件中?

目标: iFrame 在组件 A 中加载网页内容 门户 iFrame 到组件 B iFrame 不应作为新实例安装,并且其所有状态(包括反应状态)应保留从 comp A 到 ...


从 iframe API 延迟加载 YouTube 视频

我想使用 iframe API 延迟加载 youtube 视频。 IE。在开始时仅加载海报图像,当用户单击它时,仅加载实际图像及其内容。


Apple Pay 付款请求 API iframe

有一个页面实现了支付请求API,它有一个Applepay按钮,一切正常。但一旦页面嵌入到 iframe 中,就会出现 SecurityError 错误:尝试加星...


Javascript 函数 openFullscreen() ,如何让它在页面上的多个 iframe 上工作

在页面上我有一个 iframe,src 中有 *.pdf 文件。 <p>在页面上我有一个 iframe,src 中有 *.pdf 文件。</p> <pre><code>&lt;div class=&#34;node--view-mode-full&#34;&gt; &lt;p&gt;&lt;iframe allow=&#34;fullscreen&#34; allowfullscreen=&#34;&#34; frameborder=&#34;0&#34; height=&#34;980&#34; scrolling=&#34;no&#34; src=&#34;https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf&#34; width=&#34;660&#34;&gt;&lt;/iframe&gt;&lt;/p&gt; &lt;p&gt;&lt;iframe allow=&#34;fullscreen&#34; allowfullscreen=&#34;&#34; frameborder=&#34;0&#34; height=&#34;980&#34; scrolling=&#34;no&#34; src=&#34;https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf&#34; width=&#34;660&#34;&gt;&lt;/iframe&gt;&lt;/p&gt; &lt;/div&gt; </code></pre> <p>浏览器中内置的 pdf 查看器现在不支持 iframe 中的全屏模式。</p> <p>我找到了解决方案<a href="https://www.w3schools.com/howto/howto_js_fullscreen.asp" rel="nofollow noreferrer">https://www.w3schools.com/howto/howto_js_fullscreen.asp</a>,解决了问题 - 以全屏模式打开 iframe。在 w3schools 的示例中,打开 iframe 的按钮已存在于 HTML <a href="https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_fullscreen" rel="nofollow noreferrer">https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_fullscreen</a>.</p> <p>在我的解决方案中,我通过 javascript 添加按钮,因为带有 iframe 的页面已经存在,但没有此类按钮:</p> <pre><code>jQuery(document).ready(function($){ $(&#34;.node--view-mode-full iframe[src*=&#39;.pdf&#39;]&#34;).each(function (index) { $(this).addClass(&#39;fullscreenframe&#39;); $(this).attr(&#39;id&#39;, &#39;fullscreen-&#39;+index); $(&#39;&lt;button onclick=&#34;openFullscreen()&#34;&gt;Open in Fullscreen Mode&lt;/button&gt;&amp;nbsp;&lt;strong&gt;Tip:&lt;/strong&gt; Press the &#34;Esc&#34; key to exit full screen.&lt;br&gt;&#39;).insertBefore(this); }); }); </code></pre> <p>然后添加一个全屏打开 iframe 的功能(与 w3schools 相同):</p> <pre><code>function openFullscreen() { var elem = document.getElementsByClassName(&#34;fullscreenframe&#34;)[0]; if (elem.requestFullscreen) { elem.requestFullscreen(); } else if (elem.webkitRequestFullscreen) { /* Safari */ elem.webkitRequestFullscreen(); } else if (elem.msRequestFullscreen) { /* IE11 */ elem.msRequestFullscreen(); } }; </code></pre> <p>当页面上只有一个带有 *.pdf 的 iframe 时,Everysing 工作正常。但是,当我在页面上有两个或多个 iframe,并且单击任何 iframe 附近的“以全屏模式打开”任何按钮时,我总是在全屏模式下只看到第一个 *.pdf...</p> <p>我知道,这是因为我只得到 elem = document.getElementsByClassName("fullscreenframe")[0]; 中的第一个 iframe;</p> <p>我知道我需要使用类似的每个或类似的东西,但我无法解决它。在搜索关于页面上一个全屏元素的所有解决方案时,没有关于页面上多个元素的解决方案...谢谢。</p> </question> <answer tick="true" vote="0"> <p>也许是这样的:</p> <pre><code>jQuery(document).ready(function($){ $(&#34;.node--view-mode-full iframe[src*=&#39;.pdf&#39;]&#34;).each(function (index) { $(this).addClass(&#39;fullscreenframe&#39;); $(this).attr(&#39;id&#39;, &#39;fullscreen-&#39;+index); $(&#39;&lt;button onclick=&#34;openFullscreen(&#39; + index + &#39;)&#34;&gt;Open in Fullscreen Mode&lt;/button&gt;&amp;nbsp;&lt;strong&gt;Tip:&lt;/strong&gt; Press the &#34;Esc&#34; key to exit full screen.&lt;br&gt;&#39;).insertBefore(this); }); }); function openFullscreen(index) { var elem = document.getElementsByClassName(&#34;fullscreenframe&#34;)[index]; if (elem.requestFullscreen) { elem.requestFullscreen(); } else if (elem.webkitRequestFullscreen) { /* Safari */ elem.webkitRequestFullscreen(); } else if (elem.msRequestFullscreen) { /* IE11 */ elem.msRequestFullscreen(); } } </code></pre> </answer> <answer tick="false" vote="0"> <p>为什么不整合 jQuery?</p> <pre><code>const fullScreen = element =&gt; element.requestFullScreen(); // all modern browsers $(function(){ $(&#34;.node--view-mode-full iframe[src*=&#39;.pdf&#39;]&#34;).each(function (index) { $(this).addClass(&#39;fullscreenframe&#39;); $(this).attr(&#39;id&#39;, &#39;fullscreen-&#39;+index); $(&#39;&lt;button class=&#34;fullScreen&#34;&gt;Open in Fullscreen Mode&lt;/button&gt;&amp;nbsp;&lt;strong&gt;Tip:&lt;/strong&gt; Press the &#34;Esc&#34; key to exit full screen.&lt;br&gt;&#39;).insertBefore(this); }); $(&#34;.fullScreen&#34;).on(&#34;click&#34;, function() { const $iFrame = $(this).closest(&#39;p&#39;).find(&#39;iframe.fullscreenframe&#39;); if ($iFrame) fullScreen($iFrame.get(0)); // pass the DOM element }); }); </code></pre> </answer> </body></html>


如何从<script>window.Flourish

我正在尝试从使用 Flourish 的网站中提取数据。我相信它使用 JavaScript 通过 Flourish 链接(iframe)加载数据。数据位于脚本标记中。 完整 Xpath" /html/body/mai...


从对话流发送和接收文本数据

如何将对话流与我的聊天界面集成? 我想从对话流发送和接收文本数据,而不是使用 iframe 或对话流信使。


Superset 访客令牌返回登录页面

我正在尝试将仪表板嵌入到另一个站点的 iframe 中。这两个站点都仅使用 HTTP。这是超集文件中的配置 PUBLIC_ROLE_LIKE_GAMMA:正确 SESSION_COOKIE_SECURE = 发...


Iframe 外部 API 回调将 ASP.NET MVC 会话对象重置为 null

解释起来有点棘手,但我会尽力解释问题。首先,它仅在 Firefox、Chrome 和 Edge 上按预期运行。 我有一个网络退房表格...


谁能告诉我如何从<script>window.Flourish

基本上我正在尝试从使用繁荣的网站中提取数据,它使用javascript通过繁荣链接(Iframe)加载数据,我相信..数据位于脚本标记中。 完整的 Xpath”/html...


如何在 Angular 16 应用程序中监听 javascript 回调

我正在尝试使用 iFrame 将我的 Angular 16 应用程序与第三方网站集成。我的问题是如何捕获来自他们网站的回调响应? 与其 API 集成的建议方法...


如何在不使用 iframe 的情况下使用 Angular 为 chromeextension 创建侧边栏

我正在使用 Angular 开发 chrome 扩展,我的扩展与 MaxAI chrome 扩展类似,当用户单击小部件时,它会打开侧边栏。 我尝试了一些教程来创建...


需要帮助设置 Google App 脚本的 CI/CD?

我们正在使用 Google App Script 构建一个插件,并希望将其发布到 Google Workspace MarketPlace。我们设法使用 App Sc 的管理部署功能发布版本化部署...


在普通的 create-react-app --template typescript 文件夹中安装 eslint 失败

我正在尝试将 eslint 安装到从 TypeScript 模板创建的普通 create-react-app 文件夹中。 我运行了以下命令: % npx create-react-app REDACTED --模板打字稿


如何使用 2 个条件角度选择器

我有一个带有选择器的多输入组件,如下所示: 我有一个带有选择器的多输入组件,如下所示: <app-input type="currency" formControlName="currency"></app-input> <app-input type="date" formControlName="dateOfBirth"></app-input> 因此,从该组件中,我有一个像这样的选择器: @Component({ selector: 'app-input[type=currency]', }) @Component({ selector: 'app-input[type=date]', }) 现在,我想添加多个 currency 组件。一种用于默认货币成分,第二种用于具有动态货币符号的货币。 所以,我想通过选项让它变得不同。当选择器有选项时,显示带动态符号的货币,否则或默认,显示不带符号的默认货币。 我一直在尝试使用下面的这个选择器,但它不起作用。 对于默认货币: @Component({ selector: 'app-input:not([options])[type=currency]', }) 对于动态符号货币: @Component({ selector: 'app-input[options][type=currency]', }) 提前谢谢您 您可以像这样添加数据属性来区分选择器 无符号: @Component({ selector: 'app-input[type=currency]', }) 带有符号: @Component({ selector: 'app-input[type=currency][data-symbols]', }) html with symbols: <app-input type="currency" formControlName="currency" data-symbols></app-input> without symbols: <app-input type="currency" formControlName="currency"></app-input>


Youtube IFrame API - 启用 Youtube 历史记录时开始时间不起作用

当用户在启用了 Youtube 历史记录的情况下登录 YouTube 时,开始时间将不起作用。 不知何故,YouTube会在视频播放后转到历史上的最后一个保存时间。 重现步骤...


如何更改Git远程仓库?

考虑: PS C:\.dev\despesas-python> heroku 创建 app-despesas-pessoais-python » 警告:heroku 更新从 7.53.0 到 8.0.5 可用。 创建 ⬢ app-despesas-pessoais-python...完成 https...


功能测试对所有守卫都有作用吗?

我的应用程序中有两个不同的用户对象,一个App\User 和一个App\Admin。对于两者,我有不同的警卫进行身份验证。 我的默认防护是模型 App\User 的网络防护并且...


Terraform 包含的功能未按预期工作

我想根据“app”和“db”层过滤 Terraform 中的字符串列表。但是, contains 函数返回带有字符串“app”的空结果 变量“层”{ 类型...


如果我在css中设置高度,当我设置高度时用鼠标拖动时,面板在调整大小时出现问题,因此它会冻结

我有 3 个面板(左、中、右),当我用鼠标拖动它们时,它们会调整大小。在右侧面板中,我有一个 iframe,其 css 为 width: 100%。为了更清楚,我把它涂成红色。 我愿意


azure function 应用程序环境的配置值

您正在开发一个Azure Function App。您使用 Azure Function App 主机不支持的语言开发代码。代码语言支持 HTTP 原语。 您必须部署...


CSS:如果我在CSS中设置高度,当我设置高度时用鼠标拖动时,面板在调整大小时会出现问题,因此它会冻结

我有 3 个面板(左、中、右),当我用鼠标拖动它们时,它们会调整大小。在右侧面板中,我有一个 iframe,其 css 为 width: 100%。为了让它更清晰,我把它涂成红色。 我愿意


使用 create-next-app 启动新的 Next.js 14 应用程序时,为什么会出现与 favicon.ico 相关的“模块未找到”错误?

我运行了以下命令来启动一个新的 Next.js 应用程序: npx create-next-app@latest 但是 npm run dev 给了我以下错误: 找不到模块:无法解析 'C:\xxxxx\xxxxx\xxxxx\my-app\src pp\


导出或提交到 App Store 时 Xcode 崩溃

我在提交到 App Store 时遇到问题。当我尝试导出 .ipa 或在应用程序存档后使用提交功能时,Xcode 6.1 和 5.1.1 都会崩溃。以下是步骤


为什么 GAE appspot URL 路由到默认服务?

我正在将 python/django 应用程序的 3 个不同实例部署为项目中的 3 个不同服务。 app-devl 作为共享开发环境 app-test 作为测试环境 默认为


create-react-app的内容没有推送到github

我将 Go 和 React 代码推送到了 github。 Go代码已成功提交,但React代码未成功提交。 React 内容是由 create-react-app 创建的。 文章 ├ 应用程序接口 │ └ main.go └ 客户 └ 反应


create-react 应用程序的替代品是什么

我有一个基于 Create React App 构建的 React 项目,我正在探索替代构建工具。有哪些推荐的方法或工具可以从 Create React App 迁移出来?有什么经历或


在 Haskell 中注册信号处理程序,并根据状态执行操作

我有一些函数 app :: StateT AppState IO () ,它在进行大量计算和 IO 的同时维护一些应用程序状态(我已经定义了 main = void $ runStateT app initialState )。我想要...


如何更新 Play 商店应用程序包的包名称?

我按照步骤为我的 Flutter 应用程序签署了捆绑包。 比我将 build/app/outputs/bundle/release/app-release.aab 拖到 Google Play 控制台的应用程序包中,并收到错误 You need to use a different


Google App 脚本无法获取 Google Drive 上托管的 CSS 文件(403 未经授权)

我在 Google App 脚本访问 Google 云端硬盘托管资产时遇到问题。奇怪的是,它一直在工作,几天前才停止工作。 发生了什么:在


添加plugin:@typescript-eslint/recommended-requiring-type-checking后,提示tsconfig中未包含该文件

我用 npx create-react-app my-app --template typescript 创建一个项目,然后我向其中添加打字稿类型检查,但我的 App.tsx 报告以下错误: 解析错误:ESLint 已配置...


从 App Designer 到通用 .m 脚本文件的变量传输

我正在尝试将字符串(文件位置)从App Designer传输到.m脚本文件。 到目前为止,在应用程序设计器中我有: app.matfile = app.matfileEditField.Value; 应用程序目录=应用程序。


如何在DevOps发布管道中设置.NET 8.0?

使用 Azure Web App 部署任务时,您必须选择将在 Azure Web App 中使用的运行时堆栈。 我最近从 .NET 6 更新到 .NET 8,令我惊讶的是你可以随时随地设置 .NET 8...


执行 npm install 时,使用 React-scripts 版本创建 React App 错误

对于我的 Create React 应用程序,我在执行 npm install 时收到以下错误 npm 错误!代码 ERESOLVE npm 错误! ERESOLVE 无法解析依赖关系树 npm 错误! npm 错误!解析时:[email protected]...


新的 Azure Function App 处理已由另一个 Function App 处理过的 Blob

我有以下情况。我有一个在 Windows 应用服务计划上运行的功能。该函数处理 blob。该函数具有默认的 LogsAndContainerScan 触发器。现在过了一段时间我...


使用打字稿创建react-app css模块:无法解析.module.css

我正在尝试将CSS模块与打字稿和create-react-app反应应用程序一起使用。 我确实导入了'./App.modules.css';在我的 App.tsx 中,但出现错误: 找不到模块:无法解析'./App.modules.cs...


Azure Function Python V2 一个函数应用程序中的多个函数

我正在寻找有关在一个 Azure Function App 中为多个函数创建项目结构的指导。这是我之前读过的一篇文章 在一个 Azure Function App 中创建多个函数 有一个...


NG8001:“app-welcome”不是已知元素:

我的 Angular 应用程序遇到问题,收到错误 8001。我不知道如何处理它。谁能帮我这个?谢谢你! 应用程序组件.html {{标题}}&l... 我的 Angular 应用程序遇到问题,收到错误 8001。我不知道如何处理它。谁能帮我这个?谢谢! app.component.html <h1>{{ title }}</h1> <p>Congratulations! Your app is running. 🎉</p> <app-welcome></app-welcome> app.component.ts import { Component } from '@angular/core'; import { CommonModule } from '@angular/common'; import { RouterOutlet } from '@angular/router'; @Component({ selector: 'app-root', standalone: true, imports: [CommonModule, RouterOutlet], templateUrl: './app.component.html', styleUrl: './app.component.css' }) export class AppComponent { title = 'XYZCARS'; } welcome.component.ts import { Component } from '@angular/core'; @Component({ selector: 'app-welcome', templateUrl: './welcome.component.html', styleUrl: './welcome.component.css' }) export class WelcomeComponent { car = 'toyota'; } 我的项目最初没有 app.module.ts 文件。我自己添加了它并根据网上找到的一些信息进行了配置,但问题仍然存在并且仍未解决。谁能帮我解决这个问题吗? app.module.ts import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { WelcomeComponent } from './welcome/welcome.component'; import { AppComponent } from './app.component'; @NgModule({ declarations: [ AppComponent, WelcomeComponent ], imports: [ BrowserModule ], providers: [], bootstrap: [AppComponent] }) export class AppModule { } 如果您正在 Angular 17 中创建项目->使用这些命令 ng app --no-standalone 然后你就得到了 app.module.ts 文件。


令牌正在使用 AzureAD 中的所有可用范围生成

我在 Azure 上进行了以下设置, 主机APP 在“公开 API”选项卡下添加了 3 个范围,即 abc、def、ghi 客户端APP 在“API 权限”选项卡下添加了所有 3 个范围 现在如果我要求...


xcodebuild:错误:名为“app”的工作区不包含名为“app”的方案

我正在开发一个 React Native 应用程序,我正在从 0.59 升级到 0.60。我已经整理好了 cocoapods,并且可以在模拟器中成功地从 Xcode 构建并运行该应用程序。然而,当我尝试...


世博应用程序中缺少应用程序文件夹的路由

简化的expo路由器使用应用程序文件夹中的文件名来创建应用程序路由,但使用npx create-expo-app或npx create-expo-app@latest创建expo应用程序不会导致应用程序直接...


ant design如何设置app宽字体

我正在使用 NextJS 14,我有以下内容: 全局.css: @import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@100;200;300;400;500;600;700;800&display=swap'); @层r...


闪亮的server.R无法读取全局变量

./app 中的两个文件 ui.R 图书馆(闪亮) 一个<- 1 ui <- fluidPage( textOutput("test") ) server.R server <- function(input, output) { output$test <- renderText({ a ...


Kivy 不会显示图像或标签

从kivy.app导入App 从 kivy.uix.gridlayout 导入 GridLayout 从 kivy.uix.label 导入标签 从 kivy.uix.image 导入图像 从 kivy.uix.button 导入按钮 从 kivy.uix.textinput 导入


Android Compose CircularProgressIndicator 使用最新材料崩溃

这是我在顶级 build.gradle 中使用的 构建脚本{ ext.kotlin_version = '1.9.22' ext.compose_version = '1.5.8' 这是在我的 app/build.gradle 中: //撰写 实施平台('org.


onSuccess 回调是否已从查询(tRPC)中删除?

app/auth-callback/page.tsx 从 'next/navigation' 导入 { useRouter, useSearchParams } 从“反应”导入反应 从 '../_trpc/client' 导入 { trpc } 常量页面 = () => { 常量路由器 =


属性 application@label 也存在于

在我的android项目中安装新库后,出现以下错误: /android/app/src/debug/AndroidManifest.xml 错误: 属性应用@标签值=(同情心)来自(未知) ...


UniqueConstraint 并忽略区分大小写

我想使用此代码: 约束= [ models.UniqueConstraint(fields=['name', 'app'], name='unique_booking'), ] 但名称和应用程序(两者)不应该检查区分大小写,所以&qu...


未遵循 Uvicorn 重新加载选项

我有三个目录:app、config和private 我在安装了 WatchFiles 的情况下以编程方式运行 uvicorn: uvicorn.run( “应用程序主:快”, 主机=主机,


© www.soinside.com 2019 - 2024. All rights reserved.