Note that there are some explanatory texts on larger screens.

plurals
  1. POresizing a iframe when opening a pdf
    text
    copied!<p>I have a iframe that i want to open pdf's into from a list on the side bar.</p> <p>I have everything working but the pdf shows up in a little 500 by 200 box on the and wont "resize" to so the user can read the entire page.</p> <p>the live site is located <a href="http://www.markonsolutions.com/opportunities.php" rel="nofollow noreferrer">here</a> <a href="http://www.markonsolutions.com/opportunities.php" rel="nofollow noreferrer">http://www.markonsolutions.com/opportunities.php</a></p> <p>and the code behind it is </p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; &lt;!-- Design by Free CSS Templates http://www.freecsstemplates.org Released for free under a Creative Commons Attribution 2.5 License --&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt; &lt;meta http-equiv="content-type" content="text/html; charset=utf-8" /&gt; &lt;title&gt;MARKON, Inc. - Professional Services, Personal Solutions&lt;/title&gt; &lt;meta name="keywords" content="" /&gt; &lt;meta name="description" content="" /&gt; &lt;link href="careers.css" rel="stylesheet" type="text/css" /&gt; &lt;/head&gt; &lt;body&gt; &lt;script type="text/javascript"&gt; var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); &lt;/script&gt; &lt;script type="text/javascript"&gt; try { var pageTracker = _gat._getTracker("UA-8011431-1"); pageTracker._trackPageview(); } catch(err) {}&lt;/script&gt; &lt;div id="header"&gt;&lt;/div&gt; &lt;div id="menu"&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="index.html" accesskey="1"&gt;Home&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="aboutus.html" accesskey="2"&gt;About Us&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="capabilities.html" accesskey="3"&gt;Capabilities&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="contracts.html" accesskey="4"&gt;Contracts&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="careers.html" accesskey="5"&gt;Careers&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="contactus.html" accesskey="6"&gt;Contact Us&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;div id="content"&gt; &lt;div id="colOne"&gt; &lt;h2&gt;Opportunities&lt;/h2&gt; &lt;IFRAME SRC="newpage.html" width="100%" height="100%" id="iframe1" marginheight="0" frameborder="0" "&gt;&lt;/iframe&gt; &lt;/div&gt; &lt;div id="colTwo"&gt; &lt;h2&gt;Careers&lt;/h2&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="opportunities.html"&gt;Opportunities&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="benefits.html"&gt;Benefits&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;h2&gt;Open Positions&lt;/h2&gt; &lt;?php $files = glob("./jobops/*.pdf"); sort($files); //print("&lt;br&gt;"+count($files)+"&lt;br&gt;"); print("&lt;ul&gt;"); foreach ($files as &amp;$file) { $Jobname =substr($file,0,strlen($file)-4); $Jobname = str_replace("./jobops/","",$Jobname); print("&lt;li&gt;&lt;a href=\"$file\" target=\"iframe1\"&gt;$Jobname&lt;/a&gt;&lt;/li&gt;"); } print("&lt;/ul&gt;"); ?&gt; &lt;/div&gt; &lt;div style="clear: both;"&gt;&amp;nbsp;&lt;/div&gt; &lt;/div&gt; &lt;div id="footer"&gt; &lt;p&gt;Copyright &amp;copy; 2009 &lt;a href="http://www.markonsolutions.com"&gt;&lt;strong&gt;MARKON, Inc.&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload