iframe

Silverlight app in iframe access to parent window

Hi, I have Silverlight application test page named A.html hosted in an iframe which is an element of B.html, so is there a way for Silverlight app to access elements in B.html by referring something like HtmlPage.Document..? Thanks! ...

top frame in the site

hi i want to create a frame in my site like the google image section im using php for server side scripting ...

iframe undefined in Greasemonkey script

I have created a Greasemonkey script that runs fine in the firebug editor, with the Greasemonkey specifics removed, but not when I try to package it as a userscript. The Firefox error console is reporting that an iframe I am trying to use is undefined. I've cut the userscript down to a minimum case where it should be printing the ifram...

can't open iframe-window in jquery thickbox

Im trying to open a iframe thickbox window with the following url: < a id="thickbox2" title="Contact us" href="/send.php?keepThis=true&TB_iframe=true&height=370&width=300" class="blue_link">Contact us < / a > the thickbox black background loads and the progress bar is shown, but not the send.php file. please help! ...

Manipulate main frame from iFrame with jQuery?

Hey! I am cheating a bit with iFrames to create an illusion of AJAX-uploading. When the upload is complete I need to communicate information about the file that was uploaded to the main frame and list it. If I have the following UL in the main frame and a JS-variable in the iFrame named filename, how can I append file_name to the list?...

Trouble refreshing iframe with javascript

This used to work, but for some reason it doesn't anymore. I use a javascript to change the source of an iframe and then refresh it. The reason is I want to send a variable into the iframe before it is viewed. I added som debug code, and it shows "debug 1" but not "debug 2". What might be the issue? $("#upload_iframe").attr("src", "/e...

javascript dynamically add frame to frameset

The following favelet in IE is causing something similar to a document.write which is displaying [object]? I am attempting to dynamically add a frame to get javascript variables from another page to autopopulate a form. I cannot edit the source this must execute from a favorite or bookmark. javascript: var newFrame = document.createEl...

Calculating automatic IFrame height in IE/Firefox/Safari - what is the correct way?

Hi, I've browsed through many websites and in here, and could not find a final answer as each one has its errors. I need to have an automatic IFrame height, meaning if the content changes, the Iframe must adapt its height to the content. For this I need to see how to get the correct content height? As I understand the most correct way i...

Bookmarklet behind elements

I have a bookmarklet that will come up with a iframe that will load a web form I have. On most site, it works fine with the bookmarklet on top of every element in the current html page. But for certain sites with a lot of javascript loading (e.g. meebo.com), the loaded iframe will go below. How can i troubleshot this? Thanks. attached sc...

Close a bookmarklet after submitting form

This is related to question "http://stackoverflow.com/questions/1360618/bookmarklet-behind-elements". I want to either self close the iframe after form submission or if not possible, add a close button with the iframe to close it. my bookmarklet at the moment is javascript:(function(){var iFrame=document.createElement('IFRAME');iFram...

Can I access contents of an iframe from a subdomain if I use www. on the main domain?

I'm trying to access and edit the contents of an iframe. The iframe points to a page on a subdomain on my own domain. This is the javascript code I'm using, although it doesn't really matter. $('iframe').load(function(){ $('div.code textarea.html').val($(this).contents()[0].html()); }); When I run it it says I don't have permission ...

How do I grab the entire exact contents of an iframe and also be able to edit it?

I know you can get the innerHTML doing something like this, with jQuery, $('iframe').load(function(){ alert($(this).contents().find('body').html()); }); This gets the innerHTML of the body tag. But I want it all. I want the HTML tag and the doctype. The whole source code basically. And I want to be able to edit it as a whole as well...

insert simple text into iframe ? not .htm file

hi, is it possible to insert simple text into iframe ? trying to do small texteditor with this tutorial http://www.devarticles.com/c/a/HTML/Building-a-WYSIWYG-HTML-Editor-Part-1/ and want to have some text in iframe, which i can then change.. but i don't want to get that text from some external html file. it is possible to insert te...

how to do a URL masking in this condition?

I am using php, js, flash and mysql on 1 website. I want to do a URL masking using frameset(or maybe iframe). Scenario: An user click on a link, which direct him/her to my page with this url: www.domain.com/index.php?var1=string1&var2=string2 How to mask the url so that visitor can only see www.domain.com/index.php, but actually ther...

Can iFrame Scrollbars be skinned in webkit?

It's pretty well known by now that you can style scrollbars using the webkit specific CSS tags (::-webkit-scrollbar-button:start:decrement, ::-webkit-scrollbar-button:end:increment, etc. ). However, I've noticed that I cannot style the scrollbars attached to iFrames. Question: Is there a way to access and style the scrollbars on the iFr...

resizing a iframe when opening a pdf

I have a iframe that i want to open pdf's into from a list on the side bar. I have everything working but the pdf shows up in a little 500 by 200 box on the and wont "resize" to so the user can read the entire page. the live site is located here http://www.markonsolutions.com/opportunities.php and the code behind it is <!DOCTYPE htm...

Cross Domain URL Access from Iframe using Javascript

Hi, I need to access the Parent Domain URL from my Iframe which is in another domain. For example: example.com is my website which is in Iframe of another parent(google.com) domain. Here i need to access the parent domain URL in my example.com. i.e I need to get the URL google.com in my example.com. Parent dom...

Redirect user to parent page when iframe is accessed directly

I am using a jquery lightbox plugin (http://colorpowered.com/colorbox/) to load content using an iframe. The problem is when users access the page directly or via a search engine the page they are taken to is the iframe content itself and not the parent page which loads the iframe. How can i redirect users who access the iframe directl...

re-rendering a site within an iframe?

I want to make a site where there user can basically navigate the web from within an iframe. The catch is that I'd like to be able to have more control over what is rendered within the iframe. Specifically, I'd like to be able to filter out images or text, disable forms etc. I'd also like to be able to gather feedback such as what lin...

What is the problem in this JavaScript code?

var urlname= '/a/b.php?company_name='+company_name+'&series='+series; document.getElementById('frame2').innerHTML='<IFRAME HEIGHT="600px" WIDTH="100%" NORESIZE="NORESIZE" SRC="'+urlname+'" NAME="aol" FRAMEBORDER="0" ALIGN="ABSBOTTOM" scrolling="no" id="a1" name="a1" onload="Javascript:heights('a1')"></IFRAME>'; I'm using this code but ...