iframe

Persistent session_id inside an iframe

对着背影说爱祢 提交于 2021-01-29 16:00:47
问题 I have a php system that works fine stand-alone but not when embedded in an iframe. It's embedded in a page on another domain.. and consists of: main.php graps a parameter off iframe-URL, look up in MySQL, sets a session variable and draws a grid. Then, using ajax, tries to get data to display in the grid. - but the ajax.php doesn't have the same session_id() ?!? AND in subsequent ajax-calls for data (to update the grid) the session_id() keeps changing! To recap: ALL my PHP is inside the SAME

Is there any option to embedding xhtml in html?

爱⌒轻易说出口 提交于 2021-01-29 14:00:37
问题 I have an XML file, which has xsl style sheet with css and html. I wanted to embed this file in existing html. If any one has idea please help me to solve this problem. 回答1: A very detailed answer to this question can be found in Norm Walsh's W3C task force report https://www.w3.org/TR/html-xml-tf-report/ But for a one-line summary, section 2.4 asks "2.4 How can islands of XML be embedded in HTML?" and answers "In order to conceal the XML markup from an HTML5 parser's attempts to correct

Unable to locate an element using Python Selenium library

帅比萌擦擦* 提交于 2021-01-29 13:31:08
问题 I'm not able to find an element again. I've been learning... I've already looked for the solutions seeing past questions but the answer depends on the specify code. The name of the button is "Gestione" and when you click it, you should be able to see a drop-down menù. SELECTORS BY SELENIUM IDE id=ext-gen76 css=#ext-gen76 xpath=//em[@id='ext-gen76'] xpath=//tr[@id='ext-gen43']/td[2]/em xpath=//td[5]/table/tbody/tr/td[2]/em xpath=//em[contains(.,'Gestione')] HTML CODE HTML page 1 HTML page 2

Remembering Session in iframe with ASP.NET WebForms

痴心易碎 提交于 2021-01-29 09:38:46
问题 Strange behavior occured in an old WebForms app. I can't give you link, or big picture, I can only ask for specific detail, so maybe someone has an idea which way to explore. App on the domain A embeds app on another domain B within iframe. (If it hosts the site on the same domain, then it's fine, the problem doesn't occur.) domainA.com: <iframe src="http://domainB.com/page1.aspx" /> page1.aspx writes a Session variable: http://domainB.com/page1.aspx: HttpContext.Current.Session["UTCOffset"]

How can I embed google slides with the controls bar separated from the iframe view?

馋奶兔 提交于 2021-01-29 09:00:05
问题 I want to embed Google Slides in my web page, but separate the controls bar from the view itself. I know that I can hide them with ?rm=minimal - but I still want to render them, just in a different section in my web page, outside of the embedded iframe. How can I do that? does it require a CSS hack? 来源: https://stackoverflow.com/questions/65506857/how-can-i-embed-google-slides-with-the-controls-bar-separated-from-the-iframe-vi

How to display a pdf document within an iframe by google docs viewer stored in firebase storage?

岁酱吖の 提交于 2021-01-29 05:45:23
问题 I have an iframe in which I want to put a preview of my pdf document hosted in firebase storage through google docs viewer. I am creating the html view in javascript dynamically and adding it by jquery's ('.someClass').html() method. I tried to plug in the download url of the document to the iframe directly and it works just fine and displays the preview. But I can't get it to display the preview through google docs. What I meant is that this works just fine: ....making my html on the fly in

How to set height of iframe embedded in VSTS hub

强颜欢笑 提交于 2021-01-29 05:42:57
问题 I have created a VSTS extension, follow a guide of add a hub. My extension will hold a iframe that render my website for my own job. i can show, but the height of the content in iframe of devops is very short. Here is my markup and code: <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <script src="sdk/scripts/VSS.SDK.min.js"></script> <title>embedded iframe</title> </head> <body> <script type="text/javascript"> VSS.init(); VSS.ready(function () { var assetFrame = document

pdf.js default viewer doesn't show pdf file

和自甴很熟 提交于 2021-01-29 05:41:44
问题 I'm using pdf.js library with the recommended default settings: <iframe src="https://myserver.tld/lib/pdf.js/web/viewer.html?file=https://myserver.tld/generator.php?id=1" width="800px" height="600px"> So basicly I use a self-hosted verion of pdf.js and want the default viewer to display a pdf file which is generated by a php-script (https://myserver.tld/generator.php?id=1). It works fine to direct download the pdf file by typing https://myserver.tld/generator.php?id=1 in the browser. Using

How to disable auto-scrolling when using Window.find() inside an iFrame

[亡魂溺海] 提交于 2021-01-29 05:13:07
问题 I have a search function that finds keywords inside an iFrame that looks like this: const iWindow = iframe.contentWindow; iframe.contentDocument.designMode = "on"; //This is supposed to prevent scrolling but doesn't while (iWindow.find(keyword)) { // Logic for found keyword handling here } iframe.contentDocument.designMode = "off"; The issue occurs when iWindow.find(keyword) is executed, for every match found the page will automatically scroll to it's location on the page. This at times

How to disable auto-scrolling when using Window.find() inside an iFrame

五迷三道 提交于 2021-01-29 05:10:08
问题 I have a search function that finds keywords inside an iFrame that looks like this: const iWindow = iframe.contentWindow; iframe.contentDocument.designMode = "on"; //This is supposed to prevent scrolling but doesn't while (iWindow.find(keyword)) { // Logic for found keyword handling here } iframe.contentDocument.designMode = "off"; The issue occurs when iWindow.find(keyword) is executed, for every match found the page will automatically scroll to it's location on the page. This at times