browser

How to close a browser on a selenium RC server which lost it's client

穿精又带淫゛_ 提交于 2019-12-18 11:34:57
问题 suppose a client starts a selenium session on an RC server, but at the middle of the session the client "went away". The browser will remain open, and eventually, after enough such dropped sessions, there will be enough "orphan" browsers to slow down the computer. How can I make sure those browsers are closed? Why isn't there a "keep-alive" part in the protocol to make sure the client is still responsive and if not kill the session? 回答1: Any browser instance has a session_id you can store.

Should your website work without JavaScript [duplicate]

匆匆过客 提交于 2019-12-18 11:32:27
问题 This question already has answers here : Do web sites really need to cater for browsers that don't have Javascript enabled? [closed] (20 answers) Closed 6 years ago . We're developing a web application that is going to be used by external clients on the internet. The browsers we're required to support are IE7+ and FF3+. One of our requirements is that we use AJAX wherever possible. Given this requirement I feel that we shouldn't have to cater for users without javascript enabled, however

Is there an upper limit to z-index values in web browsers?

穿精又带淫゛_ 提交于 2019-12-18 11:29:35
问题 I have a case where a 3rd party ad is bleeding through my modal window implementation. I'd like to up the z-index of the modal overlay as high as possible so the ad won't show on top of it. Is there a limit to z-index values? I'm sure if there is it varies by browser. Anyone know? 回答1: Keep in mind that z-index doesn't work globally, but only within a 'stacking context' (which has hard to digest definition in CSS), and if the ad establishes it's own stacking context, then z-index values you

How to get the exact client browser name and version in Spring MVC?

拈花ヽ惹草 提交于 2019-12-18 11:29:04
问题 I'm working on a Spring MVC application, and I need to access client browser name and version. I have an instance of HttpServletRequest in my action as a parameter and use request.getHeader("User-Agent") method, but this returned Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko in Internet explorer 9. I need to exact number and version. Is there any tools for doing that? 回答1: Acknowledging that the user agent is unsafe. Still, in the lack of other ways, you should parse a

JSON viewer for browsing APIs [closed]

那年仲夏 提交于 2019-12-18 11:28:30
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . Does anyone have any recommendations for applications or browser plugins that make browsing and visualizing JSON APIs easy. Please

View php session variables

若如初见. 提交于 2019-12-18 11:17:24
问题 Not sure if this belongs here or at webapps... please move if appropriate. I don't even know if such a thing is possible, but is there an extension or add-on for either Firefox or Chrome that would let me view all my PHP session variables the way there are extensions that let you view cookies? 回答1: Cookies are available on the client-side, so they can be seen from the browser. On the other hand, session data is stored on the server , and never sent to the client (except you write some code to

What is gZip compression?

早过忘川 提交于 2019-12-18 11:05:37
问题 I have heard a lot that one should use gZip for their webpages for faster access and downloads, and that it also saves the bandwidth. So what is this gZip compression and how does it make the downloads faster ? Does it compress the HTML and images or just the HTML. If I am to start using gZip in my webapps what considerations do I need to make ? Are there any server or browser restrictions for it, or does it support a particular encoding only. 回答1: GZip is a form of data compression -- ie it

What is gZip compression?

随声附和 提交于 2019-12-18 11:05:13
问题 I have heard a lot that one should use gZip for their webpages for faster access and downloads, and that it also saves the bandwidth. So what is this gZip compression and how does it make the downloads faster ? Does it compress the HTML and images or just the HTML. If I am to start using gZip in my webapps what considerations do I need to make ? Are there any server or browser restrictions for it, or does it support a particular encoding only. 回答1: GZip is a form of data compression -- ie it

How do I associate a custom MIME-type to my local application in the major browsers?

送分小仙女□ 提交于 2019-12-18 11:02:57
问题 I want to invent a new mime-type and associate it to a custom application in the browser to enable users to launch my app from a web page. The users of my secure web site are in a closed-environment, meaning this is not a general-purpose, mainstream application - I can configure their browser ahead of time. Spoon.net does something very similar to enable launching virtualized applications using their mini-kernel plugin. One of the answers to this question alluded to this method, without

How do I associate a custom MIME-type to my local application in the major browsers?

瘦欲@ 提交于 2019-12-18 11:02:35
问题 I want to invent a new mime-type and associate it to a custom application in the browser to enable users to launch my app from a web page. The users of my secure web site are in a closed-environment, meaning this is not a general-purpose, mainstream application - I can configure their browser ahead of time. Spoon.net does something very similar to enable launching virtualized applications using their mini-kernel plugin. One of the answers to this question alluded to this method, without