iframe

Accessing parent window variable from an cross-domain iframe

Inside http://mydomain1.com/index.html <html> <body> <script type="text/javascript"> var a = 1; </script> <iframe src="http://domain2.com/test2.html"&gt;&lt;/iframe&gt; </body> </html> Inside http://domain2.com/test2.html <script type="text/javascript"> alert(parent.a); // forbidden </script> Any work arounds? ...

Embedding google map in static FBML pages

Hi folks, I am looking out for a way to embed a google map into a static fbml tab in one of my fan pages. I think few saw FB has scrapped of iframe support for static fbml and stuff. I want to embed the map wthout any user actions involvement. I am wondering how to do this? Could some one help please? Thanks, J ...

How can i control page throught javascript inside an iframe of that page?

Hi all, I have an iframe with Js code to run, and i wan't to control the iframe DOM options and css style. How can i do it? If you wan't to use jQuery, thats ok, but i preffer pure javascript... Things that i want to modify: - frameborder - css styles (float, display, position, overflow) - no scrolling bar EDIT: The code run's inside t...

Twitter OAuth callback issues for web widget

Our website lets users create small widgets that can be embedded on other third party sites. When an end-user interacts with our widget on some site, we want to post a twitter update on his/her behalf and then display a message to the user on the widget itself(provided the twitter update was successful). We've been using the twitter api ...

How to build an iframe page that searches and displays multiple sites?

I'm trying to build a page similar to www.bing-vs-google.com, but instead of bing and google, I want to populate it with several of my company's internally-used sites. This would function as a "universal search" for our employees to search across a variety of sites (all of which pass search queries via URL). Has anyone seen or done thi...

Disable JavaScript in iframe/div

I am making a small HTML page editor. The editor loads a file into an iframe. From there, it could add, modify, or delete the elements on the page with new attributes, styles, etc. The problem with this, is that JavaScript (and/or other programming languages) can completely modify the page when it loads, before you start editing the elem...

how to fix iframe load never terminating the browser visual spinner and 'Transfer ...' status

I have pages loading json into hidden iframes from javascript. The Firefox browser seems to never acknowledge fully receiving the iframe content, and reports 'Transferring data from ...' on the status line, and shows the twirly 'busy' icon on the tab, indefinitely. I am using jQuery to bind the 'load' handlers, and would prefer a sol...

How to call javascript function inside an adjacent iframe

I have an html page where I have this layout essentially: <html> <body> <!-- iFrame A --> <iframe></iframe> <!-- iFrame B --> <iframe></iframe> </body> </html> In IFRAME "B", I'd like to call a js function in IFRAME "A", which will ultimately change the window.location property and redirect the page. I have jquery at my disposal as ...

How do I include a single Google Calendar event as an iframe (or similar)?

We're using Google Calendar in our company, and I'd like display single events (with attendees etc) on pages in our intranet. Is it possible to fetch a nicely formatted event and place it inline on our site somehow? I've tried putting the direct link to an event on Google Calendar in an iframe, but this just redirects the whole page to...

jQuery - Get URL of iframe AFTER redirection on same domain

Using Jquery, how can I get the URL of an iframe after redirection has occurred to a URL in the same domain? ...

Is it a case of cross-domain when embedding pages from localhost into an iFrame which is contained in a page from foo.com?

hi all, As title, please kindly advise. Many thanks. William Choi ...

How can I handle errors in loading an iframe?

I have an <iframe> that other sites can include so their users can POST a form back to my site. I'd like to handle gracefully the cases where my site is down or my server can't serve the <iframe> contents (that is, a response timeout or a 4xx or 5xx error). I tried adding an onError to the <iframe> object, but that didn't seem to do any...

Access iFrame URL with JQuery / Javascript

I have a page like this... <div> <iframe id="mainContent"> <iframe id="littleBox"> </div> and I want to do this... $(".someButton").live('click', function() { alert(/*The URL That the Main Frame is ON*/); }); I found this: $("#mainFrame").get(0).location.href, but it doesnt work... Also, I need it to return the current ur...

Keeping an iFrame static while the window reloads? (creative thinking needed)

Here's my problem: I have a Flash object on my page. The user can change views within the Flash. [Not directly relevant but possibly useful: when this happens, the Flash creates a JavaScript event.] I'd like to create separate Disqus comment threads for each Flash view, and according to Disqus's customer support, this needs a unique UR...

How to add a click event to p elements in iframe (using jQuery)

How to add a click event to <p> elements in iframe (using jQuery) <iframe frameborder="0" id="oframe" src="iframe.html" width="100%" name="oframe"> ...

How do I call this jQuery function from an iframe?

I'm trying to call a jQuery popup window function from within an iframe. In my external .js which is included in my parent frame I have this: (function($){ $.fn.popupWindow = function(instanceSettings){ return this.each(function(){ $(this).click(function(){ $.fn.popupWindow.defaultSettings = { ...

Jquery .load issue when dealing with Iframes?

I use successfully the following code to load asynchronously some content into a web page: jQuery.noConflict(); jQuery("#boxasync").load("box.php", "", function(responseText, textStatus, XMLHttpRequest) { if(textStatus == 'error') { jQuery('#boxasync').html('There was an error mak...

Javascript function apparently not firing...

Hi! I have an <iframe> control on my page and I want to change it's target url (the url of the page displayed in the iframe) by a click on a hyperlink. The problem is that the iframe doesn't update on the click. I'm pretty sure I'm missing something, but I don't know what: <script type="text/javascript"> var source = document.getElemen...

Height iframe in div problem

I'm having troubles fitting the iframe in the exact height of the div. The problem isn't that is won't fill the complete div but it exceeds beyond the div. This is what i have now CSS *{margin:0;padding:0} html, body {height:100%;width:100%;position: relative;} #header { height:100px; width:100%; background-color:#FF0000; } ...

How to apply css to iframe content?

There are a few threads on this site discussing this topic, but none of the offered solutions worked for me. Can anyone please provide a solution that you tried and you know that it works? Thanks in advance. ...