browser

Change default browser in Visual Studio 2010 RC

给你一囗甜甜゛ 提交于 2019-12-18 12:47:47
问题 In Visual Studio 2010 (RC) there is no longer a "browse with" context menu when right clicking .aspx pages. How can you change the default browser now? By default it seems to use the operating system default browser, but I would prefer to use IE when debugging ASP.net apps. (I am testing this with ASP.net MVC 2) 回答1: There is no "Browse With" option on the .aspx Views in an MVC project as they are not meant to be directly browseable. What I tend to do is add a Default.aspx webform in the root

Using the browser for desktop UI

偶尔善良 提交于 2019-12-18 12:36:09
问题 How can I use the browser as a UI for a desktop app? The ways I have come up with so far are... Use all HTML/Javascript. Problem: Can't access filesystem or just about anything else. Run a local webserver while the application is in use. Problem: How do I kill it when the user is done? My users are not technical enough to Ctrl+C. Embed a browser component in a regular GUI. Problem: Embedded browser components tend to be glitchy at best. The support for Javascript/CSS is never as good as it is

JavaScript: Advantages and disadvantages of dynamically (on fly) creating style element

六月ゝ 毕业季﹏ 提交于 2019-12-18 12:27:53
问题 In JavaScript we can create <style> element dynamically and append to <head> section in order to apply CSS rule for huge number of elements. What is advantages or disadvantages of this approach? If it is really gives performance gain comparing to javascript iteration over elements. What goes behind the scene (inside of browser)? Which one is faster or slower? Javascript iteration over elements or adding css dynamically in browser? What about processing time? processing load? For better

Prevent mouse wheel scrolling, but not scrollbar event. JavaScript

醉酒当歌 提交于 2019-12-18 12:27:23
问题 I need to make a webpage scrollable only by scrolling bar. I have tried to find how to catch scroll bar event, but as i see it is impossible. Currently i use this functions: function preventDefault(e) { e = e || window.event; if (e.preventDefault) { e.preventDefault(); } else { e.returnValue = false; } } function wheel(e) { preventDefault(e); } function disable_scroll() { if (window.addEventListener) { window.addEventListener('DOMMouseScroll', wheel, false); } window.onmousewheel = document

What browsers only support SSLv2?

隐身守侯 提交于 2019-12-18 12:16:07
问题 What browsers only use SSLv2? I'm planning to disable SSLv2 on our web server, and would want to know what browsers will be affected. I can't find anywhere what SSL versions Firefox 1/2 and IE6/7 support. 回答1: According to the book, Data Center Fundamentals, page 369, SSLv3 support was added in Netscape 2.x and Internet Explorer 3.x, and TLS was added in Netscape 4.x and Internet Explorer 4.x. So, SSLv3 support has been widely available since 1995–1996. My working assumption is that SSLv2-

Make html5 geolocation ask permission every time user reloads the page

久未见 提交于 2019-12-18 11:56:14
问题 Why we need that: We have some page in our website which allows users to enter some data and search for another customers in their area. When user opened that page the popup message must be shown http://foo.bar.com would like to use your current location. After that user can discard that and fill the location fields manually or accept and be automatically redirected to results page. Problem: The problem is that when user selects any of the mentioned options at first time, browser remembers it

Scaling images stored at S3

这一生的挚爱 提交于 2019-12-18 11:53:49
问题 I'm in a situation where I need to push image storage for a number of websites out to a service that can scale indefinitely (S3, CloudFiles, etc.). Up until this point we've been able to allow our users to generate custom thumbnail sizes on the fly using Python's Imaging library with some help from sorl-thumbnail in Django. By moving our images to something like S3, the ability to quickly create thumbnails on the fly is lost. We can either: Do it slowly by downloading the source from S3 and

How to detect Javascript execution in WebBrowser control

此生再无相见时 提交于 2019-12-18 11:48:10
问题 I have a WebBrowser control in my C# application. The web browser is under the user's control, that is, he can load any web page his computer can access on the web (of course limited by proxy, hosts file and so on). I need to know and to be notified when there is a Javascript call inside the page loaded in the web browser component. First example: given a link like this <a href="javascript:void(0)" onclick="jsFunct();">test</a> When the user clicks the link I need to know that the function

Execute python code inside browser without Jython

最后都变了- 提交于 2019-12-18 11:47:51
问题 Is there a way to execute python code in a browser, other than using Jython and an applet? The execution does not have to deal with anything related to graphics. For example, just sum all the digits of a binary 1Gb file (chosen by the browser user) and then return the result to the server. I am aware that python can be executed remotely outside a browser, but my requirement is to be done inside a browser. For sure, I take for granted the user will keep the right to execute or not, and will be

CSS Hacks, Firefox 3.5 and Google Chrome

依然范特西╮ 提交于 2019-12-18 11:44:35
问题 I searched around and allegedly, body:nth-of-type(1) is used in CSS to target only Safari and Google Chrome. Lo and behold, Mozilla reads it properly too. I searched ten times more but came up with nothing, so here I am. Is there a Google Chrome-only CSS hack? 回答1: @media screen and (-webkit-min-device-pixel-ratio:0) { ... styles go here ... } There is no CSS for only Chrome (AFAIK) but Chrome AND Safari. You may consider a Javascript solution. UPDATE Jan 22, 2013: As mentioned in the