Google Custom Search - Results in IE shifting page left - google-custom-search

I am having some issues with a google custom search implementation. I have it working perfectly in FF, Chrome, Safari in the development environment. However in IE when clicking a next page (number at the bottom) the page alignment is skewed.
I have uploaded the code into production environment on a text page so that you can see this first hand: http://www.brookson.co.uk/test99/tests/?q=tax (I have included the search param, as the search box is not currently linked to the google custom search.
Any help would be appreciated.

Related

How can I force an embeded PDF to display at "Page Width" zoom level?

I'm using embed to embed a pdf into my web page. I could also use object or iframe. I want the pdf to open full width of the page, which i have working. But I want the zoom level to be "Page Width". Ive seen several solutions for height, like #view=FitH and some for specific percentages, but not "Page Width"
Most PDF settings are browser specific and subject to user control so here a Chrome based Edge (on the left) and a Firefox based clone (on the right) the biggest problem noticed in these four types of loading is the lack of object support (totally missing in bottom right). Note:- I have security set so only the high speed secured Firefox based plugin viewer will show me PDFs inline without risk of running a script.
However in direct answer to the question not all browsers support the acrobat#tags but most will attempt #zoom=50% (and #page= except perhaps Safari?) whereas fit has frequently been an odd behaviour difference between all of the camps. I show the chrome result below.
the correct tag could be #FitW and that's what I used when chrome unsecured viewing is turned on

How to display Linked PDF documents in WebView Control

Using the Microsoft.Toolkit.Forms.UI.Controls.WebView in a winforms desktop application, PDF documents linked within the web page, do not display.
I have tried different websites with links to PDF documents. All behaved the same way-They don't display PDF documents. When I tried the same websites in the Edge browser, the linked PDFs display as expected. A link, from a client's web page, to a specific PDF document is as follows: https://xxxxxxxx.xxxxxxx.com/MetaViewer.php?view_id=&event_id=1423&meta_id=92158 (Client name removed for security) When I click on the link it fires the 'NavigationStarting' and the 'NavigationCompleted' event. I haven't been able to determine if other events fire.
WVAgendaPage.Settings.IsJavaScriptEnabled = True
WVAgendaPage.Settings.IsScriptNotifyAllowed = True
I take care if these two settings before the website is loaded.
Since links open and display fine in the Edge browser I was expecting the same behavior with the toolkit based on the Edge rendering engine.
Thanks for your help
RBO

Safari do not print Check Form properly where as Chrome does

When I print any Check Form, it opens as a PDF in the browser. It prints OK from Chrome but when I print it using Safari on MAC, it prints the same Check Form into two pages.
However, when I select the PDF or click on Check Form PDF and then print the Check Form using Safari, then it prints on single page, same like it prints from Chrome.
Any idea if there is any settings needs to be done in Safari for printing. Please suggest.
For printing always use PDF format if precise format matching is required:
On the workstation where it prints correctly, open the PDF and go into the print page setup then take note of all page settings, paper size, margins etc.. ask your technician to access page setup if you can't:
Be wary of any settings in page setup that attempts to resize the PDF before sending it to the printer:
Configure page setup (sometimes called print option) on Safari browser and macOS to match those that print successfully.
Links below are good starting points but actual configuration is dependent on OS and browser version. It's also out of scope of StackOverflow because it isn't a programming question. If you need help on configuring printers in Safari/MacOS and don't have a technician to do it, it would be better you ask on another stackexchange site, perhaps SuperUser would be the most appropriate:
https://support.apple.com/kb/ph25622?locale=en_US
https://support.apple.com/kb/PH21472?locale=en_US

Disable PDF printing in Firefox by web developer

I am developing a web page to show PDF (in .NET platform). The PDF is inside a iframe. One of the requirement is NOT allow client to print the PDF. I have already made the PDF to be password protected (with pdfsharp). I further hide the toolbar by setting toolbar=0. In Chrome & IE, this works fine. But for Firefox, the story is totally different.
In Firefox, the toolbar will be shown even append #toolbar=0 in the src link. Further, the password protected pdf can be printed by simply clicking the icon in the toolbar.
Can anyone suggest some ways to disable pdf printing in firefox.
Note: I need to show the PDF in the webpage. So, download the PDF is not a option.
You will not be able to control the toolbar or the ability to print (not all PDF viewers respect the permissions set by the password) if you rely on the native browser or OS level PDF viewer by using an iFrame. Different browsers will interpret those settings differently. Even different applications within the same browser will yield different results (Chrome vs Dropbox in Chrome)
You'll need to display the PDF using something like PDF.js or another such library if you want any kind of consistency in appearance and behavior.

Is it possible to have a hyperlink open in a new tab that is inside a pdf that is inside of a frame in classic asp?

I Have a classic asp site i am working on. The page has two frames one directly below the other. A Customer has to be able to view a pdf to continue onto the next page. To get to the next page they have to click on a hyper link inside of the pdf that is being viewed. If they cannot see the pdf then they have to download adobe reader which i have included a link to in the top frame.(The top frame has some text and the link) now the bottom frame(contains the pdf) this works fine except when i click the link that is in the pdf the page then opens in that same bottom frame that contained the pdf. It needs to be target _blank. Or whatever you would call it to basically either over ride the two frames and just open in the browser or open in a new tab or window which i cant get either to do. This problem is in IE and Firefox but in chrome it over rides the two frames and opens correctly. Is there any way to get this to occur in IE and Firefox?
I've found this resource about your issue:
http://forums.adobe.com/thread/853394
They say there's no target attribute to set. But they think (and i also think) that if you place a :
javascript:window.open('http://yoururl.com');
it should work, always if you can accept the security alert message (Abobe PDF is trying to execute a script... blah blah)
If your continue reading carefully it seems they solved the problem using Adobe scripting inside inDesign
Hope this helps...