iframe

fancybox iframe content and google search

蹲街弑〆低调 提交于 2019-12-19 11:47:11
问题 I have page in my website that lists all projects thumbs. When a particular thumb (project) is clicked, Fancybox loads project's details in iframe. All works great! (Content in iframe DOES NOT include navigation, header and other website elements.) The problem I have is with Google search results page - Google indexed all details pages, and now when user clicks the link from Google results, details content page is opened in browser (instead Fancybox iframe). That is bad since details page

auto re-sizing iframe that dynamically changing height (smaller or bigger)

核能气质少年 提交于 2019-12-19 11:44:38
问题 I know there's a lot of post about re-sizing iframe but all i found is this code: <script type="text/javascript" language="JavaScript"> <!-- function autoResize(id) { var newheight; var newwidth; if (document.getElementById) { newheight = document.getElementById(id).contentWindow.document.body.scrollHeight; newwidth = document.getElementById(id).contentWindow.document.body.scrollWidth; } document.getElementById(id).height = (newheight); document.getElementById(id).width = (newwidth); }; //-->

Selenium can't locate iframe

女生的网名这么多〃 提交于 2019-12-19 11:39:16
问题 Selenium fails to locate the iframe by ID and Name . This is for an automated checkout test on Shopify. The specific issue lies within the payment field. I found the ID and name of the iframe , which is card-fields-number-b1kh6njydiv00000 . iframe Image: Text Field Image: Code trials: driver.switchTo().frame("card-fields-number-b1kh6njydiv00000"); System.out.println("Found iframe"); The error is: org.openqa.selenium.NoSuchFrameException: No frame element found by name or id card-fields-number

Why PDF not opening in iFrame in Chrome when switched to Mobile Device Mode

陌路散爱 提交于 2019-12-19 11:19:04
问题 This shows the pdf when we open it in browser. <html> <head> </head> <body> <iframe src="https://static.googleusercontent.com/media/research.google.com/en//pubs/archive/44678.pdf" width="100%" height="100%" > </iframe> </body> </html> But when I switch it to mobile view, it DOESNT work. Steps: Open Chrome Inspect Window. Click "Toggle Device Toolbar" icon on the top menu on inspect window toolbar. Now we can still see the pdf in mobile view. Once we refresh it, we can NO LONGER SEE pdf. Why ?

Changing DOM element order with CSS (Crocodoc) [duplicate]

萝らか妹 提交于 2019-12-19 10:48:28
问题 This question already has answers here : How can I reorder my divs using only CSS? (24 answers) Closed 4 months ago . Is it possible to change DOM element order with CSS? I have an iframe where I'd like to change the toolbar from above to below the iframe's main content. So from this: <iframe> <html> <body> <div id='toolbar'></div> <div id='main_content'></div> <div id='other_stuff'></div> </body> </html> </iframe> To this: <iframe> <html> <body> <div id='main_content'></div> <div id='toolbar

Changing DOM element order with CSS (Crocodoc) [duplicate]

徘徊边缘 提交于 2019-12-19 10:48:11
问题 This question already has answers here : How can I reorder my divs using only CSS? (24 answers) Closed 4 months ago . Is it possible to change DOM element order with CSS? I have an iframe where I'd like to change the toolbar from above to below the iframe's main content. So from this: <iframe> <html> <body> <div id='toolbar'></div> <div id='main_content'></div> <div id='other_stuff'></div> </body> </html> </iframe> To this: <iframe> <html> <body> <div id='main_content'></div> <div id='toolbar

JSF 2.0 ViewExpiredException on Glassfish 3.1 when using iframe in Safari

六月ゝ 毕业季﹏ 提交于 2019-12-19 10:43:50
问题 I have a JSF 2.0 web application running on glassfish 3.1 that is working fine on IE, FF, Safari and Chrome. When I added the url of my website inside a iframe of another website then I am getting ViewExpiredException after clicking any button inside iframe - This happens only on Safari, works fine in IE, FF, Chrome. <iframe style="width: 100%; height: 800px" src="url_of_my_website" frameBorder="0"></iframe> Following are my observations Deployed the same application on glassfish 3.0.1 and

Opening a Link in a New Window within an iFrame

心不动则不痛 提交于 2019-12-19 10:43:10
问题 I`m looking to create something similar to the Digg/Stumbleupon bar that is fixed to the top of a newly opened page. In my application I display a bunch of links to external sites. No when someone clicks one of them, I would want to them to be opened within a new tab with my logo/bar up top of the page. I would assume that this can be done using iframes. However I don`t know what would be the easiest way to pass the URL parameter for iframe src to be rendered onto the new tab. Any feedback is

JSF 2.0 ViewExpiredException on Glassfish 3.1 when using iframe in Safari

谁说我不能喝 提交于 2019-12-19 10:43:07
问题 I have a JSF 2.0 web application running on glassfish 3.1 that is working fine on IE, FF, Safari and Chrome. When I added the url of my website inside a iframe of another website then I am getting ViewExpiredException after clicking any button inside iframe - This happens only on Safari, works fine in IE, FF, Chrome. <iframe style="width: 100%; height: 800px" src="url_of_my_website" frameBorder="0"></iframe> Following are my observations Deployed the same application on glassfish 3.0.1 and

Selenium can't find element, but element is on the https://login.aliexpress.com/ webpage

。_饼干妹妹 提交于 2019-12-19 10:31:48
问题 On the website the selenium script cannot find the login and password fields. I tried to search by xpath, css selector, name and class name. But nothing worked. from selenium import webdriver from time import sleep driver = webdriver.Firefox() driver.get("https://login.aliexpress.com/") driver.find_element_by_id("fm-login-id").send_keys("test_id") driver.find_element_by_id("fm-login-password").clear() driver.find_element_by_id("fm-login-password").send_keys("test_pass") driver.find_element_by