jQuery Plugins » iframe https://jqueryplugins.info jQuery plugins, tutorials and resources Tue, 18 Oct 2011 17:13:24 +0000 en hourly 1 http://wordpress.org/?v=3.2.1 detect iframe height changes without iframe reload https://jqueryplugins.info/2011/10/detect-iframe-height-changes-without-iframe-reload/ https://jqueryplugins.info/2011/10/detect-iframe-height-changes-without-iframe-reload/#comments Sun, 09 Oct 2011 12:18:28 +0000 Admin https://jqueryplugins.info/2011/10/detect-iframe-height-changes-without-iframe-reload/ Post link: detect iframe height changes without iframe reload

In my web project, I have an iframe. It holds one graph, and a table holding values of graph. (graph = google graph api, table=datatables) Sometimes iframe content height changes...

]]>
Post link: detect iframe height changes without iframe reload

In my web project, I have an iframe.
It holds one graph, and a table holding values of graph. (graph = google graph api, table=datatables)

Sometimes iframe content height changes by its js applications, not by reloading an html.

So I need to detect those changes originating from js’s and increase i-frame size.

How can I detect those changes?

Here is my function that increases i-frame size. (For your reference)

  function update_height() {
            $  ('#iframe-1').load( function() {
            var $  ifbody = $  (this).contents().find( 'body' );
            $  ifbody.css( 'height','auto' );
            $  (this).height( $  ifbody.height() );
    });
   };

newest questions tagged jquery – Stack Overflow

]]>
https://jqueryplugins.info/2011/10/detect-iframe-height-changes-without-iframe-reload/feed/ 0
Jquery iframe with Modal Window pass parameter https://jqueryplugins.info/2011/10/jquery-iframe-with-modal-window-pass-parameter/ https://jqueryplugins.info/2011/10/jquery-iframe-with-modal-window-pass-parameter/#comments Thu, 06 Oct 2011 15:14:22 +0000 Admin https://jqueryplugins.info/2011/10/jquery-iframe-with-modal-window-pass-parameter/ Post link: Jquery iframe with Modal Window pass parameter

Hello I have a problem when I modify the input of a iframe that is open with SimpleModalWindow Plugin. I have the code: $ ("#imgTab").click(function(){ $ ("#iframeNode").contents().find("input[name='objParent']").val('val1'); $ ("#modalWindow").modal({ opacity:80,...

]]>
Post link: Jquery iframe with Modal Window pass parameter

Hello I have a problem when I modify the input of a iframe that is open with SimpleModalWindow Plugin.

I have the code:

 $  ("#imgTab").click(function(){
    $  ("#iframeNode").contents().find("input[name='objParent']").val('val1');
    $  ("#modalWindow").modal({
    opacity:80,
    overlayCss: {backgroundColor:"#fff"}
    });
});

the iframe is in a div

    <div id="modalWindow" style="display:none;background-color:#FFFFFF">
    <iframe src="biblioteca.php" height="600px" width="900px" id="iframeNode" name="iframeNode"></iframe>
</div>

And the element to modify into the iframe is:

<input type="text" name="objParent" id="objParent"/>

Thanks.

newest questions tagged jquery – Stack Overflow

]]>
https://jqueryplugins.info/2011/10/jquery-iframe-with-modal-window-pass-parameter/feed/ 0
In javascript, jQuery, or css how do I get a div or iframe to expand to fill rest of space https://jqueryplugins.info/2011/10/in-javascript-jquery-or-css-how-do-i-get-a-div-or-iframe-to-expand-to-fill-rest-of-space/ https://jqueryplugins.info/2011/10/in-javascript-jquery-or-css-how-do-i-get-a-div-or-iframe-to-expand-to-fill-rest-of-space/#comments Tue, 04 Oct 2011 17:13:54 +0000 Admin https://jqueryplugins.info/2011/10/in-javascript-jquery-or-css-how-do-i-get-a-div-or-iframe-to-expand-to-fill-rest-of-space/ Post link: In javascript, jQuery, or css how do I get a div or iframe to expand to fill rest of space

I have three iframes and I set the top iframe to 50px height and I set the bottom iframe to 50px, but I want the middle iframe to exand to...

]]>
Post link: In javascript, jQuery, or css how do I get a div or iframe to expand to fill rest of space

I have three iframes and I set the top iframe to 50px height and I set the bottom iframe to 50px, but I want the middle iframe to exand to fill the rest of the space. Is there a technique I can use to do this for any window screen size?
thanks.

example:

<iframe style="width:100%; height:50px;" src="headerstuff.asp" %></iframe>
<iframe style="width:100%; height:100%;" src="Content.asp" %></iframe>  <!-- height needs to fill -->
<iframe style="width:100%; height:50px;" src="footerstuff.asp" %></iframe>

