browser

How to test my application on older version of IE?

走远了吗. 提交于 2019-12-18 18:58:34
问题 I have installed IE8 on my system. I usually test my application on this browser, but the problem arises when i got to know that the client is using IE7. Now how can i test my application on IE7? One possible solution is to have dual booting on my system. So on version of Windows i can have IE7 and on another i can have IE8. But i really don't want to use this solution. Another possible solution is to use PC Emulator [ Don't know what is this, just heard about these ]. Using which i can have

Detecting Microsoft's edge or spartan with javascript

情到浓时终转凉″ 提交于 2019-12-18 18:46:46
问题 Is the user agent for Edge or Spartan browsers known already? Can anyone tell me how to detect this browser and diferentiate it from IE in advance of its release? 回答1: A simple google search found me the answer you are looking for: http://forum.piwik.org/read.php?3,125732 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36 Edge/12.0 Therefore you should match: "Edge\/\d+" 回答2: According to this answer: // Internet Explorer 6-11

in a controller in asp.net-mvc how can i get information about the users browser?

冷暖自知 提交于 2019-12-18 18:39:24
问题 I am logging errors on my asp.net-mvc site and I wanted to see if there is anyway to detect the users browser info (name, version, etc) as it seems like people are getting issue but its because they are using very old browser. This info would help me avoid debugging time if I know they are using a "Not supported" browser. 回答1: You may try the Request.Browser property. It will contain pretty much everything you might need about the client browser (assuming it is sending the UserAgent header

How do I set my development web browser in VS2010 RC?

。_饼干妹妹 提交于 2019-12-18 18:34:52
问题 I don't like to use IE for my system default web browser. but I do want to set IE as my browser in VS2010 because it works a little nicer for debugging and I like to develop to the lowest common denominator. (jab, lol)... anyhow, can I default to debugging against IE? I know in VS2008 you just had to "Browse With..." on an .aspx page. But that option doesn't exist in VS2010 RC . What gives? 回答1: This is for VS2008, but should apply just as well to VS2010. You have several options. Go to the

WebBrowser Control - Console Application - Events Not Firing

岁酱吖の 提交于 2019-12-18 18:30:23
问题 I have been navigating the various WebBrowser control stackoverflow questions, and I can't seem to find an answer to a problem I am having. I am trying to use the WebBrowser control to print a web page. Following MSDN's example, I have created the following console application: namespace WebPrintingMadness { using System; using System.Collections.Generic; using System.Text; /// <summary> /// The entry point of the program. /// </summary> class Program { /// <summary> /// The main entry point

Open Certificate Information from Web Browser Control

拥有回忆 提交于 2019-12-18 17:32:26
问题 Does anyone know how to open up the "Certificate Information" screen based on the SSL from the WebBrowser control? 回答1: This can be achieved by using a class called X509Certificate2UI . To make this class avalable to you, you need to add a reference to System.Security.dll In the X509Certificate2UI class you have a meyhod called DisplayCertificate() which takes an X509Certificate2 object as a parameter. When invoked, this method shows a dialog box displaying all cert information including

Webbrowser, detect if there is a PDF reader installed?

末鹿安然 提交于 2019-12-18 17:25:38
问题 Is there a way to check if the user has installed a PDF reader? Maybe with a ActiveX component? Could you please help me? 回答1: You can detect installed plugins with window.navigator.plugins This will return an array with details of installed plugins, but this will not work for Internet Explorer. When running this code, IE only returns an array with embed tags in the page. Thanks IE, so useful? Ok, let's try to work this out. The following function should work in all major browsers expect IE.

C# HTML from WebBrowser to valid XHTML

白昼怎懂夜的黑 提交于 2019-12-18 17:25:27
问题 So, we are using a webBrowser control in edit mode, to allow people to enter text, and then take that text and send it out to the server for everyone to see. IE, it's an HTML input box. The HTML output from that box isn't standard XHTML, given that it's just a webBrowser control, so i needed a method to convert any bad HTML to XHTML. I read up on SGML, and subsequently have used: private static string Html2Xml(string txtHtmlString) { var xhtml = new Sgml.SgmlReader(); var sw = new

JavaScript libraries to detect browser capabilities/plug-ins

爷,独闯天下 提交于 2019-12-18 17:14:49
问题 I'm trying to find a (preferably open source) JS library to determine as much information as possible about the user's Web browser environment. I know it's possible to get such data as: Screen resolution, User-Agent, Accept-Language and other preferences usually sent in HTTP headers, Installed plug-ins (through navigator.plugins ), Whether a particular browser feature is supported (SVG support, DOM capabilities) What I'm looking for is a library which gathers such information and makes it

How to check if an event handler exist using jQuery or JS?

南笙酒味 提交于 2019-12-18 17:05:23
问题 I want to check if an event is available or not before binding a function to it. The problem is that Google Chrome support the event "loadedmetadata" in the Video element while FireFox don't. I did the following $('video').bind('loadedmetadata', videoloaded); videoloaded(); It worked well in Firefox but when I tried in Chrome, the function was executed twice (which is logical). I want to check if loadedmetadata event handler exists or not to run the function only one time in each browser. If