iframe

What are the pros and cons of various ways of analyzing websites?

I'd like to write some code which looks at a website and its assets and creates some stats and a report. Assets would include images. I'd like to be able to trace links, or at least try to identify menus on the page. I'd also like to take a guess at what CMS created the site, based on class names and such. I'm going to assume that the s...

Accessing theme of parent from iframe.

Hi, I have a Web application that is accessed via iframe, with user login. It does detect the user login and conforms accordingly. So how could I integrate the look and feel (or theme) of the parent page into the Web app? Thanks. ...

Accessing a javascript function in a nested iframe in IE

I currently have a page structure that consists of a page(Parent) that includes an iframe(iframe0) and inside that iframe I have another iframe(iframe1). In iframe1 I have a javascript function that I am trying to call from Parent. In Firefox/Chrome/Safari I am able to call this function with the following code: frames["iframe0"]["if...

Facebook add profile box for iframe app

I have an iframe app that only really has a canvas page. I need to integrate a profile box with this app. A lot of tutorials have you editing the Default FBML under profile box settings, but that option doesn't exist anymore. I'm curious how to set default FBML for my iframe app and how to allow the user to add my app's profile box to...

Is it a problem to have URLs that don't change much because of iframes?

We're developing an application in ASP.NET. As an example, for discussion purposes, let's say we have a menu on the left, and one menu item says Departments. We click that. It displays a list of departments in an iframe, to the right of the menu. The url up top does not change. Then we click on one of the departments, and detail inf...

line after IFRAME is not visible

line after IFRAME is not visible in both IE and FF. refer the below code and let me know whether I am doing anything wrong. <html> <body> line before iframe <br /> <iframe src="about:blank" /> <br /> line after iframe </body> </html> ...

Using jQuery to grab the content from CKEditor's iframe

Hey guys, I have this custom written CMS that uses CKEditor *(FCKEditor v3) for editing content. Along with that I'm using the jQuery Validation plugin to check all fields for error prior to ajax-based submission. For passing on the data to the PHP backend, I'm using the serialize() function. Problem is, serialize manages to grab...

Use of Iframe or Object tag to embed web pages in another

In a web-based system I maintain at work that recently went live, it makes an Object element to embed a second web page within the main web page. (Effectively the main web page contains the menu and header, and the main application pages are in the object) For example <object id="contentarea" standby="loading data, please wait..." ...

Detect iFrame embedding in Javascript

I have an application that has a certain page -- let's call it Page A. Page A is sometimes a top-level page, but also sometimes is embedded as an iframe within page B. All pages come from the same server and there are no cross-domain issues. I have a greasemonkey script that runs on page A. How can the greasemonkey script detect whether...

can a page always refused to be iframed or be part of a frameset if javascript is enabled?

When a page is iframed or included as part of a frameset, it can use Javascript to check so. (i think usually by if (self != top) top.location.href = self.location.href; ). Can the page always "jump back out" like that when Javascript is enabled? Is there a way to not let it jump back out? (suppose my page is iframing that page). ...

Why can't I tab between form elements within an iframe?

I have a page in a site that contains an iframe with a form in it. I can't change this but I do have full control over all of the JS that runs in the parent page and the iframe'd page. My problem is that when I have a form field focused in the iframe'd document, tabbing to the next field sends the cursor straight up to the address bar ...

how to get body content of iframe by javascript?

<iframe id="id_description_iframe" class="rte-zone" height="200" frameborder="0" title="description"> <html> <head> </head> <body class="frameBody"> test <br/> </body> </html> </iframe> Here,what I want to get is : test <br/> ...

IE6 prototype.js/window.js rendering issue...

Has anyone else ran into the issue where you created a prototype based window using the window.js library and it renders just fine in every browser except IE6? The test page I am trying to use to debug this issue can be viewed at rik.kmshooting.com/test.php As you can see, the window graphics, which are background-image values assign i...

jQuery iframe scroll event (IE)

Can't listen to the scroll event in Internet Explorer 7. I've tried: $("#myIframe").scroll(function() { alert('hi'); }) Works for FF: $($("#myIframe").contents().get(0)).scroll(function() { alert('hi'); }) Getting keypresses work: $($("#myIframe").contents().get(0)).keydown(function() { alert('hi'); }) ...

Detect if IFRAME's document is malformed

I'm loading a page into an IFRAME, and I would like to know if the download was incomplete .. and the HTML is malformed, and missing the closing tags like </body> and </html>. Is there any way to detect this in JavaScript? ...

Iframe Height

I am using Jquery to control the height of Iframe. jQuery("iframe",top.document).contents().height(); It's working for Increment of Iframe. When Iframe height decrease its not working.It returns the old value only. Anbody know why this is happening? ...

facebook-ish like iframe in ajax

Hello, Can anyone here expand on how I can create a frame within a page, like facebook has (when you click on a user's profile and your not friends with him, for example) in AJAX, or even better - does anyone know a framework that would do the AJAX dirty work, with me writing in PHP? Something like $frame = new iframeObject; $frame->s...

How to authenticate users across domains using ASP.NET and iframes?

I am doing an ASP.NET website for a client, who wants to make their reports page available via IFRAME on other "reseller" websites. The reseller websites are providing the same service with different branding. I need to avoid, where I can, requiring them to implement any code on their webserver to enable this - hence using iframes. A us...

How to access parent Iframe from javascript

Well, I have an IFrame, which calls a same domain page. My problem is that I want to access some information from this parent Iframe from this called page (from javascript). How can I access this Iframe? Details: There are severals Iframes just like this one, that can have the same page loaded, because I am programming a windows environ...

Get current URL from IFRAME

Is there a simple way to get the current URL from an iframe? The viewer would going through multiple sites. I'm guessing I would be using something in javascript. ...