iframe

How can you access an external iframe's contents via the DOM/Javascript?

I have a page thusly: <html> <body> <iframe src="local.html"></iframe> <iframe src="http:www.google.com"></iframe> </body> </html> I've used the DOM to access the first iframe as a test (node.documentWindow) but when I try similar on the external iframe Firebug reports that access is denied. I suspect this is ...

Reinventing the wheel -a WYSIWYG Editor

I dont know whether I am reiventing the wheel. I need to design an online WYSIWYG where users can make one/two/three-column layout page.The WYSIWYG should adjactly show the contents in design mode as well as preview mode.Therefore, the WYSIWYG should also have the supports for Header and Footer too.Therefore, the WYSIWYG will have at le...

jQuery UI dialog + WebKit + HTML response with script

Once again I am faced with a great problem! :) So, here is the stuff: on the client side, I have a link. By clicking on it, jQuery makes a request to the server, gets response as HTML content, then popups UI dialog with that content. Here is the code of the request-function: function preview(){ $.ajax({ url: "/api/builder...

how to create an "briefing" iframe on top of the page

Hi, The purpose is to let people embed my iframe at a certain size say 100*100, but then per user clicks this iframe should resize itself to the page size and back. This should be independent of the structure of the HTML embedding the iframe (if possible). Is it doable? Guy ...

iframe can't be as wide as its jQuery dialog container

Here is my test JavaScript for you to reproduce the problem: You will see iframe width is just about half of dialog wide. It seems that jQuery change iframe width to 'auto' instead of using the value I indicate. <html> <head> <link rel="stylesheet" href="./styles/smoothness/jquery-ui-1.7.2.custom.css" type="text/css" media="screen"...

Detect Click into Iframe using JavaScript

I understand that it is not possible to tell what the user is doing inside an iframe if it is cross domain. What I would like to do is track if the user clicked at all in the iframe. I imagine a scenario where there is an invisible div on top of the iframe and the the div will just then pass the click event to the iframe. Is somethi...

Using an iframe in jquery.simplemodal, the iframe reload when the popup is closed

var pt_popup_options = {}; function pt_popup_iframe(sURL, sOkFunction) { pt_popup_okfunction = sOkFunction; $("#pt_msgBox").css('width', '700px'); $("#pt_msgBox").css('heigth', '500px'); $("#pt_msgBox > p").html('<iframe style="width: 696px; height: 496px;" src="' + sURL + '"></iframe>'); $("#pt_msgBox").modal(pt_pop...

Want to play mutiple videos in the same space of the page accordingly in html page

If i click video1 that will play on top means, if i click video2 tat ll play on the same space. Can anyone help me with iframe codes? ...

How To Select A Range in an Iframe With "Start" and "End" in Firefox like "selectionStart" from inputs element

Hi, for Internet Explorer, I have the current code to select a range in an iframe with desingMode setting to on: var Range = window.document.selection.createRange(); var obj = { start: 3, end : 6} Range.collapse( true ); Range.moveStart( 'character', obj.start ); Range.moveEnd( 'character', obj.end - obj.start );...

[Jquery] Add event to iframe body

Hello everybody. I am setting up a own made wysiwyg plugin for jQuery. He is almost finished but know i want to add a keyup event to a iframe with designmode on. But i can't get it worked. I tryied almost everything a found on the internet. The class of the wysiwyg iframe with designmode is .dhwysiwyg. I though the next code will work: ...

SSL iframe is embedded on other web site

Iframe from domain with SSLcertificate will be embedded on other site (foo.com). Must foo.com have SSL cerificate? If foo.com has SSL certificate, will it be an security error? foo.com has SSL certificate for foo.com, but iframe domain has other SSL certificate. If foo.com hasn't got SSL certificate, will it be an security error? ...

How to detect if a user has logged in to flickr?

Hello, What is the right way to find out if a user has logged in to Flickr? I have an iframe in my application which lets user's download their images from Flickr. But if the user is not logged into flickr, then flickr redirects me OUT of the iframe to the yahoo home page. I would like to do the following: - Check if the user has logge...

embedded iframe form used to upload files. Doesn't work on first submit, works on second.

I have an embedded iframe form which takes a file from a type="file" form field and uploads it using a progress bar: <form action="sell_upload.php" method="post" id="uploadform" enctype="multipart/form-data"> <input type="hidden" name="UPLOAD_IDENTIFIER" id="progress_key" value="<?= $uuid ?>" /> <input type="hidden" name="uploa...

How can I "lock" facebook into an iFrame?

I play some of the games on facebook and I was wondering if there is a way for me to create a simple HTML file with the game in an IFRAME. Ive been tinkering with it and can't seem to get it to display correctly and facebook breaks out of the frame after a bit. ...

Cross-domain ajax - would this method work

I've been thinking for a while if there's a way to get cross-domain ajax (using XML, not JSON) to work. Can anyone see any reason why the following wouldn't work: Create an iframe Load the url of the ajax call in the iframe Use javascript to get the content of the iframe (this won't be asynchronous, but could using setTimeout(fun...

How to run dynamically loaded js file in iframe?

I have the following: $(document).ready(function() { var myIframe = document.getElementById('myIframe'); var element = myIframe.contentDocument.createElement('script'); element.setAttribute('src', '/javascripts/library/jquery/jquery.min.js'); myIframe.contentWindow.document.getElementsByTagName('head')[0].appendChild(elemen...

Data mining from iframes

I am interested in developing some javascript that resides as browser bookmark that can mine data from nested iframes and AJAX the data back to a remote server. A small collection such scripts would be used to coordinate player stats and attack strategy for a popular online game. I am a novice javascript programmer and don't know if th...

Getting CSS from parent on an iFrame

I am using a phpbb3 forum with a bbcode to insert an iframe. I want to use the css from the forum for the iframe. I tried some code I found here but it isn't working. I might be doing something wrong but I'd love to get this working, especially since users can change the forum css. The forum is: botdls.prophbb.com and the iframe is the "...

How to implement "Invite Users" functionality at Facebook (iFrame/ASP.Net)?

Very simple, I want to implement the famous Invite Friends button at my application. Because it's an iFrame I can use FB.Connect methods or XFBML. Can anyone suggest a way to do it in either of these techniques? ...

Iframe: help with background

Hello all, On my website I have a page with a standard background. I want this page to load in an iframe without the background from the original page in another section of my site. Is this possible? What is the syntax for this if it is possible. Thanks in advance for the help ...