I used Iframe in
<iframe id="ifr" src="{self.href}#toolbar=0" type="application/pdf" width="100%" height="500">
it will hide toolbar from google chrome but not from mozila firefox.how to hide toolbar from firefox
Related
Here's an interesting browser UX problem that I'm solving.
Let's say you click an anchor link in a browser and get transferred to www.example.com/#footer. Then you click "Home" button on your keyboard and your browser scrolls up to the top of site. If you reload your page now via F5, the URL will still have #footer in it (www.example.com/#footer) but the browser won't scroll down to #footer - the page will stay scrolled to top.
The question that I've is - is there a way to get browser to scroll to #footer when page reloads without JavaScript?
Here's HTML that illustrates the problem:
<html>
<body>
<div style="height: 2000px">
click here to go to footer
</div>
<div style="height: 300px" id="footer">
footer div (now scroll up and hit F5)
</div>
</body>
</html>
Load this page in your browser and click the link to footer. Then scroll to top, then reload the page. Your browser won't scroll the page to footer again even though it has #footer in the URL.
Similar effect happens if you simply scroll up a little bit and hit reload. When the page reloads it will stay where you left rather than going back to anchor.
I could solve it by adding scrollong in onload with JavaScript but I wonder if there is a pure browser solution to this? How do I make browser forget the position the page was at before I reload the page and make browser scroll to anchor in URL?
A user of one of my websites is reporting an alarming-looking frame content error on a page that embeds Google Maps. I have played with the security settings in IE9, IE10 and IE11 but have only been able to either display the embed without issue or display nothing (blank space where iframe should be.) What do I need to do in which version of IE to see this error?
Here is the embed in question (need to redact specific map.)
<iframe id="googlemap" width="640" height="480" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps/ms?t=m&msa=0&msid=1234.1234&source=embed&ie=UTF8&ll=37.996163,-96.855469&spn=33.053774,56.25&z=4&output=embed"></iframe>
Here is a screenshot of the error the user is receiving.
Open a new browser window, and pull down the "Tools" menu.
Select "Internet Options".
Click the "Security" tab, select the "Internet" icon, and click the "Custom Level" button.
Scroll down to the "Miscellaneous" section, find the "Launching programs and files in an Iframe" entry and select "Prompt".
Close all open Dialogs by clicking the OK buttons.
For the Save to Foursquare button
(https://foursquare.com/business/brands/offerings/savetofoursquare), Is there a way for the confirmation screen to popup as an external window instead of a modal window after clicking the button? Is there a property or option to do this?
I am currently embedding the Save to Foursquare button in an iframe, which prevents the modal window from displaying properly.
You can use the old foursquare button like this:
<iframe src="http://foursquare.com/button.html?vid=4c433baccc410f478fe5ad61&color=dark" allowtransparency="true" frameborder="0" scrolling="no" style="width:165px; height:25px;"></iframe>
vid is the id of the venue, the options for color are white, dark and blue, and you can use size=small for a smaller button
Can any one tell me how to disable "save as" and "print" option of browser menu bar?
if I go through File->Save As or Print, the document gets printed and saved.
I want to prevent this.
Can any one help me out in this issue?
Thanks in advance
<style type="text/css">
#media print{
body {display:none;}
}
</style>
The above code can be used to disable the user from printing the webpage.I have tested this code, its working fine for me in IE8, Chrome and Firefox.
I'm having some problems with panelPopup and IE8. When I set autoCentre="true" and positionOnLoadOnly="true", I expect the popup to appear in the center of the view port and stay put there. This works fine in Safari, Chrome and Firefox, but in IE the popup "follows the scroll", if you see what I mean. I.e if the page where the popup is displayed is longer than the popup the popup is re-centered when I scroll the page. Also, and this is a bigger issue - if the popup is longer than the page I can only scroll part of the way down it, then it's re-centered. This means I can never see the information at the bottom of the popup...
This is the code used to generate the popup:
<ice:panelPopup
id="popup"
positionOnLoadOnly="true"
autoCentre="true"
style="z-index:999; background: #FFFFFF;"
resizable="false"
draggable="false"
modal="true"
clientOnly="true"
visible="#{SomeBean.popupRendered}" >
Any ideas?
Thanks!
According to the documentation, the autoCentre option is supposed to keep it centered through scrolling and window resizing but dragging should disable it. Turning draggable to true might give you reasonable results because the user can drag it to a position they can see the entire popup.