browser

How to determine if the user's browser can view PDF files

别来无恙 提交于 2019-12-19 17:34:18
问题 What's the best way for determining whether the user's browser can view PDF files? Ideally, it shouldn't matter on the browser or the operating system. Is there a specific way of doing it in ASP.NET, or would the answer be just JavaScript? 回答1: Neither, none, don't try. Re dawnerd: Plug-in detection is not the right answer. I do not have a PDF plugin installed in my browser (Firefox on Ubuntu), yet I am able to view PDF files using the operating system's document viewer (which is not Acrobat

Get Browser Tab Index/Id

你。 提交于 2019-12-19 16:55:02
问题 So in most current browsers there is the feature of Tabs, is there a way to get the Tab index? so Tab 1 has www.google.com opened in it and Tab 2 has www.google.com opened in it, is there a way to identify what the Tab index is? Pseudo Code: if($tab == 2) { alert "Tab 2 is active\n"; } if($tab == 1) { alert "Please use Tab 2 as this is Tab 1\n"; } Funny as everything I search for about tabs is related to the tab index of the webpage itself, sigh... 回答1: Strictly speaking. TABS are on the end

How to play .ts files (video/MP2T media type) in Browser?

空扰寡人 提交于 2019-12-19 13:48:25
问题 I have one .m3u file that points to several .ts files (all in akamai). Because we give to akamai a live stream, they convert it to these .ts files each of 10s. I see that the m3u files are easy to understand, but I can't find a browser based (flash, html5 or native plugin) player for these files. If I give to vlc the link of the m3u file, vlc plays all the .ts files one after another as if it where only one big file. I want to use flash or something similar to be able to play in browser, the

Computed column width is different than css declared width for column. How does browser decide width?

强颜欢笑 提交于 2019-12-19 13:30:13
问题 Let's say I have an html table with a css declared width of 750px. It has 5 columns and each column has a width of 50px, declared using css (all td's have a 50px width). Obviously, the sum of the columns' widths is 250px which is less than 750px. When the browser renders the table, each column has a different computed width. I have one column which has 5 spaces only but a computed width of over 100px ( a lot more than 5 's). All columns fit their included text plus some extra blank spaces. No

How to keep track of webpages opened in web-browser using Python? [closed]

房东的猫 提交于 2019-12-19 12:06:03
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 6 years ago . I want to write a Python script which can keep track of which webpages have been opened in my webbrowser(Mozilla Firefox 23). I don't know where to start. The standard webbrowser module of Python allows webpages to be opened but the standard documentation doesn't have anything

Compatibity Mode for IE 10 using meta tag

半腔热情 提交于 2019-12-19 11:47:48
问题 Basically I have this website that has been working very well in compatible mode IE7 for all versions of IE(I have used meta tag in IIS for this). Now issue is with IE10 where document mode is changing to IE Standards but Browser mode is not changing to be compatible. Can you please guide me to a solution for this. 回答1: Meta tag would change document mode for you whereas you still need to have fixed your application or server, this is a known issue. This would fix browser mode and combining

CSS - Background images not displaying properly on mobile browsers

穿精又带淫゛_ 提交于 2019-12-19 11:28:22
问题 The background images of a website I'm working on (http://tinyurl.com/ax68brt) are not displaying properly on mobile phone browsers. The problem occurs with the outheader, outbeurzen and outtwitter divs. The header background is not displayed in 100% width, and the backgrounds for the outbeurzen/outtwitter divs are not properly displayed either. What is going wrong here? Html: <div id="outheader"></div> <div id="outintro"></div> <div id="outbeurzen"></div> <div id="outfoto"></div> <div id=

Sign applet and deploy it in intranet

天大地大妈咪最大 提交于 2019-12-19 11:25:15
问题 i wrote a web application which is used in our intranet. I alswo wrote a small Java Applet to integrate with our windows desktops (opening applications and files). Of course i get a security warning everytime i access my web application. I've read on stackoverflow that it should be possible, to sign my applet and roll out the certificate to all my clients (Windows XP and Windows 7) to get rid of the securitywarning. Is there a tutorial how to do that? Can i do that without purchasing a

How to set the default browser home page (IE) with C#?

吃可爱长大的小学妹 提交于 2019-12-19 11:15:11
问题 How can I programmatically change my browser's default home page with C#? 回答1: Set it in this registry setting: HKCU\Software\Microsoft\Internet Explorer\Main\Start Page 回答2: See this, which is not in C#, but you should be able to work out the registry stuff in C# pretty easily. http://www.microsoft.com/technet/scriptcenter/resources/qanda/nov04/hey1108.mspx Please don't arrange for this code to run on my machine! 回答3: I'd hit the registry: For User Based Changes HKCU\Software\Clients

Set Browser Time zone (more than four letters) [duplicate]

ε祈祈猫儿з 提交于 2019-12-19 10:54:10
问题 This question already has answers here : How to use a custom time in browser to test for client vs server time difference (7 answers) Closed last year . SET TZ=AEST -9 "c:\Program Files (x86)\Mozilla Firefox\firefox.exe" Test against: https://whoer.net/ . Notice how it displays AES and not AEST and the -9 does not get recognized. Not really sure if there is a workaround for this and the fact you can change your OS time through your browser is amazing. But thought I'd ask, has anyone gotten