iframe

how to handle iframes/frames dom in the iphone uiwebview

in (void) webViewDidFinishLoad: (UIWebView*)webView I inject some javascript to handle the iframes. e.g. stringByEvaluatingJavaScriptFromString: @"try { var document = window.document.getElementsByTagName('iframe')[0].contentWindow.document.getElementsByTagName('frame'); } catch (e) { alert (e.message); }" It t...

track the content inside an iframe using google analytics

I have used tons of iframes of my clients websites in the microsites that i have created for them. the max i can track is someone moved the mouse over the iframe. Is it possible to track the way that i track any other webpage with in my website. I heard it from my jackass colleague that it can be done. is it really possible? If so can yo...

Listen for keypress while iframe has focus?

Is there any way to listen for keypress events in a parent page while the iframe has focus? Or, alternatively, is it possible to pull away the focus from the iframe? Please note, the iframe is not within the same domain, so I cannot modify it's contents via javascript. I've tried the following jquery in the parent page, thinking perhap...

Making onmouseout and onmouseover work correctly in Opera while cursor moves between iframes

I have the following code. Here iframe2 will be on top of iframe1 near it's right. When the user moves the mouse on iframe2 the size should increase and it should move to the left and when the moves leaves iframe2 it must go back to it's original size. The Javascript below does it. The code works fine in Firefox, but in Opera 10.50 it do...

ajax call returns null in my facebook iframe !!!

Hi, I am using jquery to send an ajax request from my facebook app which is in iframe to my server. The ajax request works fine when the web app is running stand alone and out of facebook platform, but within facebook, the result that I get from my ajax request is blank !!! Here is the code I use: $.ajax({ url: 'http://mydo...

javascript: is there any reason scrollTo() would fail to scroll properly while INSIDE the iframe itself?

From within an iframe, is there any reason window.scrollTo(0,0) wouldn't work? In other words, the client code for the iframe itself wants to scroll to the top of the iframe's client area whenever it is loaded. I thought the logic was window.scrollTo(0,0) but it's not working. Any ideas? (To be perfectly clear: if the situation is ...

How can I save an ASP.NET IFRAME from a custom entity's OnSave event, reliably?

I have a custom ASP.NET solution deployed to the ISV directory of an MS Dynamics CRM 4.0 application. We have created a custom entity, whose data entry requires more dynamism than is possible through the form builder within CRM. To accomplish this, we have created an ASP.NET form surfaced through an IFRAME on the entity's main form. H...

AJAX and iFrame: Calling AJAX from inside the iFrame to Update an Outside DIV

Hi there, I have a page where a user can upload a file along with some other input. Because I wanted this to be AJAX-like, I resorted to using an iFrame to accomplish this. After the file is uploaded and an iFrame is loaded with a response page, I need to update a DIV outside of the iFrame with an AJAX call. The reason for separate...

IE won't start session from an iframe?..

The task was to bypass login form on remote server with a session_id acquired through a call to server's web API. So that user wouldn't have to login twice. Since there's no way to set cookies for different domain. What we came up to was - put a little file on remote server, to which we pass encrypted session_id from hidden iframe and w...

how to add code into a iframe

Hello how to add some html javascript code to a iframe added in our site like example i want to add a adsense to a iframe sourced some other domains (not the domain i have access) So how will i make the iframe in my site loaded with a javascript ...

Attaching a function to the parent window from an iframe and getting proper scope

I working on adding file uploading to my web application. I'm using an iframe to post my upload. When my php script processes the upload it writes some JavaScript to the iframe. This JavaScript is attempting to attach a function to the parent, this works, but when this function actually gets called it doesn't have the correct scope. Here...

Firefox reloading parent page in iframe when clicking named anchor

My site has an iframe which is dynamically populated with html content. The html often contains named anchors, which work fine in IE/Chrome but in Firefox it reopens the entire page within the iframe. Here's an example: load the page in firefox, scroll to the bottom of the iframe, click the "back to top" link, and you will see what I am...

IFRAME renders a HTML text outside of boundaries, a bug?

IE8 in non-compatability view, Version 8.0.6001.18702 The code below represents the problem: <body><div style="height:400px;width:400px"><iframe src="http://mail.ru" height="100%" width="100%"></iframe></div></body> Scroll the IFRAME to the right to the middle of "Скачать Спутник с музыкой" orange label. Alt-Tab to other window and...

which is better to promote? IFRAMEs or External Javascripts

I want to provide a way for bloggers to use my link list in their blogs. which type of code should i provide? IFRAME or External Javascript ? the different aspects i think that are involved are SEO, Browser Compatibility, Cross Platform, Performance, and the code should be allowed in mose Blog Services. which one do u suggest? ...

#include file vs iframe or is there a better way

ok simple question about including large mostly static html and asp.net code I am using as of right now #include and I was wondering if iframes would be a better way of handling what I wish to do or is there a better way to do it. here is the current way i'm handling the includes default.aspx <%@ Page Language="C#" AutoEventWireup=...

How know if an iframe content is empty or not?

I need know if this page returns something, because this page have a login in ASP and my server is a PHP. ...

window.onbeforeunload is being triggered in the iFrame (CKEDITOR buttons)

On a page where I have a CKEDITOR text editor I have the following code to prevent the user from leaving the page and losing all their data: window.onbeforeunload= function() { if (CKEDITOR.instances.stuff.getData().length > 0 && oktoquit == false) { return "You have unsaved changes. Click Cancel now, then 'Save' to save the...

iframe for ad loading good or bad?

According to Yahoo's "Best Practices for Speeding Up your Site", the pros for using iframes: Helps with slow third-party content like badges and ads Download scripts in parallel but the cons are: Costly even if blank Blocks page onload I want to use an iframe to load ads using the technique mentioned on this site: http://meande...

JSP load external php not using iFrames

I have a bit of an issue with a site I maintain. I have been asked to add a report to a page that sits in a jsp page. The reporting information comes from a MySQL database. The problem is to connect the jsp to the database would require added functions to code that I do not have the original source of. I thought about redoing all the db ...

iframe/lightbox refresh issues

Hi Please check out: http://gherkin.co.nz/refresh/ and click on the purple box that says 'Membership chest' You should then see some form fields in an iframe in the lightbox. If you click on the "GO" button, the page will change (currently Not found, which is fine for now). If you click the dark area to close the box, then click the ...