Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 443975
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T21:13:28+00:00 2026-05-12T21:13:28+00:00

I’m trying to use jquery ui resizable with iframe. It simply does not work,

  • 0

I’m trying to use jquery ui resizable with iframe.

It simply does not work, I don’t see any handles at all. However the class ui-resizable is added.

Sample:
http://jsbin.com/uyolu

Is this normal? How do I fix? Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T21:13:28+00:00Added an answer on May 12, 2026 at 9:13 pm

    That resizable doesn’t work could be considered a bug. (Hint maybe file one?). But it is certainly disputable.

    For elements which don’t support child nodes there is a special check in the plugin

    if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)) {
    

    if this matches a wrapper div is automatically generated for you by the plugin.

    If you append iframe to this list

    if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img|iframe/i)) {
    

    The sample would work like provided by you.

    But iframe accepts children, the problem is you only seem them when your browser doesn’t support inline frames. You can check the following if your browser allows you to turn of iframe support (e.g. Opera)

    e.g. when your browser doesn’t understand iframes you would see a resizable element which says “hello”

    #iframeid { background-color:green; height:200px; width:400px}
    $("#helloiframe").resizable();
    <iframe id="iframeid" src="http://google.com" ><p>hello</p></iframe>
    

    But as most browsers understand iframes you don’t get to see the children of the iframe. The handles used by jquery resizable are a div which gets appended to the element so you don’t get see the handles.

    In the end I conclude that the resizable plugin in the special case iframe behaves correctly and you should just wrap your iframe in a div.

    Hope I was clear.


    The div showed the resizable controls for me. Only the iframe did not show the controls.

    The following works for me:

    • wrapped iframe in a div
    • made div resizable
    • wrapper div and iframe initial same width and height
    • pass iframe id in as option to resizable() {alsoResize: '#iframeid'}

    Check out http://jsbin.com/arato/ or the following.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
      <head>
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
        <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/base/jquery-ui.css" type="text/css" />
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js"></script>
        <title>Sandbox</title>
        <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
        <style type="text/css" media="screen">
          body { background-color: #000; font: 16px Helvetica, Arial; color: #fff; }
          #test { background-color: red; height: 200px; width: 400px; }
          #hello { background-color: blue; height: 200px; width: 400px; }
          #helloiframe { height: 200px; width: 400px; }
        </style>
        <script type="text/javascript">
          $(document).ready(function() {
            $("#test").resizable();
            $("#hello").resizable({ alsoResize: '#helloiframe' });
          });
        </script>
      </head>
      <body>
        <div id="test">Hello from JS Bin</div>
        <div id="hello">
          <iframe id="helloiframe" src="http://google.com"></iframe>
        </div>
      </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 228k
  • Answers 228k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I'm afraid that you simply can't do this in every… May 13, 2026 at 1:33 am
  • Editorial Team
    Editorial Team added an answer It also works fine for me. Perhaps you have some… May 13, 2026 at 1:33 am
  • Editorial Team
    Editorial Team added an answer Try compiling the expression with the Compile method then invoking… May 13, 2026 at 1:33 am

Related Questions

I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I want use html5's new tag to play a wav file (currently only supported
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
In order to apply a triggered animation to all ToolTip s in my app,
I have a French site that I want to parse, but am running into

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.