newest questions tagged jquery – Stack Overflow

]]>
https://jqueryplugins.info/2011/10/in-javascript-jquery-or-css-how-do-i-get-a-div-or-iframe-to-expand-to-fill-rest-of-space/feed/ 0
Closing a prettyPhoto lightbox from inside iframe https://jqueryplugins.info/2011/10/closing-a-prettyphoto-lightbox-from-inside-iframe/ https://jqueryplugins.info/2011/10/closing-a-prettyphoto-lightbox-from-inside-iframe/#comments Mon, 03 Oct 2011 02:13:22 +0000 Admin https://jqueryplugins.info/2011/10/closing-a-prettyphoto-lightbox-from-inside-iframe/ Post link: Closing a prettyPhoto lightbox from inside iframe

Would like to run some Javascript in the iFrame which changes the height and width of the prettyPhoto lightbox window that it is in. This is an example of lightbox...

]]>
Post link: Closing a prettyPhoto lightbox from inside iframe

Would like to run some Javascript in the iFrame which changes the height and width of the prettyPhoto lightbox window that it is in.

This is an example of lightbox in action:
http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/

http://jsfiddle.net/txchou/GBmTL/

This is how to close the window:
window.parent.$ .prettyPhoto.close();

newest questions tagged jquery – Stack Overflow

]]>
https://jqueryplugins.info/2011/10/closing-a-prettyphoto-lightbox-from-inside-iframe/feed/ 0
Colorbox showing up beneath iFrame containing flash video https://jqueryplugins.info/2011/09/colorbox-showing-up-beneath-iframe-containing-flash-video/ https://jqueryplugins.info/2011/09/colorbox-showing-up-beneath-iframe-containing-flash-video/#comments Tue, 27 Sep 2011 09:20:08 +0000 Admin https://jqueryplugins.info/2011/09/colorbox-showing-up-beneath-iframe-containing-flash-video/ Post link: Colorbox showing up beneath iFrame containing flash video

I have a page that contains the colorbox plugin and it also has an iframe that contains a youtube embedded video. In FF my colorbox appears above the flash video...

]]>
Post link: Colorbox showing up beneath iFrame containing flash video

I have a page that contains the colorbox plugin and it also has an iframe that contains a youtube embedded video.

In FF my colorbox appears above the flash video only in chrome my iframes appear above the colorbox if this makes sense?

I’ve tried adding wmode=transparency to my flash videos and giving my colorbox a much higher z-index which both havent helped, is it possible to lay objects over an iframe?

newest questions tagged jquery – Stack Overflow

]]>
https://jqueryplugins.info/2011/09/colorbox-showing-up-beneath-iframe-containing-flash-video/feed/ 0
how to invoke jquery-ui dialog which is in iframe from parent page https://jqueryplugins.info/2011/09/how-to-invoke-jquery-ui-dialog-which-is-in-iframe-from-parent-page/ https://jqueryplugins.info/2011/09/how-to-invoke-jquery-ui-dialog-which-is-in-iframe-from-parent-page/#comments Mon, 19 Sep 2011 07:20:02 +0000 Admin https://jqueryplugins.info/2011/09/how-to-invoke-jquery-ui-dialog-which-is-in-iframe-from-parent-page/ Post link: how to invoke jquery-ui dialog which is in iframe from parent page

I am creating a form using Jquery-ui. Buttons are in parent page and codes are in another page, which is embeded into parent page through iframe. can anyone tell me...

]]>
Post link: how to invoke jquery-ui dialog which is in iframe from parent page

I am creating a form using Jquery-ui. Buttons are in parent page and codes are in another page, which is embeded into parent page through iframe. can anyone tell me how can I invoke dialog function of Jquery-ui from parent page’s button.

newest questions tagged jquery – Stack Overflow

]]>
https://jqueryplugins.info/2011/09/how-to-invoke-jquery-ui-dialog-which-is-in-iframe-from-parent-page/feed/ 0
Jquery iframe crossdomain dynamic height https://jqueryplugins.info/2011/09/jquery-iframe-crossdomain-dynamic-height/ https://jqueryplugins.info/2011/09/jquery-iframe-crossdomain-dynamic-height/#comments Thu, 15 Sep 2011 21:31:35 +0000 Admin https://jqueryplugins.info/2011/09/jquery-iframe-crossdomain-dynamic-height/ Post link: Jquery iframe crossdomain dynamic height

Is this even possible with jquery only with no bulky plugins? I know there are lots of plugins and alternatives, i’m searching for the shortest & most cleanest (preferably relying...

]]>
Post link: Jquery iframe crossdomain dynamic height

Is this even possible with jquery only with no bulky plugins?

I know there are lots of plugins and alternatives, i’m searching for the shortest & most cleanest (preferably relying on jquery)

Here basic jsfiddle to tryout your thoughts:
http://jsfiddle.net/3vPJd/

newest questions tagged jquery – Stack Overflow

]]>
https://jqueryplugins.info/2011/09/jquery-iframe-crossdomain-dynamic-height/feed/ 0
Adjust jQuery Fancybox’ iframe height dynamically according to changed contents inside https://jqueryplugins.info/2011/09/adjust-jquery-fancybox-iframe-height-dynamically-according-to-changed-contents-inside/ https://jqueryplugins.info/2011/09/adjust-jquery-fancybox-iframe-height-dynamically-according-to-changed-contents-inside/#comments Thu, 15 Sep 2011 12:15:23 +0000 Admin https://jqueryplugins.info/2011/09/adjust-jquery-fancybox-iframe-height-dynamically-according-to-changed-contents-inside/ Post link: Adjust jQuery Fancybox’ iframe height dynamically according to changed contents inside

I’m using jQuery Fancybox to display forms in a modal window. I’m using the following code: $ ("a.iframe").fancybox({ 'padding': 0, 'width': 650, 'showCloseButton': false, 'hideOnContentClick': false, 'transitionIn': 'elastic', 'transitionOut': 'elastic',...

]]>
Post link: Adjust jQuery Fancybox’ iframe height dynamically according to changed contents inside

I’m using jQuery Fancybox to display forms in a modal window. I’m using the following code:

$  ("a.iframe").fancybox({
'padding': 0,
'width': 650,
'showCloseButton': false,
'hideOnContentClick': false,
'transitionIn': 'elastic',
'transitionOut': 'elastic',
'onComplete': function () {
  $  ('#fancybox-frame').load(function () {
    $  ('#fancybox-content').height($  (this).contents().find('body').height() + 20);
  });
}
});

With the additional onComplete function, I’m able to adjust the height of the iframe accordingly to the height of the contents inside.

However, I’ve hidden a few elements with jQuery’s .hide() inside the iframe. Whenever I want to .show() these elements, the iframe itself doesn’t resize along with the extra height of the now visible elements.

How can I accomplish this? Thanks!

newest questions tagged jquery – Stack Overflow

]]>
https://jqueryplugins.info/2011/09/adjust-jquery-fancybox-iframe-height-dynamically-according-to-changed-contents-inside/feed/ 0
iFrame & Galleria Photo Gallery [makeshift multi album] — resize? fullscreen? jquery? java? please help? https://jqueryplugins.info/2011/09/iframe-galleria-photo-gallery-makeshift-multi-album-resize-fullscreen-jquery-java-please-help/ https://jqueryplugins.info/2011/09/iframe-galleria-photo-gallery-makeshift-multi-album-resize-fullscreen-jquery-java-please-help/#comments Thu, 15 Sep 2011 03:13:40 +0000 Admin https://jqueryplugins.info/2011/09/iframe-galleria-photo-gallery-makeshift-multi-album-resize-fullscreen-jquery-java-please-help/ Post link: iFrame & Galleria Photo Gallery [makeshift multi album] — resize? fullscreen? jquery? java? please help?

Just want to say first and foremost I appreciate any help on this. I’ve been kind of stuck all day. So what I have now (http://itsdoom.com/tumblrstylewebsite.html) is the newest thing...

]]>
Post link: iFrame & Galleria Photo Gallery [makeshift multi album] — resize? fullscreen? jquery? java? please help?

Just want to say first and foremost I appreciate any help on this. I’ve been kind of stuck all day.

So what I have now (http://itsdoom.com/tumblrstylewebsite.html)

is the newest thing I have been working on. its very rough as of now. But what I am having trouble with is the image gallery. If you click on ‘work’ it will scroll you down and you can see what I’m talking about. I wanted to have multiple albums so I placed the “Galleria” in an iFrame. with obvious problems. As I realize the way i have it setup now the Galleria / iframe is at 420px (h) x 820px (w), which looks good on the screen i’m working on now 1280×800, but if a user had a higher screen resolution, it would look too small, and with no ability to fullscreen the galleria, its a problem.

so I have a couple questions..

  1. Is there anyway to make the Galleria fullscreen not only in the iframe but in the whole browser?

  2. Is there anyway to either resize the iframe // content (Galleria) to reflect a users screen resolution?

If theres a way to fullscreen that would be the best option because someone with a higher resolution screen would just be able to hit that. if not, hopefully the other option is possible.

thanks again for the help.

newest questions tagged jquery – Stack Overflow

]]>
https://jqueryplugins.info/2011/09/iframe-galleria-photo-gallery-makeshift-multi-album-resize-fullscreen-jquery-java-please-help/feed/ 0
Change iframe source every 30 seconds. https://jqueryplugins.info/2011/09/change-iframe-source-every-30-seconds/ https://jqueryplugins.info/2011/09/change-iframe-source-every-30-seconds/#comments Wed, 07 Sep 2011 23:18:52 +0000 Admin https://jqueryplugins.info/2011/09/change-iframe-source-every-30-seconds/ Post link: Change iframe source every 30 seconds.

I have an iframe loaded on my webpage. After a 30 seconds I want to change the source of the iframe to load another site. This works great using jQuery...

]]>
Post link: Change iframe source every 30 seconds.

I have an iframe loaded on my webpage. After a 30 seconds I want to change the source of the iframe to load another site. This works great using jQuery (setTimeout function) but my issue is performance. It takes 15 seconds to load the page into the iframe when I change the source. I’m stuck with a blank screen until the content is loaded. Is it possible to only change the source once the page has loaded? Is there something I can do within jQuery to preload the webpage?

newest questions tagged jquery – Stack Overflow

]]>
https://jqueryplugins.info/2011/09/change-iframe-source-every-30-seconds/feed/ 0