tagged [browser]

Cross browser method to fit a child div to its parent's width

Cross browser method to fit a child div to its parent's width I'm looking for a solution to fit a child `div` into it's parent's `width`. Most solutions I've seen here (eg. `display: table-cell;` isn'...

21 Jan at 10:23

How to open a link in new tab (chrome) using Selenium WebDriver?

How to open a link in new tab (chrome) using Selenium WebDriver? ``` System.setProperty("webdriver.chrome.driver", "D:\\softwares\\chromedriver_win32\\chromedriver.exe"); WebDriver driver = new Chrome...

How to prevent Browser cache on Angular 2 site?

How to prevent Browser cache on Angular 2 site? We're currently working on a new project with regular updates that's being used daily by one of our clients. This project is being developed using angul...

File input 'accept' attribute - is it useful?

File input 'accept' attribute - is it useful? Implementing a file upload under html is fairly simple, but I just noticed that there is an 'accept' attribute that can be added to the `` tag. Is this at...

14 Apr at 07:49

Setting a cookie in a WebBrowser control

Setting a cookie in a WebBrowser control I am loading a website using a WebBrowser's Navigate function, and I want the browser to load the page with a cookie I've given it. The following code doesn't ...

25 Dec at 17:8

Is it possible to use HttpBrowserCapabilities from a c# console application?

Is it possible to use HttpBrowserCapabilities from a c# console application? I need to parse UserAgent strings from a console app and this seems like a simple way to do it, but I obviously don't have ...

8 Oct at 15:26

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

in a controller in asp.net-mvc how can i get information about the users browser? 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 (na...

29 Nov at 11:27

How do we control web page caching, across all browsers?

How do we control web page caching, across all browsers? Our investigations have shown us that not all browsers respect the HTTP cache directives in a uniform manner. For security reasons we do not wa...

How to get screen width without (minus) scrollbar?

How to get screen width without (minus) scrollbar? I have an element and need it's width without(!) vertical scrollbar. Firebug tells me body width is 1280px. Either of these work fine in Firefox: The...

10 Feb at 21:13

Silverlight fullscreen limitations

Silverlight fullscreen limitations When a Silverlight plug-in is in full-screen mode, it disables most keyboard events. They say it is for [security reasons](http://msdn.microsoft.com/en-us/library/cc...

20 Jun at 09:12

What does <meta http-equiv="X-UA-Compatible" content="IE=edge"> do?

What does do? What's the difference if one web page starts with and If page starts with If there is no difference, I suppose I can just ignore the `X-U

How do I render a Word document (.doc, .docx) in the browser using JavaScript?

How do I render a Word document (.doc, .docx) in the browser using JavaScript? I have successfully done code to display a PDF file in the browser instead of the "Open/Save" dialog. Now, I'm stuck tryi...

17 Apr at 08:22

How can I get the scrollbar position with JavaScript?

How can I get the scrollbar position with JavaScript? I'm trying to detect the position of the browser's scrollbar with JavaScript to decide where in the page the current view is. My guess is that I h...

7 May at 20:19

What is a MIME type?

What is a MIME type? I have been reading about how to build plug-ins and this "MIME type" keeps getting discussed in it. I have tried to look into it and know that it is Multipurpose Internet Mail Ext...

23 Sep at 19:15

Force browser to refresh CSS, JavaScript, etc

Force browser to refresh CSS, JavaScript, etc I'm developing a website based on WordPress source code through XAMPP. Sometimes I change the CSS code, scripts or something else and I notice my browser ...

1 Aug at 15:47

How to disable text selection highlighting

How to disable text selection highlighting For anchors that act like buttons (for example, the buttons on the sidebar of this Stack Overflow page titled , , and ) or tabs, is there a CSS standard way ...

Different between ./ , ../ , ../../ , ~/ on file path(URL) in asp.net

Different between ./ , ../ , ../../ , ~/ on file path(URL) in asp.net I have a script file . See the path is `~/Script`. But if I Entered `../../` instead of `~/`,Also the process are working same . M...

30 Jun at 06:50

WebBrowser control caching issue

WebBrowser control caching issue I am using the WebBrowser control inside a Windows Form to display a PDF. Whenever the PDF is regenerated, however, the WebBrowser control only displays its local cach...

14 Oct at 08:1

How do I open a URL from C++?

How do I open a URL from C++? how can I open a URL from my C++ program? In ruby you can do What's the equivalent in C++? I wonder if there's a platform-independent solution. But if there isn't, I'd li...

18 Jan at 09:54

Browser application & local file system access

Browser application & local file system access I want to enhance my browser-based web application with functionality that enables management of local files and folders. E.g. folder tree structures sho...

How can I detect browser type using jQuery?

How can I detect browser type using jQuery? I want to detect if the user is using IE and Firefox but I cannot find the script. I have code as below: ``` $(document).ready(function(e) { $.browser.chr...

Read Javascript variable from Web Browser control

Read Javascript variable from Web Browser control I am trying to read the value of a Javascript variable which is loaded and called from a WebBrowser control on my form. Example: index.html refers to ...

29 Jul at 17:30

Headless browser for C# (.NET)?

Headless browser for C# (.NET)? I am (was) a Python developer who is building a GUI web scraping application. Recently I've decided to migrate to .NET framework and write the same application in C# (t...

How to implement my very own URI scheme on Android

How to implement my very own URI scheme on Android Say I want to define that an URI such as: must be handled by my own application, or service. Notice that the scheme is `"myapp"` and not `"http"`, or...

Capture a scrolling window contents screenshot

Capture a scrolling window contents screenshot I need to capture a screenshot of the scrolling window's client area, using .NET. My first priority is capturing web page screenshots. But this can be no...

7 Oct at 15:36