This issue isn't very rare and there are many solution proposals around, but all I've found require some sort of access to the code of the iframe content. So this is the situation: I have a webpage which contains an iframe. The iframe contains another webpage, from a different domain, which content changes with interaction. Now, sometimes the allocated static iframe height is too much, and I get a lot of while space under the content. Sometimes it is too little, and some of the content of the iframe gets cropped out. And, sadly, I do not have access to the source code of the iframe content, so solutions like PostMessage are not an option. I am trying to figure out if JSONP is an option, but I'd like to ask if anyone had to deal with a similar issue before, and how they solved it. Any help is greatly appreciated
14050
I am working on an iGoogle-like application. Content from other applications (on other domains) is shown using iframes.   How do I resize the iframes to fit the height of the iframes' content?  I've tried to decipher the javascript Google uses but it's obfuscated, and searching the web has been fruitless so far.  Update: Please note that content is loaded from other domains, so the  applies.
113926
I tried to make a iframe with a drupal page but I received the following message:      Multiple "Refused to display (page adress) in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'."   Then, I tried to change the header of response in page controller using  $response-&gt;headers-&gt;set('X-Frame-Options', 'GOFORIT');  And I received the following message     Multiple 'X-Frame-Options' headers with conflicting values ('GOFORIT, SAMEORIGIN') encountered when loading '(page adress)'. Falling back to 'DENY'.   Drupal core puts the following code in all responses.  $response-&gt;headers-&gt;set('X-Frame-Options', 'SAMEORIGIN', FALSE);  So, how can I override the X-Frame-Options header for only this response to embed this page in other sites?  I'm using Drupal 8.0.0.
49844
I use \documentclass{book}.   If I use \flushbottom, I get messages of the sort Underfull \vbox (badness 10000) has occurred while \output is active []. See . These messages disappear when I use \raggedbottom but then of course the height of page content varies form page to page.   So there seems to be no optimal solution but a trade off between to "evils" ... What is the point of view of LaTeX pros on this matter? Which option should be chosen in this situation?
82907
For about 2 weeks, multiple people (around 10 that I know of) in our company are having trouble accessing Stack Overflow; independently of the browser, and on Linux as well as Windows. The symptom is that assets loaded from cdn.sstatic.net keep waiting forever or until they time out.   On my machine the status is that at some point those requests time out and a version of the page without any images or CSS appears.  For some Windows users reboots help, for others it doesn't.   Meta Stack Overflow (now Meta Stack Exchange) always loaded for me.  A workaround for my machine was to disable IPv6 temporarily on Linux with the command echo 1 | sudo tee /proc/sys/net/ipv6/conf/all/disable_ipv6.  Note that no other site (that I visit) has been affected like this.  Update 2013-08-12: our network guy did some checking and insists the problem lies with Cloudflare. We seem to have issues when trying to connect to them with IPv6. We can't go around and disable our IPv6 Support since we need it for our internal infrastructure. We employ the following workaround (sadly only works with Firefox):   Go to about:config find the configuration key called network.dns.ipv4OnlyDomains Set it to the following list of domains (or add them if you already have something in this key): cdn.sstatic.net,www.cloudflare.net,cdn-careers.sstatic.net
98598
My ISP has a bad habit of putting every page I visit into an iframe so they can overlay it with their commercials etc..  (I'm guessing they are using a transparent proxy to do it)  Is there an add-on that can remove the frames or block the attempt to do so?  Something like AdBlock does not work in this case.
59623
I have a blog that I often need to insert iframes into posts for various reasons (don't ask why just trust me!)  When I use the "visual" view to edit my posts the WYSIWYG constatantly strips out my iframes ...  I know I can keep the iframes in the post if I use the "html" view and only view/save from the "html" view ... however I'd really like to be able to use the normal WYSIWYG  to edit my post without having to resort to the "html" view.  Is there anything I can do to disable this behavior? I've seen , that suggests editing wp-includes/js/tinymce/tiny_mce_config.php, but I'd really rather avoid doing something like that that would likely just break in a upgrade!
108009
Does anyone know how to get the HTML out of an IFRAME I have tried several different ways:  document.getElementById('iframe01').contentDocument.body.innerHTML document.frames['iframe01'].document.body.innerHTML document.getElementById('iframe01').contentWindow.document.body.innerHTML   etc
102224
I have found that for only one page (so far) the spacing between the header and content is different from the spacing on all the other pages. You can see this behavior in the images below (from pages 2 and 3 of the document):     My .tex file contents are shown below.  \documentclass[a4paper]{report} \usepackage{fullpage} \usepackage{lipsum} \usepackage{fancyhdr} \pagestyle{fancy} \setlength{\headsep}{0.5cm}  \begin{document} \renewcommand{\headrulewidth}{0.4pt} \renewcommand{\chaptermark}[1]{\markboth{\thechapter. #1}{}} \fancyhead[L]{\bfseries \leftmark} \fancyhead[R]{\bfseries \rightmark}  \chapter{Version Control} \lipsum \lipsum \lipsum \lipsum  \end{document}
36140
User  joined 2 days ago and asked  about placing a div over an iframe "from Photosynth.net". A few hours later  (who joined 7 days ago) asked  about putting a div over an iframe, showing the source of the iframe as being from photosynth.net 1 hour later user  (who joined 3 days ago) posted  to that question; summarized: "thanks all for reply and sorry for miss understanding [...] wiating the answer and thanks".   Similar questions, English usage, rep, joining time frame, and ethnic usernames is not much to go on. As a non-moderator can I see IP addresses? Is there anything that should be done about these possible duplicate accounts?
93817
There is an alignment issue in the  page, under the Tags section the Add buttons has extra height.  Screenshot for reference:        The alignment issue is in all the Stack Exchange main and meta sites. Not sure this is due to the impact of the recent .
84660
I did a search and i found a link to my site... twice. They are exactly the same except one is www and the other is static. How do i tell google to ignore everything in my static domain?
8738
I have a layout that is working, but it has one very annoying problem.. when the content is taller than the screen, the background stops.  This is the desired layout in bad-ASCII-art format:  _____________________  _ |    | long    |logo|   | |    | content |    |   | |    |         |    |   | |    |         |    |   | |grad|         |grad|   | Viewport |    |         |    |   | |    |         |    |   | |    |         |    |  _| |    |         |    | |    |         |    | _____________________  |2em| &lt;-20em-&gt;| 2em|   ..or with short content..  _____________________  _ |    | short   |logo|   | |    | content |    |   | |    |         |    |   | |    |         |    |   | |grad|         |grad|   | Viewport |    |         |    |   | |    |         |    |   | |    |         |    |   | |    |         |    |   | _____________________  _|   Basically it looks like a single column, with a glow as a column either side. Over the left-glow is a logo. When the content is short, it is still the full-height.  I have tried using the , which fixes the middle column, but then the gradients only extend as far as the content (in the left column, a single &amp;nbsp;, in the right column the logo)    Here is what the layout looks like:    And the problem (when the browser window is shrunk vertically):    Finally, the problem HTML/CSS,
102812
&lt;div class="subheader"&gt;         &lt;h1&gt;         &lt;/h1&gt; &lt;/div&gt;   .subheader has style border-bottom: 1px solid #e4e6e8;.  The bottom border should be below the whole title (I guess, the point is to separate the whole title). But the height of this div is hardcoded height: 40px;.  Shouldn't it be like this? (the screenshot with height: 80px;).
26508
I have an SP2013 wiki page that I want to use a jQuery accordion on.  Just with some static content, not pulling any information from anywhere in SharePoint.  I created the page, inserted a script editor web part at the top, and inserted this snippet:  &lt;script src="//code.jquery.com/jquery-1.10.2.js"&gt;&lt;/script&gt; &lt;script src="//code.jquery.com/ui/1.11.2/jquery-ui.js"&gt;&lt;/script&gt; &lt;script&gt;     $(function () {         $("#accordion").accordion({collapsible: true, active: false, icons:false });     }); &lt;/script&gt;   Then, I put the cursor under the script editor web part, and clicked on "Edit Source".  Then underneath the HTML that represents the script editor, I put this HTML (basically the jQuery accordion demo HTML):  &lt;div id="accordion"&gt;    &lt;h3&gt;       Section 1    &lt;/h3&gt;    &lt;div&gt;       &lt;p&gt;Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum sit amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo ut odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque vulputate.&lt;/p&gt;    &lt;/div&gt;    &lt;h3&gt;       Section 2    &lt;/h3&gt;    &lt;div&gt;       &lt;p&gt;Sed non urna. Donec et ante. Phasellus eu ligula. Vestibulum sit amet purus. Vivamus hendrerit, dolor at aliquet laoreet, mauris turpis porttitor velit, faucibus interdum tellus libero ac justo. Vivamus non quam. In suscipit faucibus urna.&lt;/p&gt;    &lt;/div&gt;    &lt;h3&gt;       Section 3    &lt;/h3&gt;    &lt;div&gt;       &lt;p&gt;Nam enim risus, molestie et, porta ac, aliquam ac, risus. Quisque lobortis. Phasellus pellentesque purus in massa. Aenean in pede. Phasellus ac libero ac tellus pellentesque semper. Sed ac felis. Sed commodo, magna quis lacinia ornare, quam ante aliquam nisi, eu iaculis leo purus venenatis dui.&lt;/p&gt;    &lt;/div&gt;    &lt;h3&gt;       Section 4    &lt;/h3&gt;    &lt;div&gt;       &lt;p&gt;Cras dictum. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aenean lacinia mauris vel est.&lt;/p&gt;       &lt;p&gt;Suspendisse eu nisl. Nullam ut libero. Integer dignissim consequat lectus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.&lt;/p&gt;    &lt;/div&gt; &lt;/div&gt;   After I saved the page, the accordion collapsed initially (as it is supposed to), but clicking on any of the headers does not expand the section.  If I go back into edit mode for the page, it works as expected - clicking a header expands the section.  Save it again, and it stops working.  What am I missing?  I don't think what I'm trying to do is all that complicated...  EDIT 12/8: Ok, so I put the jQuery and jQuery UI scripts in the site's Site Assets folder, and the behavior is the same -- the scripts do not get loaded in IE or Firefox unless the page is in Edit mode.  Incidentally I think the other script snippet, where I hook up the accordion, is also not getting loaded unless the page is in edit mode.  The reason I think this is that I changed the way I referenced the main jQuery script (to something that didn't work), and the debugger halted on $(function () { ...., saying $ was undefined.  So if jQuery is not loaded, and the debugger thinks $ is undefined, at least it's hitting that section of code.  Which makes me think that in non-edit mode, not only is jQuery not getting loaded, but that section of script is not getting loaded either, because the debugger is not choking on $.  Can anyone provide any insight as to why the Script Editor web part seems to be not working in IE and Firefox?  (Because apparently in Chrome it works fine.)
30383
Consider the following document.  \documentclass[12pt,a4paper]{article} \usepackage{lipsum} \pagestyle{empty} \begin{document} \begin{minipage}[t]{\textwidth}   \lipsum[1] \end{minipage} \medskip {\large\scshape\bfseries\itshape Lorem Ipsum} \medskip \hrule \medskip \lipsum[2] \end{document}   When I compile it with pdflatex it produces the following output.    Why is there no space after my minipage but before my text? I put a \medskip in between them.  \end{minipage} \medskip {\large\scshape\bfseries\itshape Lorem Ipsum} \medskip   It seems that the \medskip before and after the text is being combined into one. How do I fix this?
89359
I have used simple code to upload File.   Now My page is giving me the following error:      Maximum view state size limit (135KB) exceeded. Actual view state size for this page was 838.719KB     I have tried making all variables Transient  Removed PageBlock   Instead of coming on this error page - I want to show an Error Message like "Too big File. Upload files having size less than 2 MB."    How can I achieve this. Any Help or Any other suggestions ?  Visualforce Code :       &lt;apex:page standardController="Contact" showHeader="true" extensions="PhotoUploadController"&gt;   &lt;apex:sectionHeader title="Upload photo of {!obj.name}"/&gt;        &lt;apex:form &gt;     &lt;apex:pagemessages /&gt;         &lt;br/&gt;         &lt;apex:outputText &gt;&lt;b&gt;1. Select the photo&lt;/b&gt;&lt;/apex:outputText&gt;&lt;br/&gt;&lt;br/&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;         &lt;apex:outputText &gt; Click the &lt;b&gt;"Choose File" &lt;/b&gt;to find the photo.&lt;/apex:outputText&gt;&lt;br/&gt;&lt;br/&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;         &lt;apex:inputFile title="Upload Photo" contentType="{!objAttach.ContentType}" value="{!objAttach.body}" fileName="{!objAttach.name}" id="file"&gt;&lt;/apex:inputFile&gt;         &lt;br/&gt;&lt;br/&gt;&lt;br/&gt;         &lt;apex:outputText&gt;&lt;b&gt;2. Upload Photo&lt;/b&gt;&lt;/apex:outputText&gt;&lt;br/&gt;&lt;br/&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;         &lt;apex:outputText &gt;Click the &lt;b&gt;"Upload Photo"&lt;/b&gt; button.&lt;/apex:outputText&gt;&lt;br/&gt;&lt;br/&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;         &lt;apex:commandButton value="Upload Photo" action="{!savePhoto}"/&gt;&lt;br/&gt;&lt;br/&gt;     &lt;/apex:form&gt;    &lt;/apex:page&gt;   Controller Code :   public with sharing class PhotoUploadController {     public Attachment objAttach{  get {                                         if(objAttach== null)                                           objAttach= new Attachment();                                         return objAttach;                                      }                                    set;                                  }      transient Public Contact obj{get;set;}       public PhotoUploadController(ApexPages.StandardController controller){         objAttach=new Attachment();         obj= (Contact)controller.getRecord();         if(obj.id!=null){             obj= [select id,name from Contact where id=:obj.id];         }      }       public pageReference savePhoto(){           try {                 transient String contentType=objAttach.ContentType;                  if(contentType == 'image/jpeg' || contentType== 'image/png' ){                      if(objAttach.body!=null &amp;&amp; objAttach.name!=null){                         objAttach.parentId=obj.id;                                                try {                              upsert objAttach;                              obj.Image_URL__c=URL.getSalesforceBaseUrl().toExternalForm()+'/servlet/servlet.FileDownload?file='+objAttach.id;                              objAttach =null;                              upsert obj;                              obj=null;                         }catch (DMLException e) {                             ApexPages.addMessage(new ApexPages.message(ApexPages.severity.ERROR,'Error uploading attachment'));                             return null;                         }finally {                           objAttach.body = null;                         }                       }                   return new pagereference('/'+obj.id);                                   }else{                       ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.ERROR,'Please, Upload image file with extension .JPG or .PNG'));                       return null;                }            }            catch(Exception e){                  ApexPages.addMessages(e);                  return null;            }                     } }
97156
This one's a bit weird. Any time I view a question through a direct link to one of its comments (Whether through an inbox notification, an outside link, or just clicking the time on a comment on a page I'm already on), the page loads up with the title whole content area (answers, vote buttons, sidebar and all) aligned weirdly. Once I reload the page through any other link (and thus get rid of the #comment bit), it looks good again.    System Info: Win7, IE11, no toolbars, no add-ons, no userscripts, etc.