[Question] Looking for Iframe/Jquery Solution. menu

User Tag List

Results 1 to 1 of 1
  1. #1
    DoxramosPS's Avatar Knight
    Reputation
    26
    Join Date
    Aug 2010
    Posts
    214
    Thanks G/R
    0/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Question] Looking for Iframe/Jquery Solution.

    Alright, so. I'm in the middle of working on a website and for some reason I can't get the iframes to autoresize based upon content. As far as I know it has been accomplished using a Jquery Plugin. If you can find error in this code please let me know.
    Code:
    <!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">
    <head>
    <script>
      $(document).ready(function () {
        $('iframe').iframeAutoHeight({debug: true});  
      });
    </script>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <link href="main.css" rel="stylesheet" type="text/css" />
    </head>
    
    <body>
    <div id="head-container">
      <div id="logo">
        <p>Logo Here</p>
        <p>Logo Here.</p>
        </div>
        </div>
      <div id="body-container">
        <div id="nav-container">
        <div id="navbar">Home</div>
        <div id="body-content"><iframe src="forum/index.php" class="auto-height" scrolling="no" frameborder="0"></iframe>
    <script>
      $('iframe.auto-height').iframeAutoHeight({minHeight: 240});
    </script></div>
        </div>
    </div>
    
    
    </body>
    </html>
    Okay, so I found one edit, but it still doesn't seem to be fixing my issue.
    Code:
     $('iframe.auto-height').iframeAutoHeight({minHeight: 240});
    Was changed to
    Code:
    JQuery('iframe').iframeAutoHeight({minHeight: 240});
    Unfortunately this does not fix the issue, so we now know it's not because it wasn't targeting it correctly.
    Last edited by DoxramosPS; 04-13-2012 at 12:49 AM.
    Mangos and Trinity Emulation
    Windows | Linux
    Under Development : morgangreen.org WoW CMS Site

    [Question] Looking for Iframe/Jquery Solution.

Similar Threads

  1. [Question] Looking for UI
    By Mitron in forum WoW UI, Macros and Talent Specs
    Replies: 10
    Last Post: 04-17-2009, 07:06 PM
  2. [Question] Looking for a terrain editor
    By Poorfox in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 07-03-2008, 09:16 AM
  3. [Question] Looking for a hack
    By hendoboi in forum World of Warcraft General
    Replies: 2
    Last Post: 06-30-2008, 09:47 PM
All times are GMT -5. The time now is 08:41 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